I want to use Xcode 8 with iOS 11.
should I upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 8.
How can I achieve that?
Apple revealed several new iOS 11 features at WWDC 2017.
截至目前,这仅适用于 iOS 设备上的调试,不适用于模拟器
除非您有 iOS 11 版本的 DeviceSupport 文件夹,否则 Xcode 8 无法支持。
您可以下载 Xcode 9 beta(最新的 Xcode 9)或从其他用户处获取 DeviceSupport 文件夹。
只需将其复制到您的文件夹或创建符号链接
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A372\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0
检查一下:到目前为止,这仅适用于在 iOS 设备上调试,而不是在模拟器上
我更喜欢复制所有文件夹:
/Volumes/**HighSierra**/Applications/Xcode-**beta.app**/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0\ \(15A5278f\)
至:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/**11**
我可以确认我可以在装有 iOS 11 的 iPhone 7 上运行