mach-o

Fat Mach-O Executable Multi-purpose?

别来无恙 提交于 2019-12-04 06:46:48
问题 I am currently working with Mach-O Executables on my Mac and A question just came across me, Can a single Fat Mach-O Executable file have multiple purposes? Eg. Could I Have a single Mach-O Executable File with a Fat Header specifying 2 Executables: Executable 1 : This executable could be a Dynamic Library allowing Its code to be loaded in external applications. and Executable 2 : This executable could be an Executable allowing It to be independently launched through Terminal or as an

Base addresses (Program Counters) of symbols (methods and functions) do not match. Off by 1

江枫思渺然 提交于 2019-12-04 05:27:27
问题 I have some code in my app that sends me the stack trace of uncaught exceptions. "0 CoreFoundation 0x3ad073ff <redacted> + 186", "1 libobjc.A.dylib 0x39412963 objc_exception_throw + 30", "2 CoreFoundation 0x3ad0729d <redacted> + 0", "3 Foundation 0x39f3b7b3 <redacted> + 90", "4 UIKit 0x34a3ae29 <redacted> + 4184", "5 MyApp 0x0001feab -[MAMyClassA firstMethod:withParameter1:andParameter2:] + 374", "6 MyApp 0x000f76b5 -[MAMyClassB secondMethod:withParameter1:andParameter2:] + 164", "7 UIKit

Apple Mach-O Linker errors and I don't know what to do

天涯浪子 提交于 2019-12-03 19:11:07
问题 I cannot compile my project for the device or simulator anymore. I get 13 Apple Mach-O-Linker errors. It all started after I failed attempt to use sharekit. Here is the log from the error: ld: warning: directory not found for option '-F/Users/bbrandy95/Documents/Broken Brandsonic Web Projects/Brandsonic Web mobile/../../Downloads/0.2.1gm1/iphoneos4.0/System/Library/Frameworks' Undefined symbols for architecture armv7: "_OBJC_CLASS_$_NSURLRequest", referenced from: objc-class-ref in Brandsonic

Duplicate Symbol _OBJC_CLASS_$_LoginController

◇◆丶佛笑我妖孽 提交于 2019-12-03 17:37:08
问题 I know this Question has been asked many times before, but none has solved my problem uptill now. I know that this error occurs when you got multiple copies of your file in project. I tried to clean the build, delete any LoginController.m file in Compile Sources and then build. Fine - no errors. When I added my LoginController.m file in Complie resources, compiler again gave the same error. Next I what I tried is delete all .m files from Compile Sources, clean and rebuild successfully, and

mach_vm_region_recurse, mapping memory and shared libraries on osx

只愿长相守 提交于 2019-12-03 08:27:36
I'm using vm_region_recurse_64 to map out the memory for a given process, vmmap style. Trying to get a complete list of shared libraries loaded by the application by examining each library's Mach-O header in memory, however, vm_region_recurse seems to disagree with the vmmap command line tool about specifically where some of the specific memory sections begin and end. This becomes especially true in the 90000000-a0000000 system submap where most of the os shared libraries are loaded. And now I'm kind of stumped. I can list memory segments, tell generally what type they are, and read from them

Mach-O symbol stubs (IOS)

北慕城南 提交于 2019-12-03 06:22:33
问题 I am trying to understand how Mach-o files work, and have made a good deal of progress with the online resources available (In particular, the Apple page here: http://developer.apple.com/library/mac/#documentation/developertools/conceptual/MachORuntime/Reference/reference.html), but I have hit a roadblock on understanding how symbol stubs work. Using "otool -l" I see the following section: Section sectname __symbolstub1 segname __TEXT addr 0x00005fc0 size 0x00000040 offset 20416 align 2^2 (4)

Xcode gives Apple Mach-O linker error

China☆狼群 提交于 2019-12-03 05:41:56
问题 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", referenced from: -[UIImage(Blur) boxblurImageWithBlur:] in UIImage+Blur.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 回答1: Teaching a man (or women) how to fish: Usually Mach-O Linker Error means you have not included a

How to insert a LC_LOAD_DYLIB command into a Mach-O binary or join a static library to an existing binary (IOS)

落爺英雄遲暮 提交于 2019-12-03 05:11:56
问题 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 static void __attribute__((constructor)) initialize(void) to start the swizzling. This executable is for in house enterprise appstore so i do not need to go thru the apple appstore (since they will reject it). The reason for this is to take an existing IPA from a customer and their signing keys and add

APPLE MACH-O LINKED ERROR After adding AFNetworking

坚强是说给别人听的谎言 提交于 2019-12-02 20:24:40
Just adding AFNetworking into my project, and after B&R here i got this error like: Undefined symbols for architecture i386: "_SecCertificateCopyData", referenced from: -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecCertificateCreateWithData", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o "_SecPolicyCreateBasicX509", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection

Mach-O symbol stubs (IOS)

試著忘記壹切 提交于 2019-12-02 19:46:05
I am trying to understand how Mach-o files work, and have made a good deal of progress with the online resources available (In particular, the Apple page here: http://developer.apple.com/library/mac/#documentation/developertools/conceptual/MachORuntime/Reference/reference.html ), but I have hit a roadblock on understanding how symbol stubs work. Using "otool -l" I see the following section: Section sectname __symbolstub1 segname __TEXT addr 0x00005fc0 size 0x00000040 offset 20416 align 2^2 (4) reloff 0 nreloc 0 flags 0x80000408 However when I look at the data from the binary file in a hex