I am working on an open source weather app for distribution outside the Mac App store: https://sourceforge.net/projects/heat-meteo
The project builds and runs fine in Xcode.
The batch build script was using ALTOOL which can’t/shouldn’t be used anymore. I am trying to set it up for notarytool.
This is what I think is now happening.
Again, all works fine in the Xcode debugger.
In Xcode, the build is setup with Automatically manage signing for both Debug and Release. They are using my Apple Development account, 4V7….
What I have read if that if I want to distribute outside of the Mac App store, it must be signed with my Developer ID Application, 7VN….
I tried to do an xcodebuild then codesign to switch from 4V7 to 7VN. That actually worked. codesign -dv --verbose=4 <app> shows the correct account. However when I do that, codesign --display --verbose <app> shows I lost the hardened runtime and then notarytool fails because hardened runtime isn’t set. The hardened runtime flag IS set before the codesign command.
I can physically turn off Automatically manage signing in Xcode for Release, but how to I select my Developer ID Application account? It does not appear to be a choice.
If it matters, the application needs both WeatherKit and Location entitlements and they are set to YES in the entitlements file.
I’m guessing, and this pure guessing, I need to adjust something in https://developer.apple.com/account but I don’t know what.
Thanks in advance. Ed
@eskimo - how should should the Xcode archive take to process? It's ben over 24 hours with no feedback.
I also experimented with xcodebuild options for archive (-exportArchive -exportPath ./Build/Release -archivePath ./Build/Archive -exportOptionsPlist exportOptions.plist) and I get this message: error: archive at path '/Users/ed/Documents/Xcode-Projects/meteorologist/trunk/Build/Archive' is malformed
If it matters, my exportOptions.plist file looks like this: { destination = export; signingCertificate = "Developer ID Application"; signingStyle = automatic; teamID = 7**...; }