在Xcode中當(dāng)你在更新了你得證書而再重新編譯你的程序,真機(jī)調(diào)試會出現(xiàn)“Your build settings specify a provisioning profile with the UUID‘XXX’, however, no such provisioning profile was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.”。解決方案如下:
這里所說的就是要通過修改你的項目的.xcodeproj文件來解決上述的錯誤。
1.找到項目中的**.xcodeproj文件,點擊右鍵,show package contents(打開包內(nèi)容)。
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文件。下載后安裝上就可以。