在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)
在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)
请问如何解决