mach-o Questions

11

Solved

I have an error at compile time. Seems to be weird. it worked as detail view application, but using single view doesn't seem to work. this is the error details: Undefined symbols for architectur...
Innoxious asked 19/7, 2012 at 3:13

2

Solved

I am attempting to hand-write a Mach-O executable. There are three load commands: LC_SEGMENT_64 loading __PAGEZERO LC_SEGMENT_64 loading __TEXT, with a single __text section LC_UNIXTHREAD with an...
Effect asked 4/10, 2016 at 23:9

1

Solved

I'm working on developing a macOS dylib framework, developed outside of Xcode, and I'm trying to understand the significance of the install_name option. For example, I can set the LC_ID_DYLIB sect...
Receptor asked 13/2, 2017 at 18:15

4

Solved

I've added a library named "*.a" from three part and added its header file in my XCode project. While I compile the project, there are many "Apple Mach-O linker Error". Here the error info: "std:...
Electrokinetics asked 16/3, 2014 at 13:59

3

Solved

I've been trying to get my app up and running. From what I could tell the app was missing Cocoapods as a dependency. So. I installed and added Cocoapods. But I'm still getting the same error for wh...
Handley asked 8/10, 2014 at 18:13

3

Solved

Under Linux, I can register a routine that will run before main. For example: #include <stdio.h> void myinit(int argc, char **argv, char **envp) { printf("%s: %s\n", __FILE__, __FUNCTION__...
Gnathion asked 8/6, 2015 at 2:42

4

Starting from some point in the past xCode 4 in complaining about linker problems: ld: warning: building for MacOSX, but linking against dylib built for iOS: /Developer/Platforms/iPhoneSimulat...
Havstad asked 24/8, 2011 at 10:4

2

Solved

In short, when I have multiple db sections in my .data section, the compiled addresses/labels are off when compiled by NASM. In my testing they are off by 256 bytes in the resulting Mach-O binary. ...
Aphoristic asked 9/9, 2015 at 0:27

3

Solved

This guy came up with a pretty neat tool to generate a class dependency graph - however, it relies on parsing your source code and looking for #import directives. http://seriot.ch/blog.php?artic...
Renoir asked 28/8, 2011 at 4:48

1

Solved

I thinks this is a strange question, but now I prepare to hand-made a minimal Mach-O 64 binary, like the same problem on ELF (http://timelessname.com/elfbin/). But currently I still sucks on how t...
Anatolian asked 8/9, 2015 at 9:17

3

I deleted all reference to GoogleMobileAdsSDKiOS-7.1 from my project and added 7.4.1. When I ran app on simulator everything works fine but when running on device I get App Mach-O Linker Error. d...
Aigrette asked 22/8, 2015 at 19:30

3

Solved

I just compiled a project and Xcode returns these two errors which don't seem to be my code's fault. How do I fix them? Undefined symbols for architecture i386: "_vImageBoxConvolve_ARGB8888", ref...

1

Solved

I have a small example program written in NASM(2.11.08) targeting the macho64 architecture. I'm running OSX 10.10.3: bits 64 section .data msg1 db 'Message One', 10, 0 msg1len equ $-msg1 msg2...
Roister asked 26/7, 2015 at 18:24

2

Solved

I am developing a Cocoa Application using the latest version of Xcode 4, I want to link dynamic libraries to my project (dylibs). I read somewhere that adding the libraries in my project was not e...
Cutler asked 13/2, 2012 at 15:37

1

Solved

UPDATE: Answer below in question, thanks to Greg Parker's pointer… I uploaded a sample project here, but I'll describe it as well: https://github.com/tewha/getsectbyname-crash I get a crash from ...
Clomp asked 11/3, 2015 at 4:50

2

Solved

It's a puzzle for me: for Bundles/Frameworks version lays in Info.plist for old applications it lays in resource fork But today I found an executable (LaunchDaemon) which is new, has no resourc...
Collateral asked 23/2, 2015 at 9:47

2

after renaming my project whenever I try to build the app I get an Apple Mach-O Linker Error below is the output from Xcode itself Ld /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcas...
Heckelphone asked 31/10, 2014 at 0:12

0

Short question: Are the rpaths from a LC_RPATH command inside a library passed onto subsequent (and indirect) dynamically loaded libraries? To be more precise: I have libapi.dylib dynamically link...
Candent asked 13/8, 2014 at 16:44

1

This is the first time I am asking on stackoverflow and I am desperate. My task is to load a dylib or join a static lib to an already existing executable for an IOS device. I will be using the st...
Metencephalon asked 13/6, 2012 at 15:19

5

Solved

Are there any Linux programs that can disassemble an OSX universal x86/x86_64 fat Mach-O binary like objdump? GNU binutils' objdump supports ELF and Windows PE files but not Mach-O.
Nitrobenzene asked 3/1, 2012 at 12:32

1

Solved

I need to find the offset of a local symbol in a shared library on OS X. Local symbol as in non-exported symbol. Therefore dyld("symbol_name") will not work. I can however use nm to find these off...
Yan asked 3/7, 2013 at 10:46

1

Solved

I want to write my own malloc/free functions with debug purposes, documentation says I have to use DYLD_FORCE_FLAT_NAMESPACE together with DYLD_INSERT_LIBRARIES. But at the same time libgmalloc art...
Germin asked 4/12, 2013 at 22:14

3

Solved

I have had this Apple Mach-O linker warning in my project for a few days now. It is more annoying than anything, but I fear that it may somehow be affecting my app's performance (I have had so many...
Mcnulty asked 16/8, 2012 at 5:20

4

Solved

Just adding AFNetworking into my project, and after B&R here i got this error like: Undefined symbols for architecture i386: "_SecCertificateCopyData", referenced from: -[AFURLConnectionOpera...
Denominate asked 2/8, 2013 at 16:0

2

Solved

Today I first encountered the fishhook library https://github.com/facebook/fishhook which can be used to dynamically rebind symbols in Mach-O binaries (they say for iOS, but I guess the code will a...
Hautemarne asked 24/7, 2013 at 10:59

© 2022 - 2024 — McMap. All rights reserved.