Whenever I try to add the Push Notifications Capability it either does not get added afterwards or Xcode (v. 12.5) even crashes. Had anyone else a similar problem and could solve it somehow?
Asked
Active
Viewed 437 times
1
-
Could you be able to solve this? – Ahmed Shendy Jul 09 '22 at 08:03
-
Yes, check the accepted answer below. – Mitemmetim Jul 10 '22 at 09:15
1 Answers
1
I could solve the issue by myself - make sure CODE_SIGN_ENTITLEMENTS in the build settings are empty before you add the capability.
I used XcodeGen for creating my project by copy-pasting an other one and was missing that the CODE_SIGN_ENTITLEMENTS were already filled then. This somehow caused the problem that I could not add the capability anymore.

Mitemmetim
- 520
- 3
- 12