Anh Pham
Anh Pham

Reputation: 5481

How to disable push notification capability in xcode project?

I use a free Apple developer account, so no push notification support. So when I get an existing xcode project and try to run it on my phone, I get "Your development team, "xxx", does not support the Push Notifications capability."

But when I go to "Capabilities" tab, I don't see it there to disable (It said "10 capabilities Unavailable"). So I guess it hides them? But the project still require the capabilities somewhere?

So how do I disable the push notification capability of the project, so I can run it?

Upvotes: 21

Views: 32648

Answers (4)

coders
coders

Reputation: 2477

Following this pictrue will fix this issue

enter image description here

Upvotes: 2

陈皓楠
陈皓楠

Reputation: 3616

Just clear "Automatically manage signing" checkbox and select it again, you will find the "push notification capability" or other capability in Capabilities page.

Upvotes: 15

ooOlly
ooOlly

Reputation: 2127

UPDATE: Thank KerimGökarslan for remind me that somebody can't see push notifications capability.

If your developer account doesn't have push notifications capability, you must clear current provisioning profile and certificate. Then you can disable it in capabilities tab.

enter image description here

Select capabilities tab of your target and turn off what you want. Make sure configuration of every target is changed.

enter image description here

Upvotes: 34

何启亮
何启亮

Reputation: 279

enter image description hereOpen YourAppName.entitlements and delete

<key>aps-environment</key>

Upvotes: 21

Related Questions