Pascal
Pascal

Reputation: 2700

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).

Upvotes: 6

Views: 2538

Answers (1)

Kadian
Kadian

Reputation: 654

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"

Upvotes: 1

Related Questions