【问题标题】:Error when distributing app through Xcode to App Store Connect - requires iOS Deployment Target of 3.0 or higher通过 Xcode 将应用程序分发到 App Store Connect 时出错 - 需要 3.0 或更高版本的 iOS 部署目标
【发布时间】:2022-07-25 17:29:09
【问题描述】:

通过 Xcode 分发我的应用程序时出现错误。我查看了构建设置,但找不到问题。我的应用通过 Cocoapods 导入了一些 Firebase 模块。

构建设置中的所有部署目标都是最新的操作系统。

错误全文:

This bundle is invalid. Applications built for more than one architecture require an iOS Deployment Target of 3.0 or later. With error code STATE_ERROR.VALIDATION_ERROR.90081 for id c8ae9ab9-f501-4115-bb3d-32f96ca47d0e

我的应用程序(我认为)仅针对 iOS 和其他 Apple 操作系统配置,我找不到任何我指定如此低部署目标的地方。我到处都是最新的操作系统,或者 iOS14/15。

在我今天的搜索中,像 Cocoapods 这样的接缝可能会导致此问题,但我无法找到根本问题。作为参考,这是我的项目使用的 Pod 文件:

target 'AppName' do
  
  use_frameworks!

  # Pods for AppName

    pod 'Firebase/Firestore'
    pod 'Firebase/Auth'
    pod 'FirebaseUI/Auth'
    pod 'FirebaseUI/Email'
    pod 'FirebaseUI/Phone'
    pod 'FirebaseFirestoreSwift', '> 7.0-beta'
    pod 'Firebase/DynamicLinks'
    pod 'Firebase/Messaging'
    pod 'Firebase/Analytics'

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

end

【问题讨论】:

  • 我们遇到了同样的问题,并通过将 watchextension 和 watchapp 的部署目标设置为 3.0(或更高版本)来修复它。现在还要确保手表中使用的每个框架也将部署目标设置为 3.0(或更高)。因此,如果您使用 cocoapods(或任何其他依赖项管理器),请确保通过 cocoapods 安装的框架也将 watch 的部署目标设置为 3.0。
  • 我在 Pod 文件中添加了 config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '3.0' 并重建了项目,但出现了同样的错误。
  • 我还确认我的构建设置中的所有部署目标都是最新的操作系统。
  • 我似乎通过在 Pods-Info 和 GoogleService-Info 文件中添加一个值为 14 的最低系统版本参数来解决此问题。
  • 我遇到了同样的问题。我刚刚将 Firebase SDK 更改为 8.0.0。所以它解决了问题

标签: ios xcode google-cloud-firestore app-store-connect


【解决方案1】:

在将 firebase spm 从“下一个专业”更改为“主要”后,我遇到了同样的问题。我已更改为“下一个专业”,问题已解决。

【讨论】:

    猜你喜欢
    • 2018-09-05
    • 1970-01-01
    • 2021-06-18
    • 2023-04-04
    • 1970-01-01
    • 2021-09-08
    • 2019-03-04
    • 2023-03-19
    • 1970-01-01
    相关资源
    最近更新 更多