2017-10-15 134 views
0

在Xcode 9出现所有问题之后,我想避免在社区知道它的稳定之前不得不升级到它。但是,我需要在Xcode 8上运行iOS 11 Simulator,并且无法想象这样做。是否有可能在Xcode 8上运行iOS 11模拟器?

我发现如何在Xcode 8中支持iOS 11设备,但我也需要运行iOS 11模拟器。

这可能吗?如果是这样,请指导我如何做到这一点。

+0

我不会推荐它。例如,Xcode 8有旧的框架。 Xcode 9有新的框架。如果某些框架代码在Xcode 9中被弃用会怎么样?如果你想要Xcode 8,那么不要更新Xcode 8,而要从网站上下载Xcode 9并行使用它。 – SkrewEverything

回答

0

不支持此功能,但可以通过复制 iOS的11 simruntime束实现这一目标到〜/库/开发商/ CoreSimulator /型材/运行时,然后从iOS的10加platform_launch_helper到iOS版11(它被删除,但Xcode 8需要它)。

假设您的Xcode 9是/Applications/Xcode-9.app和Xcode中8在/Applications/Xcode-8.app,你可以做到这一点:

mkdir -p ~/Library/Developer/CoreSimulator/Profiles/Runtimes 
cp -a /Applications/Xcode-9.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime ~/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS11.0.simruntime 
ln -s /Applications/Xcode-8.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/platform_launch_helper ~/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/platform_launch_helper 

注:一种符号链接主包将不起作用。你需要复制它。如果您使用符号链接,CoreSimulatorBridge作业将无法加载,您将无法安装应用程序。

如果您在未来更新的Xcode 9,你应该重做是为了确保你在你的本地副本的最新更新。

+0

谢谢。我将在稍后尝试。 – rolinger

相关问题