简体   繁体   中英

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

I'm getting an error when distributing my app through Xcode. I have looked into build settings and cannot find the issue. My app imports some Firebase modules via Cocoapods.

All deployment targets in build settings are the latest OS.

Full text of error:

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

My app (I think) is only configured for iOS vs other Apple OS', and I can't find anywhere that I am specifying such a low deployment target. Everywhere I look is the latest OS, or iOS14/15.

In my searching today it seams like Cocoapods could potentially be causing this issue, but I haven't been able to find the root issue. For reference, here is the Pod File my project uses:

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

I had the same problem after have changed firebase spm from "next major" to "main". I have changed to "next major" and problem was fixed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM