I was able to crate a mac app from an air file using this command:
bash adt -package -target bundle GT.app GT.air
after I installed the air sdk and unlocked the security quarantine.
this is how I did it:
download the air sdk
when it is still in the download folder unlock the securety restriction on the sdk by running
this commant on terminal:
xattr -dr com.apple.quarantine ~/Downloads
This will remove the quarantine flag from all files in Downloads.
if not you will get this error while running adt comands:
"naip" can't be opened because apple cannot check it for malicious software.
this software needs to be updated. contact the developer for more information.
Safari downloaded this file today at 23:45
show in finder --- OK
for more info:
https://hiringengineersbook.com/post/disable-quarantine/
now copy the Air sdk folder to the Applications folder or else you will
get this error message when running the adt commands:
Error: Unable to access jarfile ./../lib/adt.jar
so far so good.
now run this command on terminal to see my certificates:
security find-identity -p basic -v
got a list of my certificates:
xxxxxxxx... "Apple Development: my name (XXXXXXXX)"
xxxxxxxx... "Apple Development: my name (XXXXXXXX)"
xxxxxxxx... "Developer ID Application: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "iPhone Distribution: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "3rd Party Mac Developer Application: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "3rd Party Mac Developer Installer: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "Apple Development: my name (XXXXXXXX)"
xxxxxxxx... "Developer ID Application: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "iPhone Distribution: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "3rd Party Mac Developer Application: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "3rd Party Mac Developer Installer: My Company name, Inc. (XXXXXXXX)"
xxxxxxxx... "Apple Development: my name (XXXXXXXX)"
took the one that should be working according to the guide on comment #2225
codesign -f -s “Developer ID Application: My Company name, Inc. (XXXXXXXX)” GT.air
got the same error: zsh: no matches found: (XXXXXXXX)
tried signing the app itself, now that I created it:
codesign -f -s “Developer ID Application: My Company name, Inc. (XXXXXXXX)” GT.app
no luck, same error: zsh: no matches found: (XXXXXXXX)
What should I do now?
could it be that I installed new certificates to the keychain, while old versions of the same certificates where still installed?
And if so, what should be done? Should I delete all certificates from the keychain and install them one by one again? I did have old certificate in my keychain, some of them were expired. I deleted the expired ones, but maybe did not delete the none expired ones, even though they were old ones, ones I evoked and created new ones in my Apple account. So to clean the keychain should I delete all and install again? or will it create an even worse mess?