George Garside Blog

A place of many ramblings about macOS and development. If you find something useful on here, it's probably an accident.

If you try to submit an app to iTunes Connect which has built with the Mac App Store's Xcode 6.4, which is currently not in beta, using the iOS 8 SDK, also not in beta, you can add the build but you can't submit the app for review. The following error message is shown:

Apps and app updates submitted to the App Store must be built with Xcode 6.4 or later, and iOS 8 SDK.

Now that the GM build is out, there's a new error message:

Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, and iOS 8 SDK or later. Don't submit apps built with beta software including beta OS X builds.

iTunes Connect error when submitting an app built on a beta version of OS X

This is because even though the app has been built with the compatible version of Xcode and the correct iOS SDK, the app contains the build version of the OS that built the app.

<key>BuildMachineOSBuild</key>
<string>15A204h</string>Code language: HTML, XML (xml)

It is this build number that causes the problem. iTunes Connect reads this value and determines that the app was built using a pre-release version of OS X, thus rejecting the build. Unfortunately, you can't simply modify the plist because this invalidates the codesigning—you'll be allowed to submit the app to iTunes Connect but it will fail review because the app can't be installed on any device (except jailbroken devices with AppSync).

Fortunately, there is a solution without having to downgrade to OS X 10.10 Yosemite: change the build number of the OS, temporarily.

Note: This solution requires you to disable System Integrity Protection to make changes to system files.

SystemVersion.plist OS X 10.11
  1. Open /System/Library/CoreServices/SystemVersion.plist with your favourite editor.For this example, I will open it with TextMate.
    mate /System/Library/CoreServices/SystemVersion.plist
  2. Edit line 6 to change the ProductBuildVersion to one that is for an older version of OS X. Replace 15A263e or your respective build version with an older build version such as 14C109 (Yosemite 10.10.2) which is not a pre-release build.
  3. Relaunch Xcode, re-archive your app and submit it to the App Store as normal. The build should be accepted by iTunes Connect for review!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>ProductBuildVersion</key>
	<string>14C109</string>
	<key>ProductCopyright</key>
	<string>1983-2015 Apple Inc.</string>
	<key>ProductName</key>
	<string>Mac OS X</string>
	<key>ProductUserVisibleVersion</key>
	<string>10.11</string>
	<key>ProductVersion</key>
	<string>10.11</string>
</dict>
</plist>
Code language: HTML, XML (xml)

Leave a Reply

1

AMAZING! Thank you SO MUCH for this, totally made my day! I was trying to submit an update with Xcode 7 final running on El Capitan beta (the newest, 10.11.1) and iTunes Connect was giving me a hard time (as always). Nice find!

Reply
0

Either apple got smart or I'm doing this wrong. I followed the tut to the T and confirmed the plist of the app has the older OS build version in it in the archive but Apple is still rejecting. Guess I'll wait for the GM OSX of El Capitan 10.11.4 to do my release.

Reply
0

Great solution!! But how do we change this file as this file is read-only?

Reply
0

i am unable to edit SystemVersion.plist please help me

Reply
0

i am getting same error Invalid Toolchain. New apps and app updates must be built with the public (GM) versions of Xcode 6 or later, and iOS 8 SDK or later. iOS 9 apps for internal TestFlight testers must be built with the latest seed of the iOS SDK and uploaded with the latest seed of Xcode.

I edited SystemVersion.plist as you mentioned

I have X Code 7.2 Version

When i am Upload to store now i am getting error error sun.net.PortConfig : unknown OS

please help me

thank you

Reply
0

I am using XCode beta 7.2 please telme the Deployment Target _______

Reply