Date
1 - 3 of 3
Archive command line tool
tridiak
My guess it has to do with code signing but.
I have a custom command line app in which the debug version works fine.
Even when executed directly from terminal.
When archived and exported, the optimised version works fine when executed from terminal.
But if the app is copied to /usr/local/bin, zsh kills it before it even enters main().
What am I missing?
Is it ownership permissions or code signing?
TIA
Mark
I have a custom command line app in which the debug version works fine.
Even when executed directly from terminal.
When archived and exported, the optimised version works fine when executed from terminal.
But if the app is copied to /usr/local/bin, zsh kills it before it even enters main().
What am I missing?
Is it ownership permissions or code signing?
TIA
Mark
Alex Zavatone
Is there a log somewhere indicating why it is terminated or what is terminating it?
Cheers,
Alex
toggle quoted message
Show quoted text
Cheers,
Alex
On Sep 27, 2022, at 9:31 PM, tridiak <tridiaknz@...> wrote:
My guess it has to do with code signing but.
I have a custom command line app in which the debug version works fine.
Even when executed directly from terminal.
When archived and exported, the optimised version works fine when executed from terminal.
But if the app is copied to /usr/local/bin, zsh kills it before it even enters main().
What am I missing?
Is it ownership permissions or code signing?
TIA
Mark
tridiak
Nope. No logs whatsoever.
toggle quoted message
Show quoted text
Console app displays nothing.
I did a codesign entitlement check on the tool and an older one (2019).
spellSlot is the app I have problems with.
selectCols is older (and works) and the only difference I have noticed is the runtime flag. At a guess this is what is causing the problem?
codesign -d -vvv --entitlements :- spellSlot
Executable=/usr/local/bin/spellSlot
Identifier=spellSlot
Format=Mach-O universal (x86_64 arm64)
CodeDirectory v=20500 size=2357 flags=0x10000(runtime) hashes=63+7 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha256=c3ef34c22200c6d12cc4dfefdb0a35fc0d846a1a
CandidateCDHashFull sha256=c3ef34c22200c6d12cc4dfefdb0a35fc0d846a1ac95be7aee245e3a852390113
Hash choices=sha256
CMSDigest=c3ef34c22200c6d12cc4dfefdb0a35fc0d846a1ac95be7aee245e3a852390113
CMSDigestType=2
CDHash=c3ef34c22200c6d12cc4dfefdb0a35fc0d846a1a
Signature size=4777
Authority=Apple Development: Mark Noble (P59ZE478T5)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=28/09/2022 at 3:24:48 PM
Info.plist=not bound
TeamIdentifier=7N28673KX9
Runtime Version=12.3.0
Sealed Resources=none
Internal requirements count=1 size=172
codesign -d -vvv --entitlements :- selectCols
Executable=/usr/local/bin/selectCols
Identifier=selectCols
Format=Mach-O thin (x86_64)
CodeDirectory v=20200 size=2922 flags=0x0(none) hashes=84+5 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha256=cb8e2a033936ba3277ad42ffa6c11007b0e33aed
CandidateCDHashFull sha256=cb8e2a033936ba3277ad42ffa6c11007b0e33aed94bc7a1397b237ef0b5c417f
Hash choices=sha256
CMSDigest=cb8e2a033936ba3277ad42ffa6c11007b0e33aed94bc7a1397b237ef0b5c417f
CMSDigestType=2
CDHash=cb8e2a033936ba3277ad42ffa6c11007b0e33aed
Signature size=4732
Authority=Apple Development: Mark Noble (P59ZE478T5)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=29/12/2019 at 7:02:36 PM
Info.plist=not bound
TeamIdentifier=7N28673KX9
Sealed Resources=none
Internal requirements count=1 size=172
Is there a log somewhere indicating why it is terminated or what is terminating it?
Cheers,
AlexOn Sep 27, 2022, at 9:31 PM, tridiak <tridiaknz@...> wrote:
My guess it has to do with code signing but.
I have a custom command line app in which the debug version works fine.
Even when executed directly from terminal.
When archived and exported, the optimised version works fine when executed from terminal.
But if the app is copied to /usr/local/bin, zsh kills it before it even enters main().
What am I missing?
Is it ownership permissions or code signing?
TIA
Mark