Deprecated Xcode Build issue while sent version from Xcode version 8.3 - ios

I have recently uploaded a build in AppStore(TestFlight) and got the following mail from AppStore,
Dear developer,
We have discovered one or more issues with your recent delivery for
"MY APP". Your delivery was successful, but you may wish to correct
the following issues in your next delivery:
Deprecated Xcode Build - Due to resolved app archives issues, we will
be deprecating Xcode 8.3 on May 10, 2017, at which time app archives
built with 8.3 will no longer be accepted by the App Store. Download
Xcode 8.3.2 or newer, rebuild your app and resubmit.
After you’ve corrected the issues, you can use Xcode or Application
Loader to upload a new binary to iTunes Connect.
Regards,
The App Store team
Will there be any problem on releasing the current build for review ?
Or
Do I want to download the latest Xcode version as mentioned in the mail and upload an another build ?

Will there be any problem on releasing the current build for review?
If you submit your app for review and will be reviewed successfully before the May 10, 2017, than you do not need to do anything with you current build.
Do I want to download the latest Xcode version as mentioned in the mail and upload an another build ?
You should be updating to the latest Xcode anyway, at least for the sake of having all the latest tools and API's available. If you would like to submit a new build after the May 10, 2017, you have to update Xcode, rebuild the app and submit a different binary for Apple to review.
Overall, i would recommend to update now, and submit a different build, because you will have to do it anyway in the near future, and your app will not be rejected because of the Deprecated Xcode Build issue for sure.
EDIT:
Xcode 8.3.2 is available in the App Store.

Related

What is the maximum accepted version of Xcode for uploads?

I recently updated to the release version of Xcode 13 on my Mac. Now when I upload an iOS App build to Apple using the upload endpoint (via fastlane) I get an error saying "Invalid Toolchain. Your app was built with an unsupported SDK or version of Xcode. If you plan to submit this build to the App Store, make sure you are using the versions listed in https://help.apple.com/xcode/mac/current/#/devf16aefe3b or later."
% xcodebuild -version
Xcode 13.0
Build version 13A233
I also deleted the old beta Xcode and restarted my mac to be sure. Anyone else having this issue? Any recommendations?
Thanks!
Update: this eventually went away. And did so in a way that, suggested it was possibly something being stuck on Apple's side. After updating fastlane and deleting everything Xcode related and trying again it didn't work. However after doing an upload from Xcode after the above, it failed one last time with the same stated reason, BUT THEN it began working from there forward from all upload sources.
I also "developer rejected" a "pending release" that was built from before I was having this issue. Unclear if that was related.

Which is the latest version of Xcode to submit app on App Store(Invalid Toolchain error).? [duplicate]

