1. xcode装机报错:"The application could not be verified."

解决:
删除之前在设备上安装的app就好了,估计问题应该是上一次的证书跟现在的证书不一致导致。
2. 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,删掉再运行。
3.The certificate used to sign “yoursApp” has either expired or has been revoked

当使用免费真机调试时,会经常弹出这个,但是 有时胡乱修改一遍Bundle ID再fix是可以通过的,但最根本的解决办法是:
-
打开Xcode点击Xcode->Preferences->Accounts
-
找到自己的账号,点击 “View Details”
-
然后中Provisioning Profiles中右键点击任意一个,选择show in finder在文件夹中打开,可以看到所有证书,将他们全部删除
-
最后选择Download All
然后重新运行,问题解决
4. —— process launch failed: timed out trying to launch app

查看一下是否是debug状态,不是的话修改成debug状态

我的是原来就是debug状态,但是运行提示这个错误,后来改成release,但是运行不错,就又重新修改回来了,然后build了一下,重新运行就好了。。。。。好奇怪
5.xcode真机测试的时候,编译错误 — The executable was signed with invalid entitlements.

在网上查询资料后,按照其中一个方法成功解决了此问题,具体如下:
第一步:在工程中添加文件new file,选择Resource 中的Property List,添加后名称为Entitlements.plist。
第二步:点击Entitlements.plist进行编辑,删除所有Root下的Key,然后添加一个Boolean类型,名称为get-task-allow的Key,状态为TRUE
第三步:在Targets中的Info中的Build选项卡中的Code Signing Entitlements的值设为Entitlements.plist,重新Build即可解决

网友评论