»
S
I
D
E
B
A
R
«
Error: “no valid ‘aps-environment’ entitlement string found for application”
June 23rd, 2009 by Anish Kumar

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

About Me: Anish:
Mac OS X software development is my bread winner with over 6 years of experience. Expertise in Color Management, TWAIN Scanner drivers on Mac OS X, Photoshop Filter and Import Plugin development on Mac OS X, iPhone. As an hobby I love to work on PHP, Flex, AIR, Photoshop. Check the 'About' page for more.

9 Responses  
humbroll writes:
June 29th, 2009 at 3:25 pm

check Code Signing Identity in Application Info ;-)

Anish Kumar writes:
June 29th, 2009 at 3:35 pm

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

Ben writes:
August 6th, 2009 at 7:45 am

I’m still having trouble with the aps-environment issue. How did you fix it? What exactly was wrong with your provisioning file?

katharina writes:
October 7th, 2009 at 2:15 pm

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

Jose writes:
November 6th, 2009 at 4:52 pm

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!!

Lakshmikanth Reddy writes:
November 21st, 2009 at 1:31 pm

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 .

    Johnston writes:
    February 24th, 2010 at 3:29 pm

    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.

Damien writes:
November 27th, 2009 at 11:31 am

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!

Walt Sellers writes:
January 26th, 2010 at 7:11 am

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.

Leave a Reply

Spam protection by WP Captcha-Free