【问题标题】:Firebase iOS - Unable to launch appFirebase iOS - 无法启动应用
【发布时间】:2016-09-29 23:08:37
【问题描述】:

我在自己的 pod 中使用 Firebase for iOS。我的架构是这样的:

MyProjet 
|    MyCustomPod
|    |   Firebase

我在 podspec 中使用这些行导入 Firebase:

 s.dependency "Firebase/Core"
 s.dependency "Firebase/Messaging"

当我想编译我的项目时,如果必须将框架 FirebaseAnalyticsFirebaseInstanceIDFirebaseMessaging 设置为 Other Linker Flags,它会编译正确,但在执行时,我有以下消息:

 dyld: Symbol not found: _OBJC_CLASS_$_GSDK_PBDescriptor
  Referenced from: /Path/To/MyApp.app/Frameworks/MyPod.framework/MyPod
  Expected in: flat namespace
 in /Path/To/MyApp.app/Frameworks/MyPod.framework/MyPod

有人遇到过这个问题吗?

【问题讨论】:

    标签: ios firebase


    【解决方案1】:

    让 Firebase 在另一个 pod 内工作可能会很棘手,因为 Firebase 的库目前是静态的。 _OBJC_CLASS_$_GSDK_PBDescriptor 在 GoogleInterchangeUtilities pod 中定义。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      相关资源
      最近更新 更多