I am trying to create a Mac app that will access CloudKit under the production system. This is just a helper app I need to run (it runs fine in Xcode against the dwvelopment CloudKit servers) and I won't actually be distributing it to anyone other than me for "beta test" and it won'r ever get to the Mac App Store.
I followed these instructions exactly:
But when I try and launch the app, it fails unexpectedly and shows this in the crash dump:
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Searching on this gives all sorts of answer in the search engines, and many of them point back to the Apple docs above.
I am doing what the Apple doc above says:
Let Xcode create a Mac Developer Certificate and a Team Profile. Choose "Mac App Store" under the General Tab. Archive. Choose option 3 in the export (Export a Developmet Signed Application). That all happens without error report. But running it causes the app to crash as shown above.
I also, additionally, tried to create a manual provisioning profile and specify that in the build settings. That exports fine (showing my manual profile) but it also crashes.
Interestingly, in the developer.apple.com website under my provisioning profiles for Mac OS X, the team profile does not show up at all (to try and verify devices, etc.) but if I add another device, a new team profile is generated as can be seen in Xcode when downloading all profiles and watching the team one switch to another ID.
Any help or ideas would be appreciated.