-
Notifications
You must be signed in to change notification settings - Fork 282
Targeting Specific Xcode & SDK Versions
To target a specific Xcode/SDK version, if not already known, you will need to know Xcode's location on the system. To do so, in Terminal type system_profiler SPDeveloperToolsDataType
. Xcode's location will be the Location:
property.
After determining Xcode's location, in Terminal type xcode-select --print-path
. Does the output of this command match the location given when determining Xcode's location (as above)? If not, in Terminal type: sudo xcode-select --switch (xcode_developer_path)
to set the Developer Tools directory (i.e. Xcode's Developer subdirectory) location. Note: replace (xcode_developer_path)
to the location of Xcode determined.
When multiple versions of Xcode are installed, you can indicate which version the iOSOpenDev Installer will use.
- As root, in Terminal, type:
xcode-select --switch (xcode_developer_path)
. Example:xcode-select --switch /Applications/Xcode-4.4DP5.app/Contents/Developer
. - Run iOSOpenDev Installer.
After iOSOpenDev has been installed, you can setup additional Xcode versions using the iod-setup
tool.
- In Terminal, type:
iod-setup sdk -d (xcode_developer_path)
. Example:iod-setup sdk -d /Applications/Xcode-4.5DP1.app/Contents/Developer
.
- In Terminal, type:
iod-setup sdk -sdk (sdk_name)
. Examples:iod-setup sdk -sdk iphoneos
,iod-setup sdk -sdk iphoneos6.0
,iod-setup sdk -sdk iphonesimulator
.
- In Terminal, type:
iod-setup sdk -d (xcode_developer_path) -sdk (sdk_name)
. Example:iod-setup sdk -d /Applications/Xcode-4.5DP1.app/Contents/Developer -sdk iphoneos6.0
.