Firebase Undefined symbols for architecture x86_64

后端 未结 17 1618
慢半拍i
慢半拍i 2020-12-03 10:07

I am using firebase as part of a project I am working on in iOS, and I just stumbled upon the following linking error when I try to compile my code against an iPhone 6 or 7

17条回答
  •  [愿得一人]
    2020-12-03 10:23

    I got the same error when I integrated Firebase manually without using CocoaPod and built for simulator. (There is no problem just for device build.)

    This is old question, but it's related, so I show my recent solution.

    First, I gave up building for only simulator.

    It takes too long time for building, but I set "Build Active Architecture Only" to "No" to build all the targets including simulator.

    Also I added "Any iOS Simulator SDK - arm64" in "Excluded Architectures" in Build Settings, because my Mac OS architecture is not "arm64" but "x86_64".

    If necessary, you should add "Any iOS Simulator SDK - i386" too. Firebase contains "i386" architectures, but some other Ad SDK doesn't support "i386" any more.

    That's my acceptable solution.

提交回复
热议问题