Crash Log:
Last Exception Backtrace:
0 CoreFoundation
0x2f087f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3981ece2 objc_exception_throw + 34
2 CoreFoundation 0x2f08b832
-[NSObject(NSObject) doesNotRecognizeSelector:]
+ 198
3 CoreFoundation 0x2f08a132 ___forwarding___ + 702
4 CoreFoundation 0x2efd9094 _CF_forwarding_prep_0 + 20
5 AmazingBOX 0x0036cebe
-[RHAddressBookSharedServices init] (RHAddressBookSharedServices.m:124)
6 AmazingBOX
0x0036cc62 +[RHAddressBookSharedServices sharedInstance] (RHAddressBookSharedServices.m:98)
原因:
Project引用了RHAddressBook庫,當中有catagory類NSThread+RHBlockAdditions.h。
是以,須要在other linker flag裡面使用-ObjC、-force_load或者-all_load。