我想在iOS10上使用Xcode7.

据我所知,使用iOS10测试版需要使用Xcode8测试版,所以我应该升级我的Xcode.但是,我的代码不能用新的编译器构建,所以我想继续使用Xcode7.

我怎样才能做到这一点呢?

推荐答案

您需要使用Xcode8Beta的DeveloperDiskImage. 为此,解压Xcode8 Beta应用程序,并将用于iOS 10的DeveloperDiskImage复制到您的Xcode文件夹中.

假设您将Xcode解压到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.

Edit:
使用标准的Xcode安装,用户可以创建软链接:

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相关问答推荐

如何调整包含extView的UICollectionViewListCell的大小?

如何遮罩,动画和添加阴影到CAShapeLayer?

如何在SwiftUI中扩展双击的可检测区域?

Xamarin Forms CustomPin iOS Render

如何将模糊输入/模糊输出添加到SwiftUI中的非对称过渡?

IOS-获取本地化系统映像

swift|在具有自定义单元格的多个TableView中没有任何内容

创建方案时运行 pod install 时出错

SwiftUI - ScrollView 不显示底部文本

如何将单个按钮传递到自定义 ConfirmationDialog

无法为 Flutter 项目构建 ipa [CocoaPods 找不到 pod "GoogleAppMeasurement" 的兼容版本:]

访问未定义的 stage_in 金属着色器参数

如何将私钥添加到分发证书?

CocoaPods 找不到 podFirebase/Core的兼容版本 | cloud_firestore, Flutter

iOS 10 错误:UICollectionView 接收到具有不存在索引路径的单元格的布局属性

如何覆盖@synthesized getter?

由于 NSInvalidUnarchiveOperationException 导致 iOS11 WKWebview 崩溃

SwiftUI NavigationView navigationBarTitle LayoutConstraints 问题

在 UITableViewController 中使用 UISearchDisplayController 时断言失败

两个数字之间的动画UILabel文本?