1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

Cannot use -ObjC linker. Must use -force_load. Bundle errors iOS #235

Closed TheMikeCannell closed 8 years ago

TheMikeCannell commented 8 years ago

I'm getting the error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+
[NSBundle ctassetsPickerBundle]: unrecognized selector sent to class 0x102e5a3a8'

I had to remove the -ObjC linker I've added -force_load on all the other libraries

It seems that this error has to do with linking to the bundle. I've tried to link to the bundle like this:

-force_load
-I"$(TARGET_BUILD_DIR)/CTAssetsPickerController/CTAssetsPickerController.bundle"

Am I on the right track? Am I close? Is my syntax wrong? Any help would be appreciated

TheMikeCannell commented 8 years ago

I ended up just switching to a different Photo picker and everything is working now