Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS framework does not work on simulator

I built a framework as generic iOS device and imported it on Xcode. Everything works fine when I select my physical iPhone 7 as device, however, when I choose simulator, the classes are not find and I cannot compile the framework (even auto complete doesn't work).

Do you have any ideas why?

(btw: the framework I'm using is chart-ios. I did a tiny change to it and wanted to compile it again).

like image 945
Pascal Avatar asked Nov 07 '22 14:11

Pascal


1 Answers

simulator runs on i386 architecture. If you compile your static libraries for i386 as well you will be able to use them on the simulator.

Try adding "i386" to the "Valid Architectures"

like image 78
Kadian Avatar answered Nov 14 '22 21:11

Kadian