Catalina problems - Unsupported iOS SDK Mismatch

After buying a new, used Mac and installing Catalina, I have problems building my app. There seems to be some version problems:

Corona Simulator 2019.3535

XCode Version 11.1 (11A1027)

macOS Catalina Version 10.15

What can I do to make this work?

Sorry. I know very little about MacOS. I only use the Mac to be able to create iOS versions of my app…

Pick up the latest daily build (2019.3538) and make sure you have Xcode 11.1 installed and run at least once (you probably do since it references SDK 13.1.)

Rob

BTW this isn’t a Catalina issue. It’s the fact that when Apple pushes out a new iOS update, they push a new Xcode update and they keep them in version number sync (for the most part), so iOS 13.1 needs Xcode 11.1. When iOS 13.2 comes out, you will need Xcode 11.2 and so on. 

Corona’s build servers are also running Xcode and we have to actually update them whenever Apple comes out with a new Xcode. This usually takes a few days for us to make the update. Then we have to tweak the options in the build dialog to match (as some people may not have updated their Xcode yet and still want to build with it.

This is part of the normal update cycle.

Now some times, a new version of macOS comes out and Corona has a check in it to make sure you’re on a supported version of macOS and we check to make sure the OS number isn’t too large, so while Corona may run really well today on macOS 10.15 (Catalina), when Apple updates it to 10.15.1, we likely will have a period where we popup a dialog saying Corona isn’t compatible. It is compatible and you just have to ignore the message until we bump the version number in the code. 

Rob

Hi Rob - have you got Corona SDK working with Catalina ok yourself?   (just checking before I jump in)

Thanks! The version issue is now solved, but I cannot find the Application Loader anymore. It seems to have been removed from the Developer Tool menu in XCode 11.1.

The corona dialogue that pops up looks like this:

It seems like the Application Loader text is a clickable link that explains something, but nothing happens when I click on it.

Yes, Apple removed Application Loader starting with Xcode 11. Application loader features were built directly into Xcode. People using Xcode can send their apps to the app store directly from Xcode. From Apple’s perspective, there isn’t a need to support Application Loader any longer. They don’t care about third-party engines. I believe both UE4 and Unity produce Xcode projects and you finish the build there so they are not impacted by this.

There is two working solutions. Find a download of Xcode 10 and copy the Application Loader.app out of it to some place where you can load it. Or learn how to use their various command line tools. This takes some setup as you will have to get an API key from Apple, setup some encryption stuff (not hard) and then run a command from the command line to send the app. There are existing forum threads that cover what you need to do. Please search the forums or use Google to search on the topic.

I’m not sure what our plans are going forward. It would make sense to use the command line tool under the hood, but we don’t want to get involved in any password saving/security token getting items.

It stinks, but for now, the easiest thing is to find the legacy downloads for Apple and grab application builder out of the last 10.3. It’s know to work for now.

Rob

@greg886, please see: https://forums.coronalabs.com/topic/76392-macos-catalina-corona-simulator-does-not-work-help/#entry402980

Rob

Ok, thanks. Any idea where I can safely download XCode 10.3? I´m not a fan of installing random software from the net.

@runewinse, you can find it here: https://developer.apple.com/download/more/

Direct link: https://download.developer.apple.com/Developer_Tools/Xcode_10.3/Xcode_10.3.xip

Thanks a lot! I’ll try to see if I can extract the Application Loader from somewhere in the archive.

Ok, I have some additional questions. Please forgive me for being so green with the whole macOS thing.

First, when I unpack the .xip file it seems to result in one program file called XCode:

(my download folder)

Is this right? I was under the impression that one could extract the Application Loader separatedly? As it is now, I have a 12GB monster on my 128GB drive just to have access to the Application Loader.

Also, when I´m now trying to build a Corona app, I´m getting the " UNSUPPORTED iOS SDK Mismatch" dialogue again, probably because I´ve somehow managed to downgrade XCode???

I have no idea what I´m doing with my Mac. A thousand apologies…

You can Right-Click (if you have a 2 or 3 button mouse), or CMD-Click with the touch pad or a single button mouse on Xcode, and choose “Show Package Contents”. That will open the app and you can see the contents in it. The application is actually a folder and in this case it’s Xcode.app. Finder hides the .app and knows you want to run the program when you click on it. But by showing the package contents, you can then drill in and see more items.

I don’t have Xcode 10.3 installed so I can’t find you the exact path for it.

You can have multiple Xcode’s installed. You can open up the Terminal app, and run the command:

xcode-select --print-path 

And it will tell you which Xcode it’s using.  Xcode 11.1 should be in 

/Applications/Xcode.app/Contents/Developer

If it’s pointing to your downloads folder, then you want to do:

xcode-select /Applications/Xcode.app/Contents/Developer

to point it back to the Installed version. If it’s pointing the the right place, actually run Xcode out of the Applications folder and click on the Xcode menu->About Xcode and see what version it says.

From there we need to make sure you’re using a version of Corona that matches the Xcode version.

Thanks Rob!

Here´s what I´ve done so far:

I used “Show package contents” and found the Application Loader and moved it to Programs.

Then sucessfully opened Application Loader and logged in (I had to generate a new App specific password).

Then I deleted both the unpacked and packed XCode 10.3.

If I now open XCode, the about dialogue shows 11.1.

The only thing that now does not work is that I still get the good old “Unsupported iOS SDK mismatch” dialogue.

What version of Corona are you using?

What does running xcode-select --print from a terminal window say?

Can you provide a screenshot of the build dialog showing the SDK mismatch?

Rob

Corona version:

2019.3535 (2019.10.6)

xcode-select --print-path returns:

/Applications/Xcode.app/Contents/Developer

Screen dump of the error message:

ARGH! And there was the problem… Both versions of Corona was in the Dock. I didn´t notice and started the old one…

Glad you solved it.

Rob

Will the old version of application loader work still when I’ve upgraded to Catalina and the latest versions of xCode and Corona? Any other issues for building for iOS?

Application Loader is gone but Apple introduced a new app which is called Transporter to upload apps. As of writing this post, I have Catalina and the latest versions of xCode and Corona and I see no problem building for iOS. 

Troy, you can still download Xcode 10 from official apple sites and install it, find the Application Loader.app folder and move it to your /Applications folder then delete the Xcode 10 you just installed and it should work. But as @bamazy said, Transporter is the new official way to upload to the store if you’re not doing it directly from Xcode.

Rob