在iOS 10中使用Xcode 7 [英] Use Xcode 7 with iOS 10
问题描述
我想在iOS 10上使用Xcode 7.
I want to use Xcode 7 with iOS 10.
据我所知,使用iOS 10 beta需要Xcode 8 beta,所以我应该升级我的Xcode。但是,我的代码无法由新编译器构建,因此我希望继续使用Xcode 7.
As I understand, working with iOS 10 beta requires Xcode 8 beta, so I should upgrade my Xcode. However, my code can't be built by the new compiler, so I want to stay with Xcode 7.
我如何实现这一目标?
推荐答案
您需要使用Xcode 8 Beta中的DeveloperDiskImage。
对于这个提取Xcode 8 Beta应用程序并将iOS 10的DeveloperDiskImage复制到Xcode文件夹。
You need use DeveloperDiskImage from Xcode 8 Beta. For this extract Xcode 8 Beta app and copy DeveloperDiskImage for iOS 10 to your Xcode folder.
假设您将Xcode提取到Downloads / Xcode-beta.app
Suppose you extract Xcode to Downloads/Xcode-beta.app
cp -r /Users/fanruten/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode_7.2.1.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
复制DeveloperDiskImage后,您应该启动Xcode并将iOS设备连接到您的Mac。
After copy DeveloperDiskImage you should start Xcode and connect iOS device to your mac.
编辑: < br>
使用标准Xcode安装,可以创建一个软链接:
With a standard Xcode install one can create a soft link:
sudo ln -s \
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5309d\) \
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0
这篇关于在iOS 10中使用Xcode 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!