[問題] 申請apns憑證步驟問題

看板MacDev作者 (o(‧"‧)o)時間11年前 (2014/05/22 18:42), 編輯推噓0(006)
留言6則, 3人參與, 最新討論串1/2 (看更多)
各位前輩好,我想請教apple申請的步驟 不知我哪個流程出問題,請各位能幫我看看嗎? 目前是因為要上傳程式到實機時(使用APNS憑證), 在Xcode的target會出現No matching provisioning profiles found. 我的xcode是5.1.1版。 我的還沒有申請APNS時,選擇的憑證還可以正常的上載到實機, 但加了APNS憑證會出現該問題。我列出我加APNS憑證的步驟, 先在mac鑰匙圈建立憑證,上傳到App Developer網站裡的Apple ID裡 Push Notification service SSL Certificates 產生下載CSR檔, 然後重新產生一次Provisioning Profiles 下載下來開啟。 所以目前我的鑰匙圈內容與憑證長這樣子: http://i.imgur.com/SJ7EJte.png
http://i.imgur.com/3ZlvaCU.png
然後我到Code Signing Identity裡頭發現卻沒有出現 Apple Development iOS Push Services :idv.yu.yuTestAPNSApp 的選項(如圖:http://i.imgur.com/zl7bUW4.png) 此時到General去看就會出現 No Matching provisioning profiles found的問題, http://i.imgur.com/adanqkV.png
我的bundle ID確定與apple Developer網站申請的相同, 我覺得奇怪,我就把我的開發者專用密鑰匯出給別台b電腦, 也把這APNS匯出p12給b電腦匯入, 這時b電腦開啟相同的專案 看code signing identity卻有出現 Apple Development iOS Push Services:idv.yu.yuTestAPNSApp 的選項, 但在原本那台卻沒有出現= = 但選擇這個code signing去build也會出現 no matching provisioning profiles found的問題。 請問這之間什麼步驟我沒有做到呢? 謝謝 (手機的udid也有在網站加入) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.135.60.106 ※ 文章網址: http://www.ptt.cc/bbs/MacDev/M.1400755326.A.86B.html

05/23 02:18, , 1F
習慣上APNs我會另外申請一組key來製作。
05/23 02:18, 1F

05/23 13:02, , 2F
實機? apns? apns憑證是給發推播的server用的
05/23 13:02, 2F

05/23 18:33, , 3F
apns憑證會匯出給server用我知道 那請問在上傳到實機時
05/23 18:33, 3F

05/23 18:34, , 4F
code signing identity是選developer 的那個還是
05/23 18:34, 4F

05/23 18:34, , 5F
Apple Development iOS Push Services..這個? 謝謝
05/23 18:34, 5F

05/23 18:35, , 6F
我這所謂上傳到實機是指app傳到實機
05/23 18:35, 6F
文章代碼(AID): #1JVTH-Xh (MacDev)
文章代碼(AID): #1JVTH-Xh (MacDev)