GithubHelp home page GithubHelp logo

demo's Introduction

What's new in XCode. Tips and tricks.

Build

Parallelize build 

alt text

Compilation mode «Incremental»

alt text

defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES | NO

alt text

Product -> Perform action -> Build with timing summary

alt text

Tests

  • maximum-concurrent-test-simulator-destinations NUMBER : the maximum number of simulator destinations to test on concurrently
  • parallel-testing-enabled YES|NO : overrides the per-target setting in the scheme
  • parallel-testing-worker-count NUMBER : the exact number of test runners that will be spawned during parallel testing
  • maximum-parallel-testing-workers NUMBER : the maximum number of test runners that will be spawned during parallel testing

Shortcuts

  • Cmd+Shift+O - open quickly
  • Cmd+Shift+J - reveal in project navigator
  • Ctrl+0 - select target
  • Ctrl+Shift+0 - select device
  • Cmd+B - build
  • Cmd+R - run
  • Cmd+. - stop
  • Ctrl+T - open new tab

Actions

Cmd+Click at code for open actions

For classes:

  • fold
  • create method
  • edit in scope
  • rename
  • etc.

For methods:

  • add parameter
  • add return type
  • callers
  • etc.

Source control

Source control states

alt text

Multi cursor editing

Ctrl+Shilf+Click alt text

Option+Drag mouse alt text

Code snippets

For create code snippet you select code that you want, click on it with right button and select 'Create Code Snippet'.

alt text

<# placeholder text #> - for template code

You can chose:

  • platform (iOS, macOS)
  • language (Swift, Obj-C)
  • completion scope (function, top level)
  • completion shortcut

File templates

mkdir -p ~/Library/Developer/Xcode/Templates/File\ Templates/Mine

cp -R /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates/Source/Swift\ File.xctemplate/ ~/Library/Developer/Xcode/Templates/File\ Templates/Mine/Protocol\ with\ Extension.xctemplate

Breakpoints

Breakpoint actions:

  • activate / disable
  • condition
  • ignoring n times before stop
  • log message (@exp@ - expression, %B - breakpoint name, %H - hit count )
  • debugger command like 'po'
  • play sound
  • automatically continue

References

demo's People

Contributors

luximetr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.