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
2 answers
Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
I am trying to execute brew commands on my system. But its keeps on throwing the same failure:
Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
The configuration of the brew installed are :
HOMEBREW_VERSION: 0.9.5
ORIGIN:…

Naman
- 27,789
- 26
- 218
- 353
0
votes
0 answers
Homebrew cant find otool or clang
I am trying to install Python 3 using homebrew, but it fails with an error. When I run brew doctor it says:
Error: Failure while executing: /usr/bin/otool -L
/usr/bin/install_name_tool
How do I fix this?

Finlay Ekins
- 9
- 2
0
votes
1 answer
Problem with understanding arm assembly code structure
code is listed as follows, I want to know in the ending part
0000e0b4 001d22d0 ldrsbeq r2, [sp], -r0
does this do calculation for this line of code since it loads the address defined in the ending part
0000e03c e59f4070 ldr r4, [pc,…

overboming
- 1,502
- 1
- 18
- 36
0
votes
2 answers
C std library don't appear to be linked in object file
I am using a program like this with math.h function "sin" and stdio.h function"printf" used
#include
#include
int main ()
{
int x = sin(14);
printf("hello");
return 0;
}
And as stated by ephemient here that libc.so…

Jay Shenawy
- 953
- 1
- 12
- 22
0
votes
2 answers
Dumped i386 assembly code and recompile as PPC?
I used the Apple built-in "otool" command with "-Vvtd" switches to dump a Mach-O i386 binary, redirected to a .s file. I have tried unsuccessfully to use nasm and GAS assemblers to recompile the code on a PPC machine ("as"-binary in the i386…

BigSum
- 61
- 7
0
votes
0 answers
Apps that use non-public APIs will be rejected
our app have been rejected by apple with the following message: (i put in column the location of any api mentioned)
We found that your app uses one or more non-public APIs, which is not in compliance with the App Store Review Guidelines. The use…

user3896162
- 63
- 1
- 8
0
votes
1 answer
How to create an absolute path reference in a dylib?
[Disclaimer: I'm working with someone else's code. I've never created a .dylib, so I turn to S.O.]
I'm working on a distro that creates a .dylib. It looks okay, but when I link against it, the resulting executable crashes with:
dyld: Library not…

fearless_fool
- 33,645
- 23
- 135
- 217
0
votes
1 answer
Mac OS X - Linking executable to different dynamic library, load both old and new
I've a command line tool, I built with Xcode, that links to some Apple frameworks.
As a "personal experiment" (just trying to understand a little of how dynamic libraries works) I tried to point the executable to a different version of the same…

Paolo
- 15,233
- 27
- 70
- 91
0
votes
1 answer
Reading binary (MACH-O) file load commands
How does otool and similar tools read load commands? I could not find any open source tools to figure this out (even though otool is partially open source). How does it parse the binary file? Where does it start?
Thanks

John Smith
- 307
- 3
- 14
0
votes
1 answer
Decompile .framework bundle with otool?
I'm trying to decompile a .framework bundle on mac using command line and otool. It doesn't let me - invalid file error or something like that. I see that otool does work with .a static libraries.
Is there any way I can decompile .framework bundles?

Tony Friz
- 883
- 1
- 10
- 27
0
votes
1 answer
Build Qt5 from git - QWebKit framework is linked with absolute path
I just have build Qt5 on Mac 10.8 from git as per this article
Everything went fine, I git make, make install and now I have Qt5 installed into /usr/local/Qt-5.1.1
The problem is that Assistant.app won't run - it crashes on startup. I ran otool…

ak.
- 3,329
- 3
- 38
- 50
0
votes
2 answers
Running bat file in java not working
I am trying to make a program to decompile a binary
this is my current code:
try {
PrintWriter out = new PrintWriter("Dumps.bat");
out.println("@title Dumping");
out.println("\\Developer\\usr\\bin\\otool -tV " +…

junyi00
- 792
- 3
- 8
- 28
0
votes
1 answer
Has anyone used oTool commands through XCode command line tools ?
Has anyone used oTool commands through XCode command line tools ?
I want to check Stack protection flag setting using oTool for an iPAd app.

Swap
- 11
- 3
0
votes
1 answer
iOS app downgrade compatibility requirements
I was wondering if it's possible to downgrade an app from the app store (ARM binary) to a lower version. For example if the app requires iOS 5.0 or 4.3 or later getting it to run on iOS 4.2 or 4.0.
I understand that the requirements are important as…

Nederealm
- 447
- 4
- 15
0
votes
1 answer
gdb backtrace output and otx (otool) output?
Why are none of the addresses from the gdb backtrace output present in the otx (otool) assembly output of this program? I was under the impression that they corresponded to the offsets in my otool asm output... I apologize if this is a silly…

Peter Murphy
- 351
- 3
- 3