iCloud enabled and EXC_CRASH (Code Signature Invalid)

Hi,


I just spend few hours trying to export my mac app and launch, since I enabled iCloud support it always end with "EXC_CRASH (Code Signature Invalid)" no matter what. As soon as I disable iCloud support it start working. I saw (I think) all the TN and now I have the question: how to build the app and launch it?


0. I regenerated all certificates and privisioning profiles, and created new application id just for this app.

1. XCode -> Archive -> Export

1a) Export a Development-signed Application

1b) Export a Developer ID-signed Application


full crash report: https://gist.github.com/krzyzanowskim/99ede7bad7aa09cfb991


Tried with and without sandboxing. Nothing seems to work. Any verified advice is appreciated.


Xcode: 7.1 (7B91b)

OSX: 10.11.1 (15B42)

Replies

I have exactly the same problem.... could you solve it in the meantime?

This error typically implies that your app is signed with an entitlement that isn’t whitelisted by your provisioning profile. You can’t use iCloud from a Developer ID signed app because such Developer ID apps don’t have a provisioning profile. If you’re signing as a Mac App Store app, you should check your entitlements as described in Technote 2415 Entitlements Troubleshooting.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"