如果我使用网络主目录登录帐户,则当我尝试在 Xcode 4 中构建和运行 iOS 应用程序时出现以下错误:
6/20/12 5:33:22.818 PM Xcode: Error launching simulated application: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "The simulated application quit." UserInfo=0x402da70a0 {NSLocalizedDescription=The simulated application quit., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
我该如何解决这个问题?
答案1
iPhone Simulator
在本地磁盘上创建一个文件夹,并从网络主页链接到该文件夹:
rm -Rf "~/Library/Application Support/iPhone Simulator"
mkdir "/Volumes/Local/$USER/.iPhoneSimulator"
ln -s "/Volumes/Local/$USER/.iPhoneSimulator" "~/Library/Application Support/iPhone Simulator"