How to select Target iOS Version when building

You potentially could drop back to an older Corona build that still uses Xcode 7/iOS 9. However there is a great chance that Apple will not accept your submission since they want apps built with the latest SDK and latest Xcode.

Rob

I was looking at the corona builds and I can’t see which ones use which version of Xcode? It only seems to tell you with the stable build.

There is a link on the daily builds page that lets you page back thru the release notes. You can shorten that trip by skipping back to the public build version that supports the version you’re looking for and then look through the release notes to see where we changed the version.

Rob

@hasen,

If you want to use the ‘store install method’, then, “Yes”, you can only get the latest version.

HOWEVER 

You can always upgrade to  or install any version of OS X your machine will run.  You just have to download the installer from Apple and run it manually. 

Google this and you’ll find instructions.

Yes I checked the release notes but the notes don’t seem to say anything about which version of xcode, the sdk etc that it’s compatible with.

I went back and looked. Xcode 7 means iOS 9 as the build target. I’m pretty sure Apple won’t accept submissions with that old of a software. As of April 2018, *new* apps must be iOS 10.2 or later meaning Xcode 9.2.  I don’t know about updating old apps, but there is a very good chance you won’t be able to update apps built against the iOS 9 SDK.

Rob

I asked on the apple developer forums and I’m informed that even using Xcode 6 is still fine?

Even if this isn’t true, I’m using Xcode 8.2.1 now which supports SDK 10.2 but the stable build 2017.3184 only supports 11.2, so the question again is…how do I know which version of Corona to use for SDK 10.2?

Like I was saying, it doesn’t seem to state anywhere in the release notes for earlier builds which version of Xcode or SDK they are compatible with…

Daily build 2016.3003 has this in it’s release notes:
 

  • macOS/iOS/tvOS: Transitioned to Xcode 8.2 as the default build target, using iOS 10.2 and tvOS 10.1 templates.

 

Daily build 2017.3183 has this:

 

  • iOS: Xcode 9.2 support

 

So somewhere between 3003 and 3183.  3167 says we moved to iOS 9.1.  If you pick a build between 3003 and 3183, you’re likely to get something that’s Xcode 8.2 compatible.

 

At least that’s the information in the release notes.

 

Rob

Sounds like you don’t have much of an idea either :) . There’s 9.0, 9.1 between those builds, not to mention 8.3 etc. Maybe going forward the sdk or xcode version supported could be added into all release notes? Because I can’t imagine it was easy to find the information you found even.

I guess I’ll just have to randomly download builds in the range you gave until I find the latest build that works with Xcode 8.2.1.  :slight_smile:

Btw what is this April 2018 email you speak of?

It’s not an email, it’s on their developer blog:

https://developer.apple.com/news/?id=02152018a

We may not always implement point versions.  If you have to use 8.2, then use 3003.

Rob

Ok I guess that’s correct then. Very odd though to make such a big jump.

Actually there are several versions after 3003 that also work fine with 8.2. My point was, finding these is like finding a needle in a haystack because they are _ daily _ builds and only the ones which changed their supported xcode version have that included in the release notes. 3003 has the xcode version clearly written in the release notes but even version 3004 has nothing written there about xcode but it’s clearly the same.

It would be good to have it written in all of them. Maybe right now we have to update to xcode 9 because of Apple’s strange  sudden new requirement, but up until now even xcode 6 was fine. So in a few years we’ll face the same problem again digging through hundreds of release notes trying to find the one with xcode 9 written in it.

Apple changes these requirements almost yearly. They seem to have removed the old post because the new one trumps it, but we blogged about it last year in May:  https://coronalabs.com/blog/2017/05/09/apple-now-requires-xcode-8-3-2-for-submitted-apps/

I’m not sure where you heard that Xcode 6 was fine, but perhaps they are just updating existing apps. Apple pretty much makes this a requirement 6 months after releasing a new operating system.

Rob

That can’t be right unless all these people are wrong. These are all from last year:

https://forums.developer.apple.com/thread/99068

https://forums.developer.apple.com/thread/87032

https://stackoverflow.com/questions/41891165/minimum-xcode-version-to-upload-to-app-store

https://forums.developer.apple.com/thread/78603

https://forums.developer.apple.com/thread/73253

I also found lots of threads in these forums in the past where people were asking which build they need to use for a certain version of xcode. Maybe just a list with the builds where the sdk was changed noted down would be enough to keep track of everything. Btw it took a while to find but the newest build that works with Xcode 8.2.1 is 3061.

Just my experience: I have some native apps and the last time I tried to upload a new app (sometime end of last year) 8.0 was the minimum required by Apple. Anything lower and it would throw an error.

Adrian