Xcode项目的PODS错误

发布于 2025-02-13 17:26:16 字数 1443 浏览 0 评论 0原文

我正在尝试使用最新库更新我的Xcode项目,但是我的项目构建了错误。以下是详细信息:

Xcode 13.4.1 Cocoapods 1.11.3

这是我的podfile:

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

target 'la soundbox' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  pod 'FirebaseCore'
  pod 'FirebaseFirestore'
  pod 'FirebaseAuth'
  pod 'FirebaseMessaging'
  pod 'FirebaseInAppMessaging'
  pod 'FirebaseAnalytics'
  pod 'FirebaseCrashlytics'
  pod 'FirebaseRemoteConfig'
  pod 'Google-Mobile-Ads-SDK'

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end

在安装任何内容之前,这是我要做的:

  • 清除构建文件夹

  • 退出Xcode

  • 运行这些命令

      rm -rf〜/library/caches/cocoapods 
     rm -rf〜/library/developer/xcode/deriveddata/* 
     rm -rf /path_to_project /pods 
     rm /path_to_project/podfile.lock
     
  • 重新启动mac

  • 启动Xcode并构建项目

我有一个不断出现的错误(从 firbaseinappMessaging pod,in firinappMessaging.m ):

'firebasecore/firappinternal.h'找不到找到

在框架中找不到标题'FirappInternal.h''firebasecore'

。我正在挣扎,我真的不知道该怎么办

I am trying to update my xCode project with latest libraries, but I have errors building my project. Here are the details:

xcode 13.4.1
Cocoapods 1.11.3

Here is my Podfile:

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

target 'la soundbox' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  pod 'FirebaseCore'
  pod 'FirebaseFirestore'
  pod 'FirebaseAuth'
  pod 'FirebaseMessaging'
  pod 'FirebaseInAppMessaging'
  pod 'FirebaseAnalytics'
  pod 'FirebaseCrashlytics'
  pod 'FirebaseRemoteConfig'
  pod 'Google-Mobile-Ads-SDK'

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end

Before installing anything, here is what I do:

  • Clear Build folder

  • Exit xCode

  • Run those commands

     rm -rf ~/Library/Caches/CocoaPods 
     rm -rf ~/Library/Developer/Xcode/DerivedData/* 
     rm -rf /path_to_project/Pods 
     rm /path_to_project/Podfile.lock
    
  • Restart mac

  • Launch xCode and build project

I have this error that keeps coming up (From FirebaseInAppMessaging pod, in FIRInAppMessaging.m):

'FirebaseCore/FIRAppInternal.h' file not found

Did not find header 'FIRAppInternal.h' in framework 'FirebaseCore'

What could be done to avoid this error ? I'm struggling on this and I really don't know what can I can do anymore

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文