ERROR ITMS-90534: "Invalid Toolchain.
New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds." ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds."
I found this error during upload IPA to account.
If you're looking at this in November 2019, there's an obscure error in Xcode 11.2, which prevents uploading from that version to the App Store. You'll have to upgrade to Xcode 11.2.1, which is currently not available on the Mac App Store yet, but must be downloaded from the Developer Portal here: https://developer.apple.com/download/
The Xcode 11.2 Archive error log even states:
Edit:
Xcode 11.2.1 is now available on the AppStore:
https://apps.apple.com/us/app/xcode/id497799835?mt=12
I was having the same issue with Xcode 8.3 public version. I reinstall the Xcode and check it, but didn't work ...
Finally I found the issue , I have mistakenly selected Xcode 3.2-compatible in project format under project document. I changed it to Xcode 8.0-compatible and build & archived it. I could upload it without any errors. Check the screen shot attached ..
Xcode 11.2 is deprecated by Apple on November 5, 2019
Always working workaround (Manual download)
Download the xip file from here
Also:
Latest Release version (Xcode 11.2.1)
or
Latest Beta version (Xcode 11.3 Beta)
or
Any version you need. And all other downloadable contents
Then extract and move it where you like.
You can find all workaround histry of the issue here.
The same issue occurs with me today (13 July 2017).
As I was using XCode 9 beta 2, till date. Everything was working fine.
The last build which I uploaded was on 9th of July 2017, using XCode 9 beta 2.
After trying a lot of changes, finally the fix was:
Upgrading to the latest beta of XCode, which was XCode 9 beta 3 (released on 10th July 2017).
BOTTOMLINE:
If you are using any beta version of XCode, and if it is outdated. Apple will reject your build from that version causing the error asked by questioner. As long as the version is stable you don't need to worry.
It is recommended to check your current version is latest or not. If not, then download the latest XCode and push a new build achieved using the latest XCode beta
Why I didn't use a stable version of XCode instead?
The stable version at this time is XCode 8.3.3, and the language used is Swift 3.
Though there is minimum code breaking change from Swift 3 to 4, but my latest code base was Swift 4. Plus, you might be having Pods in your project which also has to be downgraded to the latest stable version. Until a stable version of XCode 9 is out. So, I opt to download the latest version of XCode beta
I ran into this issue today with the App Store version of Xcode 9.2.
It's definitely not a beta release, I'm guessing there's some delay between when the software is released and iTunes connect gets updated to expect the new version.
I've tried all the suggestions above, and none worked... but here's what (although pretty sketchy) did for work me:
in organizer, right-click your archive and show in finder
show package contents
find Products/Applications/yourApp.app
show package contents
edit Info.plist
change the value for DTXcodeBuild to a previous version (9.2 is 9C40b, 9.1 is 9C40)
save and try again
This worked for me...
For anyone trying with Xcode 11, check the Xcode version. If it's Version 11.0 (11A419c) you cannot submit a build to the app store with this version. Get Xcode Version 11.0 (11A420a).
Apps built with Xcode 11 GM seed (11A419c) can no longer be uploaded to App Store Connect. You can now submit apps built with Xcode 11 GM seed 2 (11A420a) using the iOS 13 SDK and watchOS 6 SDK to the App Store.
An error message it self says, Use stable (not beta) version of Xcode
to create a build.
Your mac OS should also be stable (not beta)
Use latest stable version of Xcode Tool (Xcode 9) to create your build and upload using Application Uploader.
Ensure following points, while creating your build:
Xcode version (Latest stable version of Xcode Tool - Current Xcode 9)
Mac OS version (Latest stable MacOS version - High Sierra 10.12.7)
Xcode Project (Document) Format version (Xcode 8.0-compatible)
Right-Click on the archive file (.xcarchive) > Show Package Contents > Products > Applications > Right-Click on the app file > Show Package Contents > Double-Click on Info.plist to edit it
Remove b from the end of the value for DTXcodeBuild (for example change from 9C40b to 9C40)
Re-submit and it will work
A new beta or Golden Master version of Xcode is about to be released, just look for it a few hours later.
Follow this to resolve this issue:
Quit Xcode and any Simulators if they are opened.
Go to this link to download Xcode 11.2.1 GM seed under Applications. Its about 7GB: https://developer.apple.com/download/
After downloading, click the Xcode_11.2.1_GM_Seed.xip file to extract the Archive.
After extracting, move the Xcode file from Downloads to the Application folder.
Replace existing Xcode application.
Enter login password when prompted.
Wait for the Moving to complete.
When finished, launch Xcode and checkout About Xcode to confirm the latest version.
Build your App, increment your build number and submit to App Store.
UPDATE: Version 11.2.1 is now available from App Store itself since Nov 13.
Archive you application using the stable Xcode version and upload it using Xcode beta. This solved the problem for me.
Every thing was updated Xcode 8.3.3, OS Serra 10.12.6 but I was still getting the issue. what I did and the issue got resolved is:
Open app store
searched xcode
Open Xcode from app store
it prompted me to install some missing features.
I followed the instructions and completed the wizard
Re-open Xcode and Archived my app and then started uploaded and it went successfully.
Hope it may help someone.
Cheers!
I was finally able to resolve this issue by downloading XCode 8.2.1 from the App Store.
Re-archiving the project and submitting as usual.
For XCode 9.2
Problem mostly in Command Line Tools version.
Best solution:
Reinstall XCode or Command Line Tools
Set Project Format in your project to Xcode 8.3-compatible
Possible solution:
Open XCode.app (Show Package Contents)
Find and open version.plist
Change ProductBuildVersion from 9C40b to 9C40
Set Project Format in your project to Xcode 8.3-compatible
Enjoy!
Apparently it was a deployment problem in Apple Servers. I tried after 3 hours and magically disappeared.
From Xcode -> Go to Organizer -> Under Archives, select the build and right click to Show in finder -> Select the Project and right click to -> Show Package Contents -> Double click on Info.plist and add a row. The key is BuildMachineOSBuild and the Type is String and the Value is 16G29 (Value is based on your Mac OS Version. Please follow the below given link)
https://support.apple.com/en-in/HT201260 .....Check the version number for your Mac OS version and set the value in the Info.plist
For example if your Mac OS version is 10.12.6 then add this to your plist
<key>BuildMachineOSBuild</key>
<string>16G29</string>
You are ready to send your build to iTunes Connect
I received this error having archived our app from the command line using fastlane gym. When I archived the app manually using Xcode I did NOT receive the error.
I guess there's something wrong with the arguments/config I am passing to fastlane gym. If I work out what this is I will report back.
You cannot upload app to App Store through beta Version of Xcode. Make sure you're using stable version to push app to App Store
I just want to add what is says at the bottom of the Using Apple Beta Software page (https://developer.apple.com/support/beta-software/)
IF you are using a BETA version of XCode and try to submit it will fail every time UNLESS you are on a GM_seed (Golden Master release, aka the release before the release to production)
Since I do not have enough "reputation" to comment #Chuck Smith. I created this.
Hope this helps.
Today is 11/8/2019 and I downloaded and submitted my app with success.
Submitting Apps
Apps that are created using beta versions of Xcode or that are built for beta versions of an OS will not be accepted on the App Store. Apps that you submit should be developed using the most up-to-date version of Xcode from the Mac App Store and should be built for publicly available versions of iOS, macOS, watchOS, and tvOS — except when GM seeds are available. When a GM Seed of Xcode becomes available, use it to develop your app for submission. When GM seeds of iOS, macOS, watchOS, or tvOS become available, build your app for these versions.
Here is what I did after going through the internet.
Download the latest Xcode from https://xcodereleases.com/ (You can download without signing in).
You might get an error "Data is corrupted" when you extract above-downloaded file ending with .xip
To solve this unzip it using Archive Utility.app rather than The Unarchiver.app
I was getting same error while i was uploading for apple review using Xcode 11.2.
Fixes steps:
Apple decided to deprecate Xcode 11.2 on November 5th 2019.
Xcode 11.2 has UITextView Building buggy code. So, Apple suggested to use Xcode 11.2.1 GM seed.
You can download from link https://developer.apple.com/download/
Message From Apple:
This update fixes a critical issue that could cause apps using UITextView to crash when run on previous versions of iOS, iPadOS, or tvOS. Please see the release notes
You can build and release app using Xcode 11.2.1 GM seed. Hoping this will help some people.
November 2019 with Xcode 12.1?
2 days ago Apple released a 11.2.1 version which you can download/update from App Store. Fixing this problem as of today is as easy as installing/updating Xcode 12.2.1 from the official App Store.
Checked it on my app and was able to successfully deploy after this update, just make sure to upload the app build with the new Xcode (12.2.1), otherwise you'll see an error Invalid Toolchain. Your app was built with an unsupported version of Xcode or SDK. If you plan to submit....
You should see again the green, positive confirmation :)
Before I am using Xcode 12 beta version and the reason is that only.
I have downloaded the stable version of Xcode 12 and IPA got validated successfully.
You can download latest version from here: https://developer.apple.com/download/
Thank you.
You need to get the archive with the latest stable(not beta) version of Xcode.

