簡體   English   中英

通過 Xcode 將應用程序分發到 App Store Connect 時出錯 - 需要 iOS 部署目標為 3.0 或更高版本

[英]Error when distributing app through Xcode to App Store Connect - requires iOS Deployment Target of 3.0 or higher

通過 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

在將 firebase spm 從“下一個專業”更改為“主要”后,我遇到了同樣的問題。 我已更改為“下一個專業”,問題已解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM