iOS simulator on mac is running i386 architecture, not armv7?

前端 未结 4 1525
清歌不尽
清歌不尽 2021-02-19 03:00

I\'ve got some static libraries I\'ve built for use on armv7 architectures. When I try to use them in a iOS project which I testrun on the iphone 5.0 simulator, I get errors tel

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 03:32

    So I guess this means the iphone simulator wants libraries compiled for i386? What is the point of the simulator then - why dosn't it emulate armv7 architecture as well?

    You've answered your own question. It's a simulator, not an emulator. Therefore it is a Mac OSX program, running on i386 architecture. If you compile your static libraries for i386 as well you will be able to use them on the simulator.

提交回复
热议问题