M1 Silicon app (designed for iPad) doesn't launch after codesign

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!

Replies

You should archive the app, and then export the app through the Ad-Hoc export process instead of manually resigning it.

edford, it's not possible because I don't have source files, only working .app file. And for security investigation I need to re-sign it.

Are you working in cooperation with the app’s developer? If so, ask them to send you an Xcode archive and you can then follow Ed’s advice.

If not, that’s not something we can help you with.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"