kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

Framework with only categories crashes on simulator #124

Open alexito4 opened 10 years ago

alexito4 commented 10 years ago

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 commented 10 years ago

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: