I use Core Data and CloudKit in my iOS app, and everything has worked flawlessly so far. I just got a new Mac with an M-chip and now have to run my app in a Rosetta Simulator. iOS17 Rosetta Simulator works great. But iOS16 Rosetta Simulator crashes as soon as I run any CloudKit code, console prints:
[CK] BUG IN CLIENT OF CLOUDKIT: Not entitled to listen to push notifications. Please add the 'aps-connection-initiate' entitlement.
Although I have "Push Notifications" capability enabled in "Signing and Capabilities" of the project.
OK, I open the .entitlements file as a source code and add:
<key>aps-connection-initiate</key>
<true/>
Can confirm, that it started working in the iOS16 Rosetta Simulator. But now I have an error in the Signing and Capabilities:
Provisioning profile "iOS Team Provisioning Profile: com.###" doesn't include the aps-connection-initiate entitlement.
What exactly is this aps-connection-initiate entitlement? And why haven't I needed it ever before? Should I upload it to App Store ASAP or remove it (since my current version works on iOS16 without this entitlement)
Tried searching the web, couldn't find anything about this 'aps-connection-initiate' :'(