heardrwt / RHAddressBook

A Cocoa / Objective-C library for interfacing with the iOS AddressBook.
Other
696 stars 154 forks source link

-[NSThread rh_performBlock:]: unrecognized selector sent to instance #50

Closed Mamonaku closed 10 years ago

Mamonaku commented 10 years ago

Hello, I tried to use RHAddressBook, but I'm going in circles with an issue that's already been reported. * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSThread rh_performBlock:]: unrecognized selector sent to instance 0x124991f0' * First throw call stack: ( 0 CoreFoundation 0x03a4c1e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x031fa8e5 objc_exception_throw + 44 2 CoreFoundation 0x03ae9243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 3 CoreFoundation 0x03a3c50b __forwarding + 1019 4 CoreFoundation 0x03a3c0ee _CF_forwarding_prep_0 + 14 5 yy 0x000e6b19 -[RHAddressBookSharedServices init] + 537 6 yy 0x000e6833 +[RHAddressBookSharedServices sharedInstance] + 195

The library was created using -Objc -all_load, as suggested. But so far, no luck. Any idea what I'm doing wrong ? thanks in advance, -M screen shot 2014-04-08 at 15 49 33

heardrwt commented 10 years ago

Those flags need to be on your app, not the library. That should fix the issue.

On 8 Apr 2014, at 6:56 pm, Mamonaku notifications@github.com wrote:

Hello, I tried to use RHAddressBook, but I'm going in circles with an issue that's already been reported. * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSThread rh_performBlock:]: unrecognized selector sent to instance 0x124991f0' * First throw call stack: ( 0 CoreFoundation 0x03a4c1e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x031fa8e5 objc_exception_throw + 44 2 CoreFoundation 0x03ae9243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 3 CoreFoundation 0x03a3c50b __forwarding + 1019 4 CoreFoundation 0x03a3c0ee _CF_forwarding_prep_0 + 14 5 yy 0x000e6b19 -[RHAddressBookSharedServices init] + 537 6 yy 0x000e6833 +[RHAddressBookSharedServices sharedInstance] + 195

The library was created using -Objc -all_load, as suggested. But so far, no luck. Any idea what I'm doing wrong ? thanks in advance, -M

— Reply to this email directly or view it on GitHub.

Mamonaku commented 10 years ago

Hey thanks for the quick response. On the app, this breaks the compilation for a third party lib unfortunately.. Ok, I'll figure out an alternative. Thanks again !

heardrwt commented 10 years ago

What library are you having issues with?

Mamonaku commented 10 years ago

Sorry for the late reply. The library that's causing problem is TestFlight, and weirdly enough only when compiled with RHAddressbook and -Objc -load_all.... Couldn't find the problem. So, I had to give up, and use plain old iOS code to access the address book. thanks !