【问题标题】:"No Such Module FirebaseMessaging" after removing 'use_frameworks!' in Podfile在 Podfile 中删除 \'use_frameworks!\' 后出现 \"No Such Module FirebaseMessaging\"
【发布时间】:2022-11-30 19:44:42
【问题描述】:

我正在尝试从 Podfile 中删除 use_frameworks!。原因是因为 pod 最新版本之一需要删除 use_frameworks (TapTalk SDK)。
尝试构建应用程序时出现错误No such module Firebase

删除它后,出现错误no such module FirebaseMessaging,并且某些文件中还缺少远程配置模块。
如果我撤消它回到use_frameworks! - >它恢复正常。

我应该怎么做才能让它发挥作用?

这是我的 Podfile,问题发生在 CommonxxxNotif(NotificationService)

# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'

workspace 'xxx'

def main
  pod 'Kingfisher', :git => 'https://github.com/onevcat/Kingfisher.git', :branch => 'version6-xcode13'
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'Firebase/Messaging'
  pod 'Firebase/RemoteConfig'
  pod 'SkeletonView'
  pod 'JXPageControl'
  pod 'SwiftSoup'
end

target 'xxx' do
  project 'xxx.xcodeproj'
  
  main
  pod 'IOSSecuritySuite'
  pod 'TapTalkLive'
  pod 'AFNetworking', '~> 4.0.0', :modular_headers => true
  pod 'JSONModel', '~> 1.1', :modular_headers => true
  
end

target 'Networking' do
  project 'Networking/Networking.xcodeproj'
  
end

target 'Common' do
  project 'Common/Common.xcodeproj'
  
  main
end

target 'xxxNotif' do
  
  main
end

【问题讨论】:

    标签: swift firebase cocoapods podfile


    【解决方案1】:

    我对 FirebaseCrashlytics 也有类似的问题。这对我有帮助:

    播客文件:

    # use_frameworks! - not used
    pod 'FirebaseAnalytics', '10.2.0', :modular_headers => true
    pod 'FirebaseCrashlytics', '10.2.0', :modular_headers => true
    pod 'GoogleUtilities', '7.10.0', :modular_headers => true
    pod 'FirebaseCore', :modular_headers => true
    

    在我使用的快速项目文件中:

    import FirebaseCore
    import FirebaseAnalytics
    import FirebaseCrashlytics
    

    【讨论】:

      猜你喜欢
      • 2021-08-26
      • 2022-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-16
      相关资源
      最近更新 更多