HomeiOS Developmentreact native - Easy methods to run ReactNative iOS mission on older...

react native – Easy methods to run ReactNative iOS mission on older simulator?


I am engaged on a ReactNative mission. Just a few months in the past, I used iOS 16 simulator to check it. Labored fantastic. Ultimately for some causes, I switched to iOS 18 simulator, which additionally labored fantastic.

To save lots of disk area, iOS 18 simulator is eliminated. Then when working the mission once more:

yarn ios:dev
yarn run v1.22.22
$ react-native run-ios --udid F6BFC767-6B72-4ED2-92DF-C8AB9A3FB0A7
data Discovered Xcode workspace "AWESOMEAPP.xcworkspace"
data Launching iPhone 14 Professional Max (iOS 16.0)
data Constructing (utilizing "xcodebuild -workspace AWESOMEAPP.xcworkspace -configuration Debug -scheme AWESOMEAPP -destination id=F6BFC767-6B72-4ED2-92DF-C8AB9A3FB0A7")
error Didn't construct iOS mission. We ran "xcodebuild" command nevertheless it exited with error code 70. To debug construct logs additional, think about constructing your app with Xcode.app, by opening AWESOMEAPP.xcworkspace.
Command line invocation:
    /Purposes/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace AWESOMEAPP.xcworkspace -configuration Debug -scheme AWESOMEAPP -destination id=F6BFC767-6B72-4ED2-92DF-C8AB9A3FB0A7

Person defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES


2025-08-21 08:29:41.688 xcodebuild[11698:97479] Writing error end result bundle to /var/folders/42/7rwmfsfs4rl6jv1xl12n88gc0000gp/T/ResultBundle_2025-21-08_08-29-0041.xcresult
xcodebuild: error: Unable to discover a vacation spot matching the offered vacation spot specifier:
        { id:F6BFC767-6B72-4ED2-92DF-C8AB9A3FB0A7 }

    Ineligible locations for the "AWESOMEAPP" scheme:
        { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, identify:Any iOS System, error:iOS 18.2 will not be put in. To make use of with Xcode, first obtain and set up the platform }

data Run CLI with --verbose flag for extra particulars.
error Command failed with exit code 1.
data Go to https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Appears now the XCode workspace is hardwired to make use of iOS 18 (maybe I did some settings tweaking on XCode). Easy methods to make the mission runnable on iOS 16 simulator?

Simply tried to wash the construct folder: Product -> Clear Builder. Noticed this message:
enter image description here

Why? Is having the newest iOS simulator put in is a should?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments