轉載
原文鏈接:http://blog.csdn.net/rbyyyblog/article/details/12220875 原文作者:rbyyy924805
在Archive項目時,出現了“Your build settings specify a provisioning profile with the UUID“”, however, no such provisioning profile was found”的出錯。一直提示指定UUID的provisioning profile找不到,感覺很奇怪。明明自己的provisioning profile是剛下載好的,并且全是新安裝。于是通過谷歌找到了答案。
參考地址:http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof
這里所說的就是要通過修改你的項目的.xcodeproj文件來解決上述的錯誤。
1.找到項目中的**.xcodeproj文件,點擊右鍵,show package contents(打開包內容)。
2.打開后找到project.pbxproj文件,用文本編輯器打開。其實就是右鍵,點擊open就好了。
3.打開這個文件后,按command+F,在這個文件中查找“PROVISIONING_PROFILE",找到和這個“
PROVISIONING_PROFILE="487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";"PROVISIONING_PROFILE[sdk=iphoneos*]"="487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";”? 類似的都刪除。
4.然后保存文件,重新打開項目。xcode會提示你重新下載安裝provisioning profile文件。下載后安裝上就可以。
ps:我在xcode5中,是它自己通過網絡安裝的。