-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make signed HMSL app for MacOS #165
Comments
I renewed my Apple Developer account for $99. Now just waiting for it to process. |
Application approved. What a nightmare! |
This is a log of the steps required to sing my HMSL app for Mac. I found my KeyChain by opening "Applications/Utilities/Keychain Access.app". I opened XCode and went to Settings >> Accounts then "Manage Certificates". This fellow on Stack Overflow had a similar problem: Useful sounding info here: I tried to add a key at https://developer.apple.com/account/resources/authkeys/add |
As an experiment, I am going to create a new certificate. So I went back to XCode and went into Manage Certificates. Now I will try to figure out if I can sign HMSL using that, at least for testing. |
In XCode Build Signing Certificate, I selected my new Apple Development Certificate. |
I also tried to use the XCode Managed certificates but it still failed. |
Apple told me to read Create, export, and delete signing certificates. I was able to Revoke an old certificate. I looked again in Utilties >> Keychain Access. |
I tried again to use the XCode "Automatically Manage Signing" feature. I found this forum with people having similar troubles. I tried to Sign In with Apple so I could +1 a comment and Apple keeps saying "Page not found". |
Found this forum. Apparently I have to enter my login password then click the "Always Allow" button, which is not even enabled. Maybe I should just focus on the Linux version... |
I copied the newly built JuceHMSL.app to my HMSL_release/HMSL/hmsl folder. |
A post by parkskier426 in https://forums.developer.apple.com/forums/thread/687712 said Now I no longer have to enter a password! I made a ZIP file, uploaded to Google Drive then downloaded it back down. |
Another comment wrote:
Amazing. |
It's astounding that the Apple key management and app signing process is still so arcane and brittle. Every year I think it's bound to get better and more automatic, but alas. My understanding from a couple of years ago is that the app not only has to be signed but also notarized in order for the app to launch without needing right-clicking or the user having to interact with warning dialogs and/or the Privacy System Settings. Have you tried this additional arcane procedure?: |
@darrengit - thanks for the tip about notarization. My notes follow: Apple says:
XCode says it is using a "Development" certificate. I'm not sure if that is valid. I guess the notary will tell me. This page told me how to add a "Hardened Runtime". Apple says I must "Create an archive of your app."!
So I tried to rebuild libme2000.a using the CMake instructions in: It still failed so I asked Google how to add arm64 to the library and the AI told me to add this to CMakeLists.txt
The libme2000.a went from 1.3MB to 2+MB so I think it added the ARM code. So I stubbed out the Jukebox functions and it now builds. I clicked "Validate Archive" and it told me: |
So this is progress of sorts. I am worried about the "bundle must install to '/Applications'. I may have to write a real package installer. I think writing the original HForth kernel in assembly language was easier than trying to coerce XCode into building an executable app. Sigh. |
I think you could put the dictionary and other resources like .fth files in the ApplicationSupport folder. |
When downloading the app, the user is confronted with a scary dialog saying the app is untrusted.
The text was updated successfully, but these errors were encountered: