XCode Cheatsheets - hewigovens/hewigovens.github.com GitHub Wiki

##Debug/Release differences Checklist

===

  • Marco defines(preprocess, LD_FLAGS)
  • Optimization level
  • Symbol Settings
  • Install action/path
  • XCode Build/Run Permission

===

##XCode configuration file

===

  • Xcode Build System Guide
  • #include "Base.xcconfig"
  • find . -name "project.pbxproj" -exec sed -i ".bak" "/SDKROOT =/d" {} \;
  • Configuration priority
    • Concrete Target > Project > Configuration file > OS Defaults
    • A general base xxconfig file + Custom project xxconfig file + Concrete target setting
    • Xcode configuration priority:
      Xcode configuration file priority
      Xcode build config eval

===

##Install old Xcode on new OS

===

DO NOT install XCode 3.2.6 on 10.8+, If you did, please follow this SO anwser to fix. In order to avoid installlation failure, please change your date to some early date, like year 2011.

    export COMMAND_LINE_INSTALL=1
    open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
    #reboot to safe mode after panic
    #1.Download https://dl.dropboxusercontent.com/u/8532717/chud4.6.2.dmg
    #2.run CHUD Remover from Utilities
    #3.rm -rf /System/Library/Extensions/AppleProfileFamily.kext)

##Xcode show more recents

    defaults write com.apple.Xcode NSRecentDocumentsLimit 20

##Xcode Environment Variables

===