Questions tagged [mach-o]

Executable file format utilized by Darwin.

Mach-O is the file format used for executables, shared libraries and object files on OS X and iOS. It supports both single-architecture and multiple-architecture ("fat") binaries.

371 questions
0
votes
1 answer

Apple macho linker error when making a fresh project

If you understand these logs, i'll just post the picture before I go into details on how I made it. My prev project became a messy trash, so I decided to start fresh. I copied over the files (trough folders in Finder, not in XCode), got everything…
Oscar Apeland
  • 6,422
  • 7
  • 44
  • 92
0
votes
0 answers

Error: ld: 1 duplicate symbol for architecture armv7

I have looked everywhere and cannot find the solution to this problem. I have tried renaming the .h/.m files deleting them and creating them again as well as seeing if the problem is with the files not being in the compile sources in the project…
0
votes
1 answer

Adding and Using Dynamic Libraries with Xcode

Ok. So here goes. I am currently trying to add and use a dynamic library called OpenCV into a Xcode project of mine. I first installed MacPorts using the .pkg. Then I opened Terminal and ran "sudo port install opencv". MacPorts then installed all…
yysh12
  • 1
  • 1
  • 5
0
votes
1 answer

Apple Mach-O Linker Error (Cannot built my app when i select iOS device)

I built an app that uses ZbarSDK for barcode scan, the app works fine when running over the simulator, but when I try to archive it on a real device this error shows up:
0
votes
1 answer

Change OBJC_IVAR_$ in binary

In an older version of a framework there were two class, A and B, with A being a subclass of B. In the newer version B no longer exists and everything in B (ivars etc.) is now in A. An executable file is linked against the old version, so it looks…
user1000039
  • 785
  • 1
  • 7
  • 19
0
votes
1 answer

Mach-o to Ubuntu Executable for Oracle 10g ProC

I've got a series of Unix Executable Files that I need to convert into a Ubuntu Executable; when running file I'm told that it is a Mach-O 64-bit executable. I am running this on a 64-bit Ubuntu OS. My question is, is there a way to…
Matt C
  • 137
  • 1
  • 3
  • 15
0
votes
1 answer

Missing IDA PRO Mach-O file for ARMv6 support

I've just downloaded IDA Pro 6.4 demo version and when i try to open an iPhone binary file i can only chose "Macho-O file (EXECUTE).ARMv7 [macho.ldw]". I've seen people having to chose between ARMv6 and ARMv7 on their IDA Pro version. I need that…
Robin
  • 64
  • 1
  • 1
  • 6
0
votes
1 answer

Tabris Xcode Apple Mach-O Linker Error

I tried to get the Tabris iOS-Client working. I imported everything in Xcode, registered my Phone as a Developer-Phone on Apple's page. Downloaded my provisioning profile and created a new Tabris project in Xcode. The client-app runs perfect in the…
0
votes
1 answer

Opencv 2.3.0 Flann linking error (Xcode)

I have an older system (OSX 10.6.8 with xcode 4.0) and I'm trying to get OpenCV 2.3.0 to work on it. The problem that I can't resolve is that whenever I try to use the flann library, my xcode gives me a Mach-O linker error. So far I've tried…
0
votes
1 answer

Double imports of similar function name in a Mach-O file

I was looking into the import section of a Mach-O file and realised that there are 2 different exit system calls (at different addresses) to libSystem.B.dylib? I want to hook onto the exit method which is called. Although I'm aware trial and error…
gigasai
  • 564
  • 4
  • 23
0
votes
1 answer

Overriding a libc function using an injected dylib on OS X

I am trying to override some libc functions (eg: puts()) with my own implementation. I have defined my own implementation in a dylib file as follows. int puts ( const char * str ); When I link my binary with the dylib file in Xcode and build, my…
Karthik
  • 770
  • 1
  • 6
  • 12
0
votes
2 answers

Finding functions address on the fly

My goal is to hook C functions with no symbol in stripped binaries on ARM platform. As the addresses of these functions may changed (ie. with an update of the binary), I want my interposing dynamic library itself to find the addresses. Moreover,…
jb_
  • 23
  • 3
0
votes
2 answers

Updated to xcode 4.5 and now app build fails "Apple Mach-O Linker Error"

Hi I'm a newbie when it come to app development, but I DID have an app working just fine until I upgraded to xcode 4.5. The app has not changed but I am now getting 'Build Failed' when trying to put the same app on the same iPad I have always…
Nick Wood
  • 11
  • 4
0
votes
2 answers

Changing function reference in Mach-o binary

I need to change to reference of a function in a mach-o binary to a custom function defined in my own dylib. The process I am now following is, Replacing references to older functions to the new one. e.g _fopen to _mopen using sed. I open the…
varrunr
  • 845
  • 1
  • 11
  • 19
0
votes
1 answer

Libsvm python bindings: mach-o, but wrong architecture

I am trying to install libsvm on my mac (OS-X 10.6.8). Libsvm installs fine for C++ (i can use svm-train, svm-predict binaries just fine). As per instructions I typed make in libsvm-3.12/python/ folder and got following output make -C .. lib if…
1 2 3
24
25