Error: “File was built for archive which is not the architecture being linked (armv7s)”

后端 未结 7 561
盖世英雄少女心
盖世英雄少女心 2020-12-23 11:04

I have built my own Static C++ Library, which is built with the settings:

  • Architectures: armv7, armv7s
  • Build Active Architectures Only: No
  • Su
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 11:44

    When you're building a library you must compile it both for the simulator and the device and then merge the two outputs (.a files) into 1 library and then link it to your iOS project.

提交回复
热议问题