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

后端 未结 7 532
盖世英雄少女心
盖世英雄少女心 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:31

    I use XCode 5.1.1 and ran into the described problem. A more convenient way to solve this problem seems to be just to create an Archive (via menu Build/Archive) and distribute it. The distributed lib file will contain all defined architectures.

提交回复
热议问题