xcode4.3.2联机调试时出现异常,无法在真机上运行

xcode4.3.2联机调试时出现异常,无法在真机上运行
error: failed to launch '/Users/jpm/Library/Developer/Xcode/DerivedData/phonetest1-gerjuzyynkfhhfgtdklsrehowmgy/Build/Products/Debug-iphoneos/phonetest1.app/phonetest1' -- failed to get the task for process 1500

解决方法如下:
For xcode 4:you have to create Entitlements.plist file from new file. and
Targets->build Settings->Code Signing Entitlements you have to write here "Entitlements.plist"
设置Entitlements.plist的属性Can be debugged=YES(切记在xcode4.3.2上打包应用发布时一定要设置成NO,否则打包成功但无法安装到ios设备上,xcode4.2以下版本则无需设置成NO)

你可能感兴趣的:(XCode4)