Can't submit apps to AppStore: ERROR ITMS-90534: "Invalid Toolchain

ERROR ITMS-90534: "Invalid Toolchain.
New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds." ERROR ITMS-90534: "Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, macOS, and iOS SDK or later. Don't submit apps built with beta software including beta macOS builds."
I found this error during upload IPA to account.
If you're looking at this in November 2019, there's an obscure error in Xcode 11.2, which prevents uploading from that version to the App Store. You'll have to upgrade to Xcode 11.2.1, which is currently not available on the Mac App Store yet, but must be downloaded from the Developer Portal here: https://developer.apple.com/download/
The Xcode 11.2 Archive error log even states:
Edit:
Xcode 11.2.1 is now available on the AppStore:
https://apps.apple.com/us/app/xcode/id497799835?mt=12
I was having the same issue with Xcode 8.3 public version. I reinstall the Xcode and check it, but didn't work ...
Finally I found the issue , I have mistakenly selected Xcode 3.2-compatible in project format under project document. I changed it to Xcode 8.0-compatible and build & archived it. I could upload it without any errors. Check the screen shot attached ..
Xcode 11.2 is deprecated by Apple on November 5, 2019
Always working workaround (Manual download)
Download the xip file from here
Also:
Latest Release version (Xcode 11.2.1)
or
Latest Beta version (Xcode 11.3 Beta)
or
Any version you need. And all other downloadable contents
Then extract and move it where you like.
You can find all workaround histry of the issue here.
The same issue occurs with me today (13 July 2017).
As I was using XCode 9 beta 2, till date. Everything was working fine.
The last build which I uploaded was on 9th of July 2017, using XCode 9 beta 2.
After trying a lot of changes, finally the fix was:
Upgrading to the latest beta of XCode, which was XCode 9 beta 3 (released on 10th July 2017).
BOTTOMLINE:
If you are using any beta version of XCode, and if it is outdated. Apple will reject your build from that version causing the error asked by questioner. As long as the version is stable you don't need to worry.
It is recommended to check your current version is latest or not. If not, then download the latest XCode and push a new build achieved using the latest XCode beta
Why I didn't use a stable version of XCode instead?
The stable version at this time is XCode 8.3.3, and the language used is Swift 3.
Though there is minimum code breaking change from Swift 3 to 4, but my latest code base was Swift 4. Plus, you might be having Pods in your project which also has to be downgraded to the latest stable version. Until a stable version of XCode 9 is out. So, I opt to download the latest version of XCode beta
I ran into this issue today with the App Store version of Xcode 9.2.
It's definitely not a beta release, I'm guessing there's some delay between when the software is released and iTunes connect gets updated to expect the new version.
I've tried all the suggestions above, and none worked... but here's what (although pretty sketchy) did for work me:
in organizer, right-click your archive and show in finder
show package contents
find Products/Applications/yourApp.app
show package contents
edit Info.plist
change the value for DTXcodeBuild to a previous version (9.2 is 9C40b, 9.1 is 9C40)
save and try again
This worked for me...
For anyone trying with Xcode 11, check the Xcode version. If it's Version 11.0 (11A419c) you cannot submit a build to the app store with this version. Get Xcode Version 11.0 (11A420a).
Apps built with Xcode 11 GM seed (11A419c) can no longer be uploaded to App Store Connect. You can now submit apps built with Xcode 11 GM seed 2 (11A420a) using the iOS 13 SDK and watchOS 6 SDK to the App Store.
An error message it self says, Use stable (not beta) version of Xcode
to create a build.
Your mac OS should also be stable (not beta)
Use latest stable version of Xcode Tool (Xcode 9) to create your build and upload using Application Uploader.
Ensure following points, while creating your build:
Xcode version (Latest stable version of Xcode Tool - Current Xcode 9)
Mac OS version (Latest stable MacOS version - High Sierra 10.12.7)
Xcode Project (Document) Format version (Xcode 8.0-compatible)
Right-Click on the archive file (.xcarchive) > Show Package Contents > Products > Applications > Right-Click on the app file > Show Package Contents > Double-Click on Info.plist to edit it
Remove b from the end of the value for DTXcodeBuild (for example change from 9C40b to 9C40)
Re-submit and it will work
A new beta or Golden Master version of Xcode is about to be released, just look for it a few hours later.
Follow this to resolve this issue:
Quit Xcode and any Simulators if they are opened.
Go to this link to download Xcode 11.2.1 GM seed under Applications. Its about 7GB: https://developer.apple.com/download/
After downloading, click the Xcode_11.2.1_GM_Seed.xip file to extract the Archive.
After extracting, move the Xcode file from Downloads to the Application folder.
Replace existing Xcode application.
Enter login password when prompted.
Wait for the Moving to complete.
When finished, launch Xcode and checkout About Xcode to confirm the latest version.
Build your App, increment your build number and submit to App Store.
UPDATE: Version 11.2.1 is now available from App Store itself since Nov 13.
Archive you application using the stable Xcode version and upload it using Xcode beta. This solved the problem for me.
Every thing was updated Xcode 8.3.3, OS Serra 10.12.6 but I was still getting the issue. what I did and the issue got resolved is:
Open app store
searched xcode
Open Xcode from app store
it prompted me to install some missing features.
I followed the instructions and completed the wizard
Re-open Xcode and Archived my app and then started uploaded and it went successfully.
Hope it may help someone.
Cheers!
I was finally able to resolve this issue by downloading XCode 8.2.1 from the App Store.
Re-archiving the project and submitting as usual.
For XCode 9.2
Problem mostly in Command Line Tools version.
Best solution:
Reinstall XCode or Command Line Tools
Set Project Format in your project to Xcode 8.3-compatible
Possible solution:
Open XCode.app (Show Package Contents)
Find and open version.plist
Change ProductBuildVersion from 9C40b to 9C40
Set Project Format in your project to Xcode 8.3-compatible
Enjoy!
Apparently it was a deployment problem in Apple Servers. I tried after 3 hours and magically disappeared.
From Xcode -> Go to Organizer -> Under Archives, select the build and right click to Show in finder -> Select the Project and right click to -> Show Package Contents -> Double click on Info.plist and add a row. The key is BuildMachineOSBuild and the Type is String and the Value is 16G29 (Value is based on your Mac OS Version. Please follow the below given link)
https://support.apple.com/en-in/HT201260 .....Check the version number for your Mac OS version and set the value in the Info.plist
For example if your Mac OS version is 10.12.6 then add this to your plist
<key>BuildMachineOSBuild</key>
<string>16G29</string>
You are ready to send your build to iTunes Connect
I received this error having archived our app from the command line using fastlane gym. When I archived the app manually using Xcode I did NOT receive the error.
I guess there's something wrong with the arguments/config I am passing to fastlane gym. If I work out what this is I will report back.
You cannot upload app to App Store through beta Version of Xcode. Make sure you're using stable version to push app to App Store
I just want to add what is says at the bottom of the Using Apple Beta Software page (https://developer.apple.com/support/beta-software/)
IF you are using a BETA version of XCode and try to submit it will fail every time UNLESS you are on a GM_seed (Golden Master release, aka the release before the release to production)
Since I do not have enough "reputation" to comment #Chuck Smith. I created this.
Hope this helps.
Today is 11/8/2019 and I downloaded and submitted my app with success.
Submitting Apps
Apps that are created using beta versions of Xcode or that are built for beta versions of an OS will not be accepted on the App Store. Apps that you submit should be developed using the most up-to-date version of Xcode from the Mac App Store and should be built for publicly available versions of iOS, macOS, watchOS, and tvOS — except when GM seeds are available. When a GM Seed of Xcode becomes available, use it to develop your app for submission. When GM seeds of iOS, macOS, watchOS, or tvOS become available, build your app for these versions.
Here is what I did after going through the internet.
Download the latest Xcode from https://xcodereleases.com/ (You can download without signing in).
You might get an error "Data is corrupted" when you extract above-downloaded file ending with .xip
To solve this unzip it using Archive Utility.app rather than The Unarchiver.app
I was getting same error while i was uploading for apple review using Xcode 11.2.
Fixes steps:
Apple decided to deprecate Xcode 11.2 on November 5th 2019.
Xcode 11.2 has UITextView Building buggy code. So, Apple suggested to use Xcode 11.2.1 GM seed.
You can download from link https://developer.apple.com/download/
Message From Apple:
This update fixes a critical issue that could cause apps using UITextView to crash when run on previous versions of iOS, iPadOS, or tvOS. Please see the release notes
You can build and release app using Xcode 11.2.1 GM seed. Hoping this will help some people.
November 2019 with Xcode 12.1?
2 days ago Apple released a 11.2.1 version which you can download/update from App Store. Fixing this problem as of today is as easy as installing/updating Xcode 12.2.1 from the official App Store.
Checked it on my app and was able to successfully deploy after this update, just make sure to upload the app build with the new Xcode (12.2.1), otherwise you'll see an error Invalid Toolchain. Your app was built with an unsupported version of Xcode or SDK. If you plan to submit....
You should see again the green, positive confirmation :)
Before I am using Xcode 12 beta version and the reason is that only.
I have downloaded the stable version of Xcode 12 and IPA got validated successfully.
You can download latest version from here: https://developer.apple.com/download/
Thank you.
You need to get the archive with the latest stable(not beta) version of Xcode.

Error when submitting an app in TestFlight (iTunes Connect) for External Testers

I'm trying to submit an app for External Testers in iTunes Connect (TestFlight) and I got this message :
Invalid sdk value. The value provided for the sdk portion of
LC_VERSION_MIN_IPHONEOS in APP_NAME is 9.2 which is
greater than the maximum allowed value of 9.1.
I built this app with the latest XCode 7.2 (iOS 9.2) released today, with a Deployment Target of iOS 8.0, Base SDK "Latest iOS (iOS 9.2)".
Is it because this is a new version and we can't submit apps built with XCode 7.2 yet?
Thanks for your help.
I met the same problems, maybe it is because apple release iOS9.2 today, so it may take some time to update itunes connect backend;
For more details check here Apple Developer Forums
Give the backend 24 hrs. to catch up, then try again.
Update:
If you need submit urgently, try to download an old version of Xcode here and rebuild a new binary. Do not forget to update your build number.
Update2:
You can submit it again. It works now.
I have same problems for all frameworks I use. Try older version of Xcode.
Version 7.1 should work.
UPDATE:
Itunesconnect already works. I have successfully uploaded new build for external testing
This error is already gone - you can now submit the apps with Xcode 7.2 :)

iTunes Connect error for archive uploaded from Xcode 6.3: contains invalid version of Swift

I built and uploaded my app to itunes connect using the release version of Xcode 6.3 last night but it was rejected as "invalid binary". The email from App Review said I was using an invalid or beta version of Swift.
I would really appreciate any help or ideas about how to work around this problem.
I originally created the app in a release version of Xcode (6.1 I think) but then worked on it in the beta versions of 6.3 over the last month or so. Could this be causing the "invalid binary" rejection, even though I built and uploaded the archive in the release version of 6.3? If so, what can I do about it?
I have tried deleting derived data, revoking my certificates, and editing each of the app's source code files in the release version of 6.3 to see if that would help (it didn't).
You are likely using an old version of swift. Inside Xcode there should be a menu option to "upgrade to latest version of swift"
This error can also occur if you are using a beta version of swift that is ahead of the app store.
If you are using a beta version of Xcode, open your project in the latest release version and try to build again. - You cannot submit apps compiled in beta to the app store.
If you are using old swift - try to figure out which menu option lets you upgrade.
Ah its this:
"click the Edit menu, then choose Convert > To Swift 1.2."

Resources