Undefined symbols for architecture arm64

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

提交回复
热议问题