Swift does not support the SDK 'iPhoneSimulator8.4.sdk'
Just updated to Xcode 7.0.1, running on El Capitan (GM) with SIP disabled. And now every time I try to compile a Swift project I get this error;
<unknown>:0: error: Swift does not support the SDK 'iPhoneSimulator8.4.sdk' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
I’ve tried compiling for actual devices as well and get:
<unknown>:0: error: Swift does not support the SDK 'iPhoneOS8.4.sdk' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
My deployment target was originally set to 8.0, I’ve tried setting it to 9.0 but that makes no difference. My Base SDK is set to Latest iOS(iOS 9.0).
This is across all my Swift projects, even when I create a new project, I still get this error.
It doesn’t seem to be affecting Objective-C. One thought I’ve had, is could this be an issue with SIP being disabled? It doesn’t look like a permissions error but I can see no other reason why this isn’t working.
- Xcode 5: failed to get the task for process
- How to speed up UI test cases in Xcode?
- Xcode 7, asset catalog universal device background image support?
- UI Test deleting text in text field
- Xcode 7 Warning - directory not found for option - iPhoneSimulator9.0.sdk
- Xcode 7 how do you refresh provisioning profiles?
2 Solutions Collect From Internet About “Swift does not support the SDK 'iPhoneSimulator8.4.sdk'”
This happened to me when I had simultaneously installed both
Xcode 7 and
6.4 and after automatic update I was left with
One indication that something got messed up was output of
xcodebuild -sdk -version:
xcodebuild[29131:8243992] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7fac2ae3c800:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk'>': SDK with name 'iphoneos9.0' being superceded by SDK with 'iphoneos9.0'. ... iPhoneOS8.4.sdk - iOS 9.0 (iphoneos9.0) SDKVersion: 9.0 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk PlatformVersion: 9.0 PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform ProductBuildVersion: 13A340 ProductCopyright: 1983-2015 Apple Inc. ProductName: iPhone OS ProductVersion: 9.0 ...
There might be easier way to solve this, but reinstalling
Xcode 7.0.1 fixed it for me.
If you don’t want to re-install Xcode (assumption: you’re building for iOS 9), just quit Xcode and go to “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/” and remove the “iPhoneOS8.4.sdk” folder from that directory. Be sure to make an external copy if you still need it so you can put it back later. Then restart Xcode, clean, and build. Worked for me.
- Subclass NSApplication in Swift
- Android like permissions in iOS
- When should I use the weak or strong qualifier with IBOutlets?
- NSString – Unicode to ASCII equivalent
- self-sizing uitableviewcell not recalculate content size when subview instrinsic content size has changed
- Getting data out of completionHandler in Swift in NSURLConnection
- Relaunch iOS app without user interface when application in background?
- Is OpenGL threadsafe for multiple threads with distinct contexts?
- How can I get the Data from NSURLSession.sharedSession().dataTaskWithRequest
- How to “Delete derived data” in Xcode8?
- How to change the Color of text in UITabBarItem in iOS 5
- UIModalTransitionStylePartialCurl doesn't get back to previous state. (Not dismissing)
- Saving custom SWIFT class with NSCoding to UserDefaults
- How to re-sign the ipa file?
- How to addSubview with a position?