在 iOS 10 上使用 Xcode 7 [英] Use Xcode 7 with iOS 10

查看:26
本文介绍了在 iOS 10 上使用 Xcode 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 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.

我怎样才能做到这一点?

How can I achieve that?

推荐答案

您需要使用 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.


使用标准的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