Также возможно получить путь с помощью инструмента xcrun
. В Terminal.app введите следующее:
xcrun --sdk iphoneos --show-sdk-path
и
xcrun --sdk iphonesimulator --show-sdk-path
Это будет иметь следующие результаты:
$ xcrun --sdk iphoneos --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk
$ xcrun --sdk iphonesimulator --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk