随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
你可以让Xcode在Info上运行预处理器。plist文件:
<key>CFBundleShortVersionString</key> #ifdef DEBUG <string>1.0 (debug)</string> #else <string>1.0</string> #endif
详情见http://developer.apple.com/technotes/tn2007/tn2175.html。
其他回答
要默认在弹出式菜单中显示当前的自动完成选项(无需先按ESC),请键入
defaults write com.apple.Xcode XCCodeSenseAutoSuggestionStyle List
然后重新启动Xcode。
双击方括号或圆括号,可获得括号与圆括号匹配。
使用xcodebuild命令行在共享构建机器上进行干净的构建:
cd project_directory
xcodebuild -configuration Release -alltargets clean
xcodebuild -configuration Release -alltargets
⇧⌘。它会构建和分析,这意味着Xcode会警告你可能的泄漏。
看看一个关于“在Xcode中变得高效”的视频:becoming-productive-in- Xcode