xcode常见错误处理

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

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

缘由:这是Apple Watch使用的缓存

 

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

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

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

 

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

  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.code

 

问题:app installation failed an unknow errororm

解决:(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里面便可

 

 问题:xcode卡主,显示indexing and prebuilding...

 解决:清理DerivedData缓存数据,目录~/Library/Developer/Xcode/DerivedData/

相关文章
相关标签/搜索