otool is command line tool of MacOS X that displays info of an object. The otool command displays specified parts of object files or libraries.
Questions tagged [otool]
136 questions
0
votes
0 answers
What assembly language does otool produce? (MacOS)
I am using otool to produce machine code from a gcc compiled C++ file:
otool -tvV one.o
That works well, and produces the assembly as output:
(__TEXT,__text) section
__Z14addByReferenceiRi:
0000000000000000 pushq %rbp
0000000000000001 movq …

ICW
- 4,875
- 5
- 27
- 33
0
votes
1 answer
Reason: image not found macos application
I am deploying qt application for macos so in order to create .app I am using macdeployqt tool.
My problem is that when I run the application I get this error:
dyld: Library not loaded:…

RuLoViC
- 825
- 7
- 23
0
votes
2 answers
How to just print the binary code of a function in an object file?
I am able to disassemble an object file like below. But I'd like to just dump the raw number like 55, 48, ... of instructions in a binary format for a specific function, e.g., add4, to a file.
I could write a program to parse the output of otool.…

user1424739
- 11,937
- 17
- 63
- 152
0
votes
1 answer
what is "binds_to_weak" and "weak_defines" flag signify in otool output?
after using the below command i am getting the two flags as "binds_to_weak" and "weak_defines". what is their significance?
$ otool -hv
(architecture armv7):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
…

Kunal Kumar
- 11
- 3
0
votes
1 answer
Mac OS X: How to get result of otool inside a script?
I'd like to change dylib search path in a script.
In the Terminal I use otool -L my.dylib, then see what is the search path and to change it use install_name_tool.
The install_name_tool (-change) uses previous path and the new path as a…

ZedZip
- 5,794
- 15
- 66
- 119
0
votes
2 answers
Symbolicating Crash Report ios
Along with crash report, I've .app and .dSYM package as well. I'm trying to symbolicate the crash report by running the following command
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash…

prabodhprakash
- 3,825
- 24
- 48
0
votes
1 answer
Interpreting nm output after rejected app
my app was rejected by Apple, because somehow my app uses private API's.
Apple said that my app uses
framework: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation': CFHashBytes
I couldn't find anything in the code, so I…

inexcitus
- 2,471
- 2
- 26
- 41
0
votes
1 answer
Binary comparison in refactored code using otool
I am refactoring C++ code, removing using namespace std; and adding std:: to strings, vectors, etc. I want the output to be indentical binary-wise, but cmp gives diffs even for minimal changes. I resorted to disassembling using otool but am…

Kalle
- 13,186
- 7
- 61
- 76
0
votes
1 answer
Dynamic linking on macOS: ImageIO.framework looks from the wrong path?
After rebooting my dev machine, my Rust project stopped running on macOS. The error message is:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in:…

GolDDranks
- 3,272
- 4
- 22
- 30
0
votes
1 answer
Apple app store rejection; How to find which lib has string referencing "transition:didComplete:"
We got rejected by Apple. Happens all the time right? But this time we are a bit stumped. The old ways of sussing this out aren't producing a clue to the solution.
From Apple:
5 PERFORMANCE: SOFTWARE REQUIREMENTS
Performance - 2.5.1
Your app…

Hunter-Orionnoir
- 2,015
- 1
- 18
- 23
0
votes
1 answer
How to use otool to check if bitcode is enabled
I am playing around with otool now for hour, but I didn't figure out how to get infos, if a binary is bitcode enabled.
It tried the following:
First I build a simple iOS app and run:
otool -arch arm64 -l testApp1 | grep bitcode
After that I…

patrickS
- 3,590
- 4
- 29
- 40
0
votes
0 answers
How to command line build a .app binary for OSX out of a Qt app?
I am preparing a shell script to build my QtApp into a .app for OSX. I do the following in my script
qmake MyApp.pro -spec macx-clang CONFIG+=release CONFIG+=x86_64 CONFIG+=qml_debug
make
macdeployqt MyApp/MyApp.app
And I get the MyApp.app. Great…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
0
votes
1 answer
How can I use otool to get the size of a binary file?
I'm using otool to get information about my binary. Here is part of my output:
Load command 0
cmd LC_SEGMENT_64
cmdsize 72
segname __PAGEZERO
vmaddr 0x0000000000000000
vmsize 0x0000000100000000
fileoff 0
filesize 0
maxprot…

Sayaki
- 769
- 14
- 36
0
votes
1 answer
How do I cure an otool execution failure?
I get the following error when attempting to install something via brew:
$~:brew install carthage
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
$~:
How do I resolve this?

Frederick C. Lee
- 9,019
- 17
- 64
- 105
0
votes
1 answer
Create a dmg file for qt app using macdeployqt
I currently created a 'dmg' file using macdeployqt and encountered the following error.
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/libosg.141.dylib
Referenced from:…

MistyD
- 16,373
- 40
- 138
- 240