Xcode FIRRemoteConfig 构建错误
Xcode FIRRemoteConfig Build error
在我的 xcode 项目中,firebase realtime database
和 Analytics
已经实施并成功运行。为了实现 Firebase remote config
功能,我将 FirebaseRemoteConfig.framework
和 Protobuf.framework
添加到我的项目中。我收到以下消息的构建错误。我还没有写任何与远程配置相关的代码。
Undefined symbols for architecture arm64:
"_kFIRAppIsDefaultAppKey", referenced from:
+[FIRRemoteConfig(FIRApp) receivedReadyToConfigureNotification:] in FirebaseRemoteConfig(FIRRemoteConfig+FIRApp_718fa6fc16d7fc9251249ec4e3a58ce2.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我添加到项目中的所有框架。
我找到了这个问题的解决方案。首先,您需要添加所有更新的 firebase 框架。如果你正在使用它。就我而言,我使用的是旧版本的 firebase sdks。我刚刚更新了它,错误消失了。快乐编码:)
在我的 xcode 项目中,firebase realtime database
和 Analytics
已经实施并成功运行。为了实现 Firebase remote config
功能,我将 FirebaseRemoteConfig.framework
和 Protobuf.framework
添加到我的项目中。我收到以下消息的构建错误。我还没有写任何与远程配置相关的代码。
Undefined symbols for architecture arm64:
"_kFIRAppIsDefaultAppKey", referenced from:
+[FIRRemoteConfig(FIRApp) receivedReadyToConfigureNotification:] in FirebaseRemoteConfig(FIRRemoteConfig+FIRApp_718fa6fc16d7fc9251249ec4e3a58ce2.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我添加到项目中的所有框架。
我找到了这个问题的解决方案。首先,您需要添加所有更新的 firebase 框架。如果你正在使用它。就我而言,我使用的是旧版本的 firebase sdks。我刚刚更新了它,错误消失了。快乐编码:)