Simulator build error

When trying to build a simulator app I got the following error:


I updated Xcode today and installed that component:

Any suggestions?
Thanks in advance.

Ugh! We were having a lot of support cases for iOS where the user updated Xcode but didn’t start it to get the updated SDK.

We run this command to get the expected required SDK:
xcodebuild -showsdks | grep -- "-sdk iphoneos" | cut -d\ -f 2

We run this command to see what is actually installed:
xcrun simctl list devices | grep -- "-- iOS" | cut -d\ -f 3

The first command returns a single version. The second command returns a list of versions. The second list should contain the version return from the first command (at least that is what happened with the previous version of Xcode.

I just upgraded to Xcode 16.2. It is returning:

first command:

18.2

second command:

16.4
17.5
18.1
18.3

What?!?!

So I need to update the version checking code! I will try to fix this and get your a build to check. I have to leave early today, so it might be until next week until I can get something to you.

Chris

2 Likes

Here is a build of SAB 12.4 with better checks.

1 Like

Thanks Chris,
That worked,
Craig

A better work-around is to download and install the iOS 18.2 Simulator from Apple. This can be done with one command-line:

xcodebuild -downloadPlatform iOS -exportPath ~/Downloads -buildVersion 18.2

Chris

1 Like