#Tauri iOS dev gives a warning about a missing SDK that seems to be installed

32 messages · Page 1 of 1 (latest)

dusky crescent
#

I'm unable to launch my Tauri app on an iOS simulator. Although the tauri ios dev command detects and lists my simulators, and appears to try to start them, the app itself never appears. I'm also receiving a warning that Xcode Simulator SDK 18.2 is not installed, despite my system's SDKs confirming its presence. Also I can successfully run the app on a physical iOS device.

Do you have any ideas on what I should try next to diagnose or fix this issue?

tender rose
#

Do you have Homebrew installed?

dusky crescent
#

yes, version 4.6

tender rose
#

Please share the output of brew outdated --json=v2.

dusky crescent
tender rose
#

I don't see anything that's unreasonably outdated. Have you installed cocoapods?

dusky crescent
#

Yes, the weird thing is that Tauri successfully opens both Xcode and the selected simulator, but the app never shows up on the simulator's screen.

tender rose
#

Is there any errors in the terminal to indicate a problem with the install on the emulated device?

dusky crescent
#

I only get a warning saying Xcode simulator is not installed:

tender rose
#

Did you install Xcode with xcode-select --install? That only includes the desktop dependencies.

dusky crescent
#

I installed it using from Apple Store and Apple developer tools from the command line.

tender rose
#

That should be all you need then. Can you check what SDK you have installed and what the project is expecting?

dusky crescent
#
        DriverKit 24.2                  -sdk driverkit24.2

iOS SDKs:
        iOS 18.2                        -sdk iphoneos18.2

iOS Simulator SDKs:
        Simulator - iOS 18.2            -sdk iphonesimulator18.2

macOS SDKs:
        macOS 15.2                      -sdk macosx15.2
        macOS 15.2                      -sdk macosx15.2

tvOS SDKs:
        tvOS 18.2                       -sdk appletvos18.2

tvOS Simulator SDKs:
        Simulator - tvOS 18.2           -sdk appletvsimulator18.2

visionOS SDKs:
        visionOS 2.2                    -sdk xros2.2

visionOS Simulator SDKs:
        Simulator - visionOS 2.2        -sdk xrsimulator2.2

watchOS SDKs:
        watchOS 11.2                    -sdk watchos11.2


watchOS Simulator SDKs:
        Simulator - watchOS 11.2        -sdk watchsimulator11.2
#

Tauri is expecting iOS 18.2, so that seem correct.

tender rose
#

Yep. The fact that it works on a physical device but not the emulator is rather strange to begin with.

dusky crescent
#

I will try running Tauri on a different MacBook to see if the same issue occurs

tender rose
#

Is the working install on the physical device also a debug build?

dusky crescent
#

yes

tender rose
#

Then it's definitely not starting then immediately crashing.

#

Can you try adding --verbose to the command? Taking a look at the CLI code, it seems that's a generic error whenever the dev run fails.

dusky crescent
tender rose
#

What does the *.xcodeproj file contain for SDKROOT and ADDITIONAL_SDKS? You might be able to add 18.3.1 to the list.

#

Apple's docs mention only sparse SDKs work for ADDITIONAL_SDKS so it will have to be just SDKROOT.

#

Which is strange because tauri ios init should have filled in the correct value for what you had installed.

dusky crescent
#

this is the SDKROOT: SDKROOT = iphoneos;

#

The ADDITIONAL_SDKS variable is not present.

tender rose
#

In Xcode, what options do you have for Base SDK under the Build Settings tab?

#

In theory, it should give you the option to pick specifically 18.3.1.

dusky crescent
#

I will take a look. Thank you for your help!

dusky crescent
#

I found a workaround by manually installing the 18.2 runtime using this command: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads -buildVersion 18.2

#

After that, I was able to select the correct runtime.