In Xcode7 there's a new option when exporting your app called "Export a Development-signed Application" (note: NOT developer-ID signed). This should save a copy of the application signed with your development identity. Essentially, in other words, this is what you need to use when distributing for Adhoc. The following article says the same: https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/BetaTestingYourMacApp/BetaTestingYourMacApp.html#//apple_ref/doc/uid/TP40012582-CH34-SW1 (Exporting Your App for Testing)
Having said that, when I try using this option and then try launching the app, it just fails a with a EXC_CRASH (Code Signature Invalid). I don't understand why - I'm trying this on my development machine and it should work fine.
codesign -vv ./MyApp.app says:
MyApp.app: valid on disk
MyApp.app: satisfies its Designated Requirement
However spctl fails:
spctl --assess -vvvv ./MyApp.app: rejected
origin=Mac Developer: Some Developer (EWR3452WR)
The packaged entitlements look okay too, and I don't see why it would not work. The app uses iCloud, CloudKit and MapKit (all App Store only technologies) and I understand it results in a code sign crash at runtime when using with a 'Developer-ID signed bundle' but here I'm using my own Development certificate.
Please help!