【问题标题】:Use iOS10 Simulators with XCode 7.2将 iOS10 模拟器与 XCode 7.2 一起使用
【发布时间】:2017-04-14 01:48:22
【问题描述】:

XCode7.2 可以使用 iOS10 Simulators 吗?我知道可以在 iOS10 设备上进行部署(例如,通过链接正确的开发人员磁盘映像),但这对我的 CI 环境中的自动化测试没有帮助。

【问题讨论】:

标签: ios xcode ios-simulator xcode7


【解决方案1】:

可以,但不支持。您需要使用 Xcode 8 中的 simrtunime 和 iPhoneSimulator.sdk 在 /Library/Developer/CoreSimulator/Profiles 中构建自己的 simruntime 包。

然而,这是非常不支持的。

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

【讨论】:

  • 谢谢!你能详细说明一下吗?我已经尝试符号链接 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 模拟器,但它不会启动。
  • 你不应该将任何东西链接到 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
  • 要小心,因为一旦我们将 iOS 10.1.simruntime 作为 DLC 发布,您就会想要删除该路径。
  • 如果你想要 iOS 10.0.simruntime,你可以直接从 Xcode 8.1 或 Xcode 8.2 安装。
  • /Library/Developer/CoreSimulator/Profiles 不存在。为什么要复制到那里?
猜你喜欢
  • 1970-01-01
  • 2019-08-09
  • 1970-01-01
  • 1970-01-01
  • 2016-10-15
  • 1970-01-01
  • 2017-02-18
  • 1970-01-01
  • 2020-12-06
相关资源
最近更新 更多