架构arm64的未定义符号:“ _ FIRAuthStateDidChangeInternalNotificationAppKey”,引用自

时间:2019-07-23 04:50:24

标签: ios firebase linker-errors

我正在尝试更新我们应用中的最新框架,但收到此错误

Undefined symbols for architecture arm64:
  "_FIRAuthStateDidChangeInternalNotificationAppKey", referenced from:
      -[FAuthStateListenerWrapper authStateDidChangeNotification:] in FirebaseDatabase(FAuthTokenProvider_6272866f5c75e14e01c4ca08384ffa05.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我的pod文件的外观

platform :ios, “9.0”

source 'https://github.com/CocoaPods/Specs.git'

target "foo" do

pod 'FBSDKShareKit'
pod 'AFNetworking'
pod 'Ono'
pod 'AFOnoResponseSerializer'
pod 'SVProgressHUD'
pod 'CTFeedback'
pod 'SIAlertView'
pod 'GPUImage'#, '~> 0.1.4'
pod 'UICKeyChainStore'
pod 'ASValueTrackingSlider'
pod 'Google-Mobile-Ads-SDK'#, '~> 7.47.0'
pod 'Google/Analytics'
pod 'SSZipArchive'
pod 'GoogleSignIn'
pod 'Fabric'
pod 'Crashlytics'
pod 'Firebase'#, '~> 4.8.2'
pod 'Firebase/Auth’
pod 'Firebase/Messaging'
pod 'Firebase/Invites'
pod 'Firebase/Storage'

end

我刚运行pod update,错误开始出现。

在其他链接器标志中添加了-ObjC,-licucore,禁用了位代码。

1 个答案:

答案 0 :(得分:0)

这里没有足够的信息来完全说明正在发生的事情,但是这里有两个危险信号:

  1. 缺少的符号来自FirebaseDatabase,但Podfile中未列出FirebaseDatabase
  2. Firebase/Invites在Podfile中,但是Invites不再是Firebase的一部分,它将强制安装Firebase 5,而不是当前的Firebase6。

您可以通过检查Podfile.lock了解有关为何选择某些依赖项的更多信息。