小编Ben*_*lly的帖子

Swift不支持SDK'iPhoneSimulator8.4.sdk'

刚刚更新到Xcode 7.0.1,在El Capitan(GM)上运行且禁用了SIP.现在,每当我尝试编译Swift项目时,我都会收到此错误;

<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
Run Code Online (Sandbox Code Playgroud)

我也尝试过为实际设备进行编译并得到:

<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
Run Code Online (Sandbox Code Playgroud)

我的部署目标最初设置为8.0,我已经尝试将其设置为9.0,但这没有任何区别.My Base SDK设置为最新iOS(iOS 9.0).

这是我所有的Swift项目,即使我创建一个新项目,我仍然会收到此错误.

它似乎没有影响Objective-C.我曾经有过这样的想法,这可能是SIP被禁用的问题吗?它看起来不像权限错误,但我看不出为什么这不起作用的其他原因.

xcode ios swift xcode7

8
推荐指数
2
解决办法
4860
查看次数

标签 统计

ios ×1

swift ×1

xcode ×1

xcode7 ×1