Can't add capabilities in Xcode

We had push notifications and associated domains capabilities to our app but something happened either with my certificates or Xcode and they disappeared and can't add any capabilities anymore.

https://imgur.com/peRXNO6

Our App ID, certificate and provisioning profile are all correct and contain the correct capabilities.

Hello, I have exactly the same problem with Xcode 15, has anyone found a solution in this regard? I can no longer add Push Notification, Domains and more

If you create a new test project from one of the built-in templates — so, if you’re targeting iOS, use iOS > App — does it have the same problem?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

No, the problem only exists in this project. When I start a new test project, everything can be added normally.

Interesting.

Make a copy of your project and delete all the targets except your main one. Does that still have the problem? If so, what type of target is that? And what capability are you testing with?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am having the same issue. I only have one target. I am trying to add any capability. Interestingly, when I hover over the Provisioning Profile, it looks like the capabilities are added already, but they do not show up in Xcode. What is going on?

im facing this issue currently, anyone fixed it?

I fixed the problem by editing my .entitlements file. The issue was that file's structure was incorrect and duplicated capabilities.

I also cannot add capabilities in Xcode, it started when I wanted to first use the app on a physical iPhone and had to create a provisioning profile for the first time... Xcode will not let me add a capability (including what I am trying to do now, which is Sign in with Apple)

Can't add capabilities in Xcode
 
 
Q