I've read Where does xcode take application's Identifier from? , XCode bundle identifier formatting from {PRODUCT_NAME} , and loads more but...
I'm trying to get push notifications going and getting the dreaded
"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.
I'm fairly certain I've followed all the steps correctly, including:
- made the push certificate well in advance of the provisioning cert
- made a 'Entitlements.plist'
- added a get-task-allow boolean and set it to true (ad-hoc release)
The only think I can't quite get my head around is the Bundle Identifier
The push certificate is for
XXXXXXXXXX.com.julianbaker.pwcnewsuk
The Bundle Indentifier in PwCNewUK-Info.plist is for
com.julianbaker.${PRODUCT_NAME:rfc1034identifier}
If I manually change it to
com.julianbaker.pwcnewsuk
I get a UDID mismatch error as the app is seen as PwCNewsUK
When I've Googled this there seems to be some confusion over the matter, but it seems they have to match?
QUESTION:
What should the Bundle Indentifer be to match the push certificate of
XXXXXXXXXX.com.julianbaker.pwcnewsuk ?
QUESTION:
Do I need to add a "aps-environment" entitlement to the provisioning profile, and if so where and how? (See http://www.airplaysdk.com/node/3174 amongst others)
Loving iPhone development but sheesh it can be a headbanger at times!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…