推送證書綁定的Bundle identifier 與Xcode中的Bundle identifier 不匹配的錯誤
The provisioning profile specified in your build settings (“xxxxx”) has an Bundle identifie of “xxx” which does not match your bundle identifier “Jxxxxx”
解決方法:
推送通知的證書包含的Bundle identifier與當前項目xcode中的Bundle identifier不一樣,此時真機測試時, 進行描述文件的匹配 會彈出包含錯誤的提示框,該錯誤會說明 項目中的Bundle identifier與描述文件中的Bundle identifier不匹配,此時應該要在項目中修改幾處:
(1), xcode項目中的 Target ——> General ——>Bundle Identifier ,
(2),xcode項目中的 Target ——> info ——>Bundle Identifier ,
(3),xcode項目中的 Target ——> Build Settings ——> Packaging ——> Product Bundle identifier
將上面三處的Bundle identifier 修改成和推送證書所生成的描述文件一致 。
再次運行程序後就可以了。
推送證書綁定的Bundle identifier 與Xcode中的Bundle identifier 不匹配的錯誤
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.