Hi,
I am trying to build, archive and create MacOS release app without hosting to app store.
steps:
-
Changed scheme to Any Mac (Apple Silicon, Intel)
-
Build Created
-
Archived
-
click on Distribute App > Selected App Store Connect > Selected Export >
Preparing app record clicked skip > App store connect distribution options clicked next > Re-sign Mac Tracker clicked next > Clicked Export.
-
*.pkg file Created.
-
installed App in new Mac.
-
App installed in Applications folder.
-
App crashes with error "Code Signature Invalid" when trying to open the App.
You’ve gone down the wrong path here. If you want to ship independently, you need to use Developer ID signing. So, in the Xcode organiser, click Distribute App and then select Developer ID rather than App Store Connect.
Two things to note:
-
You’ll have to notarise your app but, at least in the simple case, Xcode can take care of that for you. For more background on this, see the various links in Notarisation Resources.
-
If you stick with Xcode the final result is an app, which you’ll need to package in, say, a zip archive in order to ship to customers. For info on how to do that, see Packaging Mac Software for Distribution.
ps The reason why your app crashed is that you can’t, in general, run code that’s signed for App Store distribution. See Don’t Run App Store Distribution-Signed Code.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"