項(xiàng)目完成了需要上線,真機(jī)調(diào)試什么的一點(diǎn)問(wèn)題沒(méi)有,換上發(fā)布證書之后:
The provisioning profile specified in your build settings (“XXX”) has an AppID of “xxx” which does not match your bundle identifier “XXX”. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.
然后一臉懵逼,WTF!
然后bing,google。
或許你的問(wèn)題得以解決,那么祝賀你。
如果沒(méi)有解決,你也可以試一試我的方法。
1.找到你的xcodeproj ,右鍵->顯示包內(nèi)容

你的工程文件
2.打開(kāi)project.pbxproj 文件。顯示出一堆,沒(méi)準(zhǔn)你看不懂,但是大神能看懂的代碼。

沒(méi)錯(cuò),就是這貨
3.command + F 搜索 PROVISIONING_PROFILE 刪除對(duì)應(yīng)的行。(這或許就是你之前搜到的內(nèi)容)
4.如果上面的方法已經(jīng)解決了你的問(wèn)題,那么就OK了。如果沒(méi)有,請(qǐng)這樣:刪除對(duì)應(yīng)行之后,將箭頭位置上的Bundle identifier(是不是很耳熟?)變成你期望的字符串。

將箭頭位置改成你期望的Bundle identifier
5.保存,clean,編譯,OK。
6.完美上架,世界和平