xcode Error: SDK "iphonesimulator9.0" Cannot be located
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33377837/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error: SDK "iphonesimulator9.0" Cannot be located
提问by YoDK
I recently updated Xcode to 7.1 And downloaded iOS 8.4 And iOS 9.0 Simulator.
I recently updated Xcode to 7.1 And downloaded iOS 8.4 And iOS 9.0 Simulator.
When I run
When I run
xcodebuild -showsdks
I get
I get
OS X SDKs: OS X 10.11 -sdk macosx10.11
iOS SDKs: iOS 9.1 -sdk iphoneos9.1
iOS Simulator SDKs: Simulator - iOS 9.1 -sdk
iphonesimulator9.1
tvOS SDKs: tvOS 9.0 -sdk appletvos9.0
tvOS Simulator SDKs: Simulator - tvOS 9.0 -sdk
appletvsimulator9.0
watchOS SDKs: watchOS 2.0 -sdk watchos2.0
watchOS Simulator SDKs: Simulator - watchOS 2.0 -sdk
watchsimulator2.0
I want
I want
iOS Simulator SDKs:
iOS Simulator SDKs:
to point to the
to point to the
iOS 9.0 Simulator
or 8.4 Simulator
iOS 9.0 Simulator
or 8.4 Simulator
instead of
instead of
Simulator - iOS 9.1 -sdk iphonesimulator9.1
Simulator - iOS 9.1 -sdk iphonesimulator9.1
I've tried
I've tried
xcodebuild -sdk iphonesimulator9.0
But I get
But I get
xcodebuild: error: SDK "iphonesimulator9.0" cannot be located.
回答by JAL
Legacy iOS Simulator SDKs no longer ship with the latest versions of Xcode. To install an older Simulator SDK, take the iPhoneSimulator.sdk
directory from an older version of Xcode (Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/??iPhoneSimulator.sdk
), and copy it to your newer version.
Legacy iOS Simulator SDKs no longer ship with the latest versions of Xcode. To install an older Simulator SDK, take the iPhoneSimulator.sdk
directory from an older version of Xcode (Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/??iPhoneSimulator.sdk
), and copy it to your newer version.
For example, Xcode 6.4 comes with the 8.4 iOS Simulator SDK. To install that in Xcode 7, take the directory:
For example, Xcode 6.4 comes with the 8.4 iOS Simulator SDK. To install that in Xcode 7, take the directory:
Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
Rename it from iPhoneSimulator.sdk
to iPhoneSimulator8.4.sdk
.
Rename it from iPhoneSimulator.sdk
to iPhoneSimulator8.4.sdk
.
Copy it to your Xcode 7 Simulator SDK directory:
Copy it to your Xcode 7 Simulator SDK directory:
Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Observe your new Simulator SDKs:
Observe your new Simulator SDKs: