Unable to upload the iOS APP to Test Flight

We are trying to upload iOS app in Test Flight. The iOS SDK version we are using is 18 and Xcode Version is 16. While uploading the app (we are using Jenkins & Fastlane), we are getting an error saying the app is built with iOS SDK 16.4. Due to that we the upload is failing.

The error text says An error occurred during the build: Error uploading ipa file: [Application Loader Error Output]: [ContentDelivery.UploadError c0000171810C] Asset validation failed (90725) SDK version issue. This app was built with the iOS 16.4 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: 671ae668-d311-43de-b85c-1d142f6a8fbd) [Application Loader Error Output]: Error uploading '/var/folders/qq/2qkbtw5s7657 5cmd3kq0kmwh80gm7/T/73c3d853-ddb3-48b6-a78f- bfbb979afbb.ipa'. [Application Loader Error Output]: Asset validation failed SDK version issue. This app was built with the iOS 16.4 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: 671ae668-d311-43de-b85c-1d142f6a8fbd) (90725) [Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure."

It looks like you're trying to upload the app outside of Xcode, using a third-party tool. What happens if you upload the app directly from Xcode using the Xcode organizer or the commands to upload the archive directly from the xcodebuild command line tool?

—Ed Ford,  DTS Engineer

Unable to upload the iOS APP to Test Flight
 
 
Q