2016-11-29 119 views
0

是否有可能使用iOS10模拟器与XCode7.2?我知道可以在iOS10设备上进行部署(例如通过链接正确的开发人员磁盘映像),但这对我的CI环境下的自动化测试无效。使用iOS10模拟器与XCode 7.2

+0

检查此链接 http://stackoverflow.com/questions/37945376/use-xcode-7-with-ios-10 – jhack

+0

此链接只显示了如何使用的XCode 7与iOS设备,但不与** iOS10模拟器**。 – cakl

回答

1

这是可能的,但不支持。您需要在Xcode 8中的simrtunime和iPhoneSimulator.sdk中的/ Library/Developer/CoreSimulator/Profiles中构建自己的simruntime捆绑软件。

但是,这是非常不受支持的。

在您的CI系统中升级到Xcode 8.2会更好。如果这是不可能的,你应该为任何阻止你这样做的事情提供雷达。

+0

谢谢!你能详细说明一下吗?我已经试图将iPhoneSimulator 10 sdk(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs)和核心模拟器运行时间(/Applications/Xcode.app/Contents/Developer/Platforms/ iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes)转换为xcode7。这样我可以创建一个iOS10模拟器,但它不会启动。 – cakl

+0

您不应该将任何内容链接到Xcode.app包中。您需要在/ Library/Developer/CoreSimulator/Profiles上创建自己的simruntime软件包。例如'sudo cp -a /Applications/Xcode.app/Contents/Developer/Platforms/iPhone Simulator.platform/D eveloper/Library/Cor eSimulator/Profiles/Runtimes/iOS \ 10.1.simruntime/Library/Developer/CoreSimulator/Profiles && sudo cp -a /Applications/Xcode.app/Contents/Developer/Platforms/iPhone Simulator.platform/D eveloper/SDKs/iPhoneSimulator.sdk/Library/Developer/CoreSimulator/Profiles/iOS \ 10.1。 simruntime/Contents/Resources/RuntimeRoot' –

+0

请谨慎行事,因为一旦我们将iOS 10.1.simruntime作为DLC发布后,您将要删除该路径。 –