I have an application made for iPhone and iPad with enabled capability to run natively on M1 Macs.
When I try to resign it with an AdHoc profile:
codesign --force --deep -s - MyApp.app
Application can not be launched anymore with error:
"MyApp.app" cannot be opened because the developer did not intend for it to run on this Mac. Contact the developer for support.
Is there way to resign it without loosing an ability to run on M1 Mac?
Thanks!