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

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

    I ran into a similar problem myself. @graver's solution is definitely valid.

    The issue was that the library was being built for armv7 instead of armv7s. You can verify this yourself by using lipo <path/to/lib.a> -info.

    Setting the Build Active Architectures Only option to No fixes the issue.

    Hope this helps.

    0 讨论(0)
提交回复
热议问题