Note that there are some explanatory texts on larger screens.

plurals
  1. POBundle Identifier and push certificate... aps-environment entitlement error
    primarykey
    data
    text
    <p>I've read <a href="https://stackoverflow.com/questions/3728800/where-does-xcode-take-applications-identifier-from">Where does xcode take application&#39;s Identifier from?</a> , <a href="https://stackoverflow.com/questions/2309821/xcode-bundle-identifier-formatting-from-product-name">XCode bundle identifier formatting from {PRODUCT_NAME}</a> , and loads more but...</p> <p>I'm trying to get push notifications going and getting the dreaded </p> <blockquote> <p>"Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x15b200 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}" error.</p> </blockquote> <p>I'm fairly certain I've followed all the steps correctly, including:</p> <ul> <li>made the push certificate well in advance of the provisioning cert</li> <li>made a 'Entitlements.plist'</li> <li>added a get-task-allow boolean and set it to true (ad-hoc release)</li> </ul> <p>The only think I can't quite get my head around is the Bundle Identifier</p> <p>The push certificate is for</p> <pre><code>XXXXXXXXXX.com.julianbaker.pwcnewsuk </code></pre> <p>The Bundle Indentifier in PwCNewUK-Info.plist is for</p> <pre><code>com.julianbaker.${PRODUCT_NAME:rfc1034identifier} </code></pre> <p>If I manually change it to</p> <pre><code>com.julianbaker.pwcnewsuk </code></pre> <p>I get a UDID mismatch error as the app is seen as PwCNewsUK</p> <p>When I've Googled this there seems to be some confusion over the matter, but it seems they have to match?</p> <p>QUESTION:</p> <p>What should the Bundle Indentifer be to match the push certificate of<br> XXXXXXXXXX.com.julianbaker.pwcnewsuk ?</p> <p>QUESTION:</p> <p>Do I need to add a "aps-environment" entitlement to the provisioning profile, and if so where and how? (See <a href="http://www.airplaysdk.com/node/3174" rel="nofollow noreferrer">http://www.airplaysdk.com/node/3174</a> amongst others)</p> <p>Loving iPhone development but sheesh it can be a headbanger at times!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload