Open ahimberg opened 7 months ago
Thanks for Issue
A couple observations looking at how this command is run:
the fullDeveloperID string always has this Developer ID Application: prefix, which isn't the prefix I see on the certificates created by apple, its 'Mac Developer: ' for me.
val developerIdPrefix = "Developer ID Application: "
val thirdPartyMacDeveloperPrefix = "3rd Party Mac Developer Application: "
in MacSignerImpl, this call creates the command to run, the arg after -c, is not quoted, which results in the tool returning all certificates that contain the word 'Developer' when the string is 'Developer ID Application: Andy Himberger'
runTool(
MacUtils.security,
args = listOfNotNull(
"find-certificate",
"-a",
"-c",
settings.fullDeveloperID,
settings.keychain?.absolutePath
),
I created a new keychain with only one certificate in it, that gets createDistributable to succeed on my machine.
Attempting to notarize now and that is failing that something was invalid in the request, from the notarize logs the request to apple fails because there are all these dylib files in the package with an error message of - "The binary is not signed with a valid Developer ID certificate.".
with all of this signing/notarize all I'm trying to do is be able to run the app I created on another machine, no intention to publish to the app store.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Created a new compose desktop app on my mac. Followed the instructions for signing and notarization here: https://github.com/JetBrains/compose-multiplatform/blob/master/tutorials/Signing_and_notarization_on_macOS/README.md
always getting an error that it can't find a certificate
Affected platforms Select one of the platforms below:
Versions
To Reproduce Created a new compose desktop project in intellij idea ce followed the tutorial to setup for signing and notarization (for a mac desktop app, trying to run on another machine it won't run I guess because it needs some kind of signing) edited the build.gradle.kts file adding into the nativeDistributions { macOs { section
Expected behavior Successfully signs and notarizes, better indicator of why its failing
Additional context I first tried using existing signing certificates already on my machine working with xcode development, but created a new one following the steps too.
I get this error trying to run the createDistributable task:
With debug logs enabled I see it ran this command but no other output on why it failed:
If i run that command myself it is showing 4 certificates, the one I created using the tutorial is this one: "alis"="Mac Developer: Andy Himberger (GK8V53S8Z3)"
but these are also in my keychain being returned not sure if its confused by them:
"alis"="Developer ID Certification Authority"
"alis"="Apple Worldwide Developer Relations Certification Authority"
"alis"="Apple Worldwide Developer Relations Certification Authority"