No matching provisioning profiles found for "Applications/MyApp.app”问题解决

新开发的一个app打包报错,度娘谷歌了好久,废了不少时间,发现错误提示已经很明显了,只是自己没读懂而已,先说下问题和解决方法,给同意遇到这个问题的你:

Failed to locate or generate matching signing assets:

Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues:

No matching provisioning profiles found for "Applications/MyApp.app”

None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.

 

一直以为是证书问题,其实不然,是Bundle Identifier配置不同步问题。

配置Bundle Identifier的有两个地方,必须同步:

1、TARGETS > Identity > Bundle Identifier(也可以在Info.plist里面修改);

2、TARGETS > Build Settings > Packaging > Product Bundle Identifier;

以上是路径,这两个地方的Bundle Identifier值必须一致,不然会让xcode懵逼。

 

解决问题的启发来自这里的一句话:

https://stackoverflow.com/questions/28006773/xcode6-error-no-matching-provisioning-profiles-found-for-application

In my case, the problem was caused by different Bundle Identifier in Target General tab than in Build Setttings.

 

posted @ 2017-06-02 17:10  追寻1024的程序猿  阅读(700)  评论(0编辑  收藏  举报