Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator

关于Xcode7 Beta报错 simulator runtime is not available.

 

Unable to open liblaunch_sim.dylib Try reinstalling Xcode or the simulator runtime.

 

Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator_第1张图片

 

 

解决办法

一、找到目标文件

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib

 

Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator_第2张图片

二、拷贝到目标地址一和目标地址二。

 

目标地址一

/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib

目标地址二

/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib

 

 

记得备份

Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator_第3张图片

 

成功运行模拟器

Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator_第4张图片

 

你可能感兴趣的:(Install)