xcode 8 push notification capabilities and entitlements file setting

前端 未结 3 658
眼角桃花
眼角桃花 2020-12-12 16:14

when using xcode 8 doing the push notification setting, unlike xcode 7, xcode 8 need developer turn on push notifications capabilities

相关标签:
3条回答
  • 2020-12-12 16:34

    I think the better solution is open the project package and open project.pbxproj

    change the CODE_SIGN_ENTITLEMENTS

    CODE_SIGN_ENTITLEMENTS = "your-app/production.entitlements";
    
    0 讨论(0)
  • 2020-12-12 16:46

    I was struggling with that today in Xcode 8 GM. After disabling the setting, deleting my developer portal provisioning profile and regenerating it and enabling the setting again, I was able to eliminate the warning in Xcode. Keep in mind that I didn't fiddle with the entitlements file. I left it at development environment and after archiving I got the correct aps-environment setting (production).

    Seems Xcode is stilly very buggy tho even in GM

    0 讨论(0)
  • 2020-12-12 16:48

    My problem was my pusher client was out of date and would only push successfully to debug tokens. Other issue which I am still working on a fix for is that I could only export the app via gym with legacy-api enabled, this was not setting the apns-environment to be 'production' and leaving it as 'development' in the 'embedded-mobile.provision' file. I have however been able to successfully deploy the app via the xcode organiser to work with apns(prod) now.

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