我如何在 Xcode 7.0 beta 2 中 运行 iOS 7.1 模拟器?
How can I run the iOS 7.1 Simulator in Xcode 7.0 beta 2?
我已经安装了最新的 Xcode 7 beta 2 版本,当我尝试 运行 iOS 7.1 模拟器中的应用程序时,它给出了这个错误消息:
The iOS 7.1 simulator runtime is not available.
Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime.
你能告诉我如何解决这个错误吗?
你不能(至少以官方的方式)。
摘自Xcode Beta 2 Documentation(第 7 页)。
希望对您有所帮助。
编辑 2015 年 9 月:
感谢 Cœur 提供的信息,现在您可以使用以前版本的 ios 模拟器。
首先,找到目标文件:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib
您需要进行备份liblaunch_sim.dylib(以防万一)。
二、复制到目的地(记得备份)
/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib
如果需要的话:
iOS8.1.simruntime
iOS8.2.simruntime
iOS8.3.simruntime
全部完成。
希望对您有所帮助。
浏览了很多,但我终于找到了适合我的解决方案(尝试了 Gend 的回答但没有奏效)。执行以下几行:
sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}
sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"
在 Xcode 7 beta 6 中,这似乎现在是可能的。
http://adcdownload.apple.com/Developer_Tools/Xcode_7_beta_6/Xcode_7_beta_6_Release_Notes.pdf
Xcode 7.0 beta now supports downloadable legacy simulators. (20699475)
虽然我还没有找到下载这些的地方。我会更新 when/if 我找到了。
当您使用 sudo 命令时,终端显示:“找不到命令”
然后使用如下命令。
sudo su(输入)
$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)
$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)
$ sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim .dylib"(输入)
$ sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim .dylib”(输入)
退出(进入)
现在重新启动Xcode7如果打开earlier.you就可以运行模拟器了
我已经安装了最新的 Xcode 7 beta 2 版本,当我尝试 运行 iOS 7.1 模拟器中的应用程序时,它给出了这个错误消息:
The iOS 7.1 simulator runtime is not available.
Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime.
你能告诉我如何解决这个错误吗?
你不能(至少以官方的方式)。
摘自Xcode Beta 2 Documentation(第 7 页)。
希望对您有所帮助。
编辑 2015 年 9 月:
感谢 Cœur 提供的信息,现在您可以使用以前版本的 ios 模拟器。
首先,找到目标文件:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib
您需要进行备份liblaunch_sim.dylib(以防万一)。 二、复制到目的地(记得备份)
/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib
如果需要的话: iOS8.1.simruntime iOS8.2.simruntime iOS8.3.simruntime 全部完成。
希望对您有所帮助。
浏览了很多,但我终于找到了适合我的解决方案(尝试了 Gend 的回答但没有奏效)。执行以下几行:
sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}
sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"
在 Xcode 7 beta 6 中,这似乎现在是可能的。
http://adcdownload.apple.com/Developer_Tools/Xcode_7_beta_6/Xcode_7_beta_6_Release_Notes.pdf
Xcode 7.0 beta now supports downloadable legacy simulators. (20699475)
虽然我还没有找到下载这些的地方。我会更新 when/if 我找到了。
当您使用 sudo 命令时,终端显示:“找不到命令” 然后使用如下命令。
sudo su(输入)
$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)
$ sudo mv "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib"{,.bak}(enter)
$ sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim .dylib"(输入)
$ sudo ln -sf "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib" "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim .dylib”(输入) 退出(进入)
现在重新启动Xcode7如果打开earlier.you就可以运行模拟器了