【问题标题】:Adding Firebase/Messaging CocoaPod causes iOS app to not build添加 Firebase/Messaging CocoaPod 会导致 iOS 应用无法构建
【发布时间】:2016-12-03 08:24:18
【问题描述】:

iOS 应用在添加 Firebase/Messaging 之前运行良好,但在添加并运行“pod update”后,我在构建时开始收到这些错误:

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GTMLogger", referenced from: 
objc-class-ref in FirebaseMessaging(GIPReachability_d54098c5c1e1fdc4fca31a4803478650.o) 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我当前的 Podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'KarmaSous' do
  pod 'Firebase'
  pod 'FirebaseMessaging'
  pod 'Firebase/Database'
  pod 'Kingfisher', '~> 3.1.4'
  pod "GMStepper"
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '3.0'
      end
  end
end

任何帮助将不胜感激,谢谢!

【问题讨论】:

    标签: ios firebase firebase-cloud-messaging


    【解决方案1】:

    您是否尝试过添加pod 'Firebase/Messaging' 而不是pod 'FirebaseMessaging'

    【讨论】:

      【解决方案2】:

      我有同样的错误,我已经解决了这个错误。

      请确保选中“Edit Scheme > Build > Build Options > Find Implicit Dependencies”。

      【讨论】:

        猜你喜欢
        • 2020-05-10
        • 2020-10-05
        • 1970-01-01
        • 1970-01-01
        • 2020-04-14
        • 2020-09-19
        • 1970-01-01
        • 2011-12-25
        相关资源
        最近更新 更多