Undefined symbols for architecture arm64

前端 未结 30 1787
南旧
南旧 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 08:54

    I had the same problem after upgrading to Xcode 5.1 and fixed it by setting Architectures to armv7 armv7s

    0 讨论(0)
  • 2020-11-22 08:55

    Solved after deleting the content of the DerivedData-->Build-->Products-->Debug-iphoneos

    0 讨论(0)
  • 2020-11-22 08:56

    If you faced this issue on your Flutter project while building in Release mode (or Archive) check out my this answer: https://stackoverflow.com/a/61446892/5502121 Long story short:

    • set your build system to New Build System in File > Project Settings…
    • remove ios and build_ios folders
    • run flutter create . to init new ios module
    • run pod install
    • run flutter pub get
    • check your Xcode build config (it should be Release mode and General iOS Device)

    and you're good to go

    0 讨论(0)
  • 2020-11-22 08:57

    For me, I use opencv 2.4.9 in xcode 7.2 for iOS and the errors above occurred, and I solve the errors by using the opencv through pod install rather than offline opencv framework.

    You can have a try by adding the opencv pod text below and delete the offline opencv framework if you have used.

    pod 'OpenCV', '2.4.9'

    0 讨论(0)
  • 2020-11-22 08:58

    "The OPN [Debug] target overrides the OTHER_LDFLAGS build setting". This was the main issue. After adding $(inherited) in new line in other linker flags solved my issue.

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

    I fixed mine by checking the selected implementation files in the target membership on the right side. This is useful especially in dealing with extensions i.e. custom keyboards.

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