Bundle Identifier and push certificate… aps-environment entitlement error

前端 未结 19 2357
滥情空心
滥情空心 2020-11-29 17:38

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 g

相关标签:
19条回答
  • 2020-11-29 17:53

    enter image description here

    Make the profile right and this work for me.Hope this help.

    0 讨论(0)
  • 2020-11-29 17:54

    Essentially the answer is the same vague one everyone else says

    • Make sure you have a "Entitlements.plist" added (New File/Code Signing/Entitlements)
    • Add "get-task-allow" (Boolean Off) to Entitlements.plist
    • Add "aps-environment" "production" pair to Entitlements.plist -- This last step may be unnecessary but it was one of the steps I did just before it worked
    • Delete old mobileprovision files from iPhone/iPod (In Settings/General),
    • Delete old mobileprovision files from XCode Organiser
    • Delete App from iPhone/iPod
    • Quit XCode
    • Download fresh copy of Provisioning Certificate
    • Check for "aps-environment" "production" pair in certificate with a Text Editor
    • Start XCode
    • Add fresh mobileprovision file by dragging to XCode Doc icon
    • Make sure you have reassigned/assigned the correct certificate in the Target Info : Code Signing : Code Signing Identity
    • Double check that the Build Results to see it it's using the correct profile and is signed correctly

    Repeat these steps calmly until it works, took me about five goes of various combinations. I also switched from Development to Ad-hoc which apparently isn't necessary but did guarantee a new mobileprovision file.

    0 讨论(0)
  • 2020-11-29 17:54

    I had this problem, the scenario was:

    I had setup an app id without push notifications support. I'm using Xcode 5.1 + iOS 7.1

    Later, edited the app id to add push notifications in development and production.

    Created the APNs certificates for both.

    When you test PN using your device attached to Xcode, everything works ok. The problem appears when you release the app to production, you keep getting:

    "Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string
     found for application" UserInfo=0x15b200 {NSLocalizedDescription=no valid     
    'apsenvironment' entitlement string found for application}" error.
    

    The solution that worked for me was:

    1. Delete provisioning profiles for development and distribution (Xcode and Developer portal).
    2. Delete your app ID (Developer portal).
    3. Create a new App ID with Push Notifications Support for Development and Production.
    4. Create new provisioning profiles using the NEW App ID.
    5. Install them on Xcode.
    6. Test on development and distribution release.
    0 讨论(0)
  • 2020-11-29 17:57

    Under 'Project' -> 'Build Settings' -> 'Code Signing', make sure you have selected the correct Provisioning profile (the one with push enabled).

    That was all I needed to change in order to make it work.

    0 讨论(0)
  • 2020-11-29 17:57

    Make sure that you are using the app in the correct way with the provisioning profile.

    What I mean is that if you've enabled your app for Push notifications for Distribution only, and you are trying to get push notifications to work via building with XCode, this will not work.

    I ran into this problem, and by enabling push notification for Development for the App ID, and then using the development provisioning profile I no longer got the error and the correct alert view asked if I wanted to get push notifications.

    0 讨论(0)
  • 2020-11-29 17:57

    Actually your provisional profile deleted from apple developer site.& you get error for

    0 讨论(0)
提交回复
热议问题