Hi,
I'm following these steps to create an app for testing purposes, by exporting a Development-Signed application: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/BetaTestingYourMacApp/BetaTestingYourMacApp.html
But executing the generated app on a development device (running 10.12.3) triggers a sign-in dialog in the App Store app (The device was properly added to the portal):
Then, If I login with my apple ID, the app fails to load with the error : "is damaged and cannot be opened"
Notes:
Running codesign --verbose=4 --deep --strict ./MyApp.app/ succeeds
Running spctl --assess --verbose ./MyApp.app/ fails with
./MyApp.app/: rejected
This is what I tried to do to work around the problem:
1) Cleared and re-downloaded the profiles
2) Made sure all test devices were propertly added
3) I'm using the default, automatic 'Mac Team Provisionning Profile'. Tried with a manual profile to no avail.
Any ideas?