Parallelize build
Compilation mode «Incremental»
defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES | NO
Product -> Perform action -> Build with timing summary
- 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
- 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
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 states
For create code snippet you select code that you want, click on it with right button and select 'Create Code Snippet'.
<# placeholder text #> - for template code
You can chose:
- platform (iOS, macOS)
- language (Swift, Obj-C)
- completion scope (function, top level)
- completion shortcut
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
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
- WWDC video - WWDC video about new in XCode 10.
- Buildtime - Display build time.
- XCode features - State about new in XCode 10.
- Source control symbols - Source control file symbols.
- Text macroses - Template file macroses.
- File template - Creating custom file template.