Bundle Identifier and push certificate… aps-environment entitlement error

前端 未结 19 2543
滥情空心
滥情空心 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: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.

提交回复
热议问题