xcode常见错误处理

转载https://www.cnblogs.com/sifenkesi/p/5379282.html

问题:xcode 7编译错误:bitcode is not supported on versions of iOS prior to 6.0

解决:Build Options | Enable Bitcode 设置为No即可

原因:这是Apple Watch使用的

问题:Build iOS时提示没法拉起Xcode:

  UnityException: Launching iOS project via Xcode4 failed. Check editor log for details。

解决:最新版xcode有这个问题,手动打开xcode即可。

问题:在使用Append模式导出xcode时,Unity出现以下错误:

  Error building Player: KeyNotFoundException: The given key was not present in the dictionary.

解决:This issue has been fixed. The fix will appear in 4.6.6p1 and 5.0.3.

问题:app installation failed an unknow error

解决:(1)Clean & Build(2)重启XCode(3)Window -> Projects -> 选择项目 -> 删除Derived Data

问题:This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.

解决:iPhone上已经装了包标识符一样的 App,删掉再运行。

问题:在使用Xcode进行真机调试时,弹出对话框”Could not find Developer Disk Image"

解决:在“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport”里列出了当前版本的Xcode7.0支持的设备列表。

如果没有不支持当前ios版本则需要升级xcode。

Build iOS的2个选项:

  Append:只更新变化的部分

  Replace:重新替换所有部分

  在点run的时候你会发现,所有的scene和Resources里的东西都会打包成assets结尾的东西,复制到目录下,这个过程的长短,取决于你的scene有多大,你的Resources内容多不多。

问题:如何查看一个ipa的证书

解决:将ipa解压出app,然后运行命令

  codesign -vv -d ***.app,即可查看

问题:This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.

解决:两次编译的用的证书不一致,把之前装的app卸载,重新安装下。

问题:Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "972Y28B955" with a private key was found.

解决:本地没有证书的私钥,需要导入p12

   也有可能是因为本地有多个同名证书,xcode选择的时候冲突了,其中有的有私钥,有的没有,这种情况下将没有私钥的

 问题:xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

 解决:xcode中没有PackageApplication,拷贝或者下载一份放在xcode里面即可

猜你喜欢

转载自blog.csdn.net/chqj_163/article/details/82978510