JTool Signing Issue

Used for discussing the various tools in the book as well as encouraging members to share tools

JTool Signing Issue

Postby 32Bites » Sun Jan 14, 2018 10:55 pm

So, when I was trying to sign an arm64 binary with both "./JTool --arch arm64 -S" and "./JTool -arch arm64 --sign".
And I keep on getting this error: "String out of context: arm64 (arg: 2 of 4) - also not a file".

Please help.
Posts: 1
Joined: Sun Jan 14, 2018 10:45 pm

Re: JTool Signing Issue

Postby Siguza » Sun Jan 14, 2018 11:02 pm

Is your binary a fat binary? If not, jtool won't need an -arch flag. I generally find it easier to use an environment variable like so: "ARCH=arm64 jtool ..."
Then jtool will work with it if it needs it, but not complain if it doesn't.
User avatar
Posts: 182
Joined: Thu Jan 28, 2016 10:38 am

Re: JTool Signing Issue

Postby morpheus » Wed Jan 17, 2018 1:54 am

Actually, it's -arch not --arch. When jtool says "string out of context" that means it doesn't understand the arguments.

To clear up some confusion:

-S : show symbols (like nm -m)
--sig: show signature (like code sign, only so much better)
--sign: to sign. Then optionally use
--inplace (to overwrite file)
--ent _xml_file_: to provide entitlements
platform/adhoc: (immediately after --sign) - for platform binary or adhoc binary, respectively
Site Admin
Posts: 738
Joined: Thu Apr 11, 2013 6:24 pm

Return to Tools

Who is online

Users browsing this forum: No registered users and 1 guest