Undefined symbols for architecture arm64

前端 未结 30 1789
南旧
南旧 2020-11-22 08:17

I am getting a Apple Mach-O Linker Error everytime I import a file from CocoaPods.

Undefined symbols for architecture arm64:
  \"_OBJC_CLASS_$_FBSession\", r         


        
相关标签:
30条回答
  • 2020-11-22 09:15

    None of the solutions fix this error in my case(Xcode 9), with TesseractOCRiOS. After hours of trial and error, I came up with a good solution. I just delete 'pod 'TesseractOCRiOS', '~> 4.0.0' in the Podfile, run pod install. And then, add pod 'TesseractOCRiOS', '~> 4.0.0' back to Podfile and run pod install again.

    Bang! It works!

    0 讨论(0)
  • 2020-11-22 09:16

    I solved it by setting valid archs to armv7 armv7s and setting build active architectures only to YES in release and then doing a new "pod install" from the command line

    0 讨论(0)
  • 2020-11-22 09:16

    This worked for me:

    ios sdk 9.3

    into your build setting of app.xcodeproj valid architecture: armv7 armv7s Build Active architecture : No

    Clean and build , worked for me.

    0 讨论(0)
  • 2020-11-22 09:18

    I solved this problem by setting that:

    ARCHS = armv7 armv7s

    VALID_ARCHS = armv6 armv7 armv7s arm64

    0 讨论(0)
  • 2020-11-22 09:20

    Setting -ObjC to Other Linker Flags in Build Settings of the target solved the problem.

    0 讨论(0)
  • 2020-11-22 09:21

    Had been stuck on this issue the whole day.

    I had multiple Schemes, it was compiling fine for Demo, Internal, Release - however Debug scheme just would not compile and was complaining about the libPods.a missing.

    The solution was to go to the Project -> Target -> Build Settings and change "Build Active Architecture Only" to YES. Clean and build! Finally hours of head itching solved!

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