iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

Framework with only categories crashes on simulator

Open alexito4 opened this issue 12 years ago • 1 comments

I have a framework with only categories and it compiles fine but when I execute a project that use one of the methods in the categories it crashes on simulator.

I use -all_load and -ObjC linker flags, and this make it work fine in the device, but not in the simulator.

I also tried to use the LoadableCategory.h but nothing changes.

alexito4 avatar Jun 10 '13 07:06 alexito4

Okey, I found a solution. The problem is that the Build Active Architecture Only is set to YES in the debug configuration. Change this to NO and now a framework with categories work fine in the simulator and in the device :smile:

alexito4 avatar Jun 10 '13 08:06 alexito4