Post

Replies

Boosts

Views

Activity

Reply to Struggling with SMJobBless in a sandboxed app
@mikeyh Updated SMJobBlessUtil-python3.py with workaround for otool arm64 weirdness: https://gist.github.com/mikeyh/89a1e2ecc6849ff6056b7391c5216799 I tried your latest version of the SMJobBlessUtil-python3.py tool (thank you for it, btw!), but I get the following error: tool __TEXT / __info_plist section dump malformed (1) implying that the output of the otool command is empty, which indeed I find: > otool -V -arch arm64 -s __TEXT __info_plist <helper tool> > Whereas, if I use x86: > otool -V -arch x86_64 -s __TEXT __info_plist <helper tool> (__TEXT,__info_plist) section <?xml version="1.0" encoding="UTF-8"?> ... </plist> In the previous script version, it was extracting the hex dump, which I get with this (same without the -arch option) > otool -arch x86_64 -s __TEXT __info_plist <helper tool> Contents of (__TEXT,__info_plist) section 0000000100003b06 3c 3f ... ... So your previous version of the script works for me, but not the latest one with the arm64 weirdness fix. I conclude this is because the helper tool is only being built for x86_64, but I am on an M1 MacBook. So I may not be in the same situation as the original person who asked the question, but I think the script may need a modification to handle this case.
Nov ’22