No matching provisioning profiles found for "Applications/MyApp.app」問題解決

新開發的一個app打包報錯,度娘谷歌了很久,廢了很多時間,發現錯誤提示已經很明顯了,只是本身沒讀懂而已,先說下問題和解決方法,給贊成遇到這個問題的你:
xcode

Failed to locate or generate matching signing assets:app

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

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

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

 

一直覺得是證書問題,其實否則,是Bundle Identifier配置不一樣步問題。code

配置Bundle Identifier的有兩個地方,必須同步:ci

一、TARGETS > Identity > Bundle Identifier(也能夠在Info.plist裏面修改);開發

二、TARGETS > Build Settings > Packaging > Product Bundle Identifier;get

以上是路徑,這兩個地方的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.

相關文章
相關標籤/搜索