longv2go / objc4-646

A patch of apple source objc4-646 for building libobjc.A.dylib
7 stars 3 forks source link

MacOS 10.12上链接错误 #1

Open littlechaochao opened 8 years ago

littlechaochao commented 8 years ago

在MacOS 10.12上使用XCode8编译出现如下错误: Undefined symbols for architecture x86_64: "__Block_use_GC", referenced from: gc_block_init() in objc-auto.o "_dispatch_begin_thread_4GC", referenced from: _gc_init in objc-auto.o "_dispatch_end_thread_4GC", referenced from: _gc_init in objc-auto.o "_dyld_register_image_state_change_handler", referenced from: _map_images_nolock in objc-os.o __objc_init in objc-os.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

请问如何解决

longv2go commented 8 years ago

请使用这个,是有人已经设置好的,可以在Xcode8上编译过 https://github.com/longv2go/objc4-680 @littlechaochao