iOS Question After update xcode to version 8 can't get push token

tzfpg

Active Member
Licensed User
Longtime User
When application start i can't get the push token. Get error below
B4X:
Application_Start
Application_Active
Application_Pushtoken
Error getting token: <B4IExceptionWrapper: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}>

Pls help me. Here is my source code zip
 

Attachments

  • test1.zip
    3.5 KB · Views: 228

Erel

B4X founder
Staff member
Licensed User
Longtime User
I see it too. It is related to this change: "Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor’s Capabilities pane, or manually add the entitlement to your entitlements file. (28076333)"

I will further investigate this issue. If you need an immediate solution then you should downgrade to Xcode 7. Note that the hosted builders still run Xcode 7.
 
Upvote 0

cloner7801

Active Member
Licensed User
Longtime User
I see it too. It is related to this change: "Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor’s Capabilities pane, or manually add the entitlement to your entitlements file. (28076333)"

I will further investigate this issue. If you need an immediate solution then you should downgrade to Xcode 7. Note that the hosted builders still run Xcode 7.
Hi Erel,
I have same problem..
how can I fix this problem?
I am using hosted builder
 
Upvote 0
Top