I got this error while building an iPhone application that is going to use APNS. I am still trying to figure out what is causing this problem. A more detailed error message is here:-
"Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0x113e80 "no valid 'aps-environment' entitlement string found for application" APNS Error
APNS Error
check Code Signing Identity in Application Info
yes you are right humbroll..there was an issue with my provision file and that was causing this problem. Now it seemed to have been fixed and i am getting the device token ….thanks for dropping by… -Anish
I’m still having trouble with the aps-environment issue. How did you fix it? What exactly was wrong with your provisioning file?
hi there,
i am facing the same problem. when i try to run my app i will get the error: Error: Error Domain=NSCocoaErrorDomain Code=3000
i think i followed the instruction to generate all keys and certificates but it simply doesn’t work. can one of you tell me how to check the “Code signing Identity in Application Info”? and anish, what did you do with your provisioning profile to fix your problem?
i really hope someone can help me! thx, katharina
Hi everybody!!
I’m having the same problem but I’ve got a question, which provisioning profile are you selecting in your code signing identity? I’m selecting the provisioning that created previously with the developer program portal for the APN service, and named “Apple Development Push Service: *******”, but not working. Is that correct?
I’m quite interested in having the solution, can you help me, please??
Thx!!
I got the solution, when you have configured your AppID for Push notification, then recreate a new provisioning file with this AppID and install it on the Xcode Organiser, this has worked for me .
This worked for me. I was using a provisioning profile that was created before the appID was configured for push notification. By generating the exact same provisioning profile at a later date did the trick.
Just create an entitlement file:
File > New File In iPhone OS > Code Signing > Entitlements Choose a name (ex: entitlements.plist)
And add a value aps-environment which should be a string. I’ve put the value “authorized” but I’m not sure if that’s is required… but it works!
I just went through the same thing. I found a blog entry with many suggestions here (http://blog.werdn.us/2009/07/iphone-os-and-entitlements/)
The “Code Signing Entitlements” build setting had gone blank somehow. I had an entitlements file, but XCode couldn’t find it. Since I keep it in a “Resources” folder, I entered “Resources/DevEntitlements.plist”. Then it all worked.
My entitlement file only had a get-task-allow entry in it. But I guess that was enough for it to get the rest copied in.
Name (required)
Mail (will not be published) (required)
Website
Please note: JavaScript is required to post comments. Spam protection by WP Captcha-Free