react-native: Could not find iPhone XXX simulator
Environment
OS: macOS 10.14 Node: 8.11.1 Yarn: 0.22.0 npm: 6.1.0 Watchman: 4.9.0 Xcode: Xcode 10.0 Build version 10A255 Android Studio: Not Found
Packages: (wanted => installed) react: ^16.4.0 => 16.5.2 react-native: ^0.55.4 => 0.55.4
Description
When I run xcrun simctl list devices
== Devices ==
-- iOS 12.0 --
iPhone 6 (03A77DAB-8642-4E03-95A8-08C57CA9A9C9) (Shutdown)
iPhone 8 (13AD8AD9-E701-4A71-A276-F49642976CB2) (Shutdown)
iPhone XS (42BB9356-A858-4AA2-BE08-1C87C14D4143) (Shutdown)
-- tvOS 12.0 --
-- watchOS 5.0 --
-- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-12-1 --
iPhone 8 (7119D9FD-3436-4302-A040-BD16DC5C96C5) (Shutdown) (unavailable, runtime profile not found)
iPhone XS (0B3F56B2-F48F-4970-A7F5-DDB8361CA2EF) (Shutdown) (unavailable, runtime profile not found)
iPhone XS Max (D35E1F7E-A558-449E-8084-AF420368B3DC) (Shutdown) (unavailable, runtime profile not found)
Then run react-native run-ios --simulator="iPhone 8"
Could not find iPhone 8 simulator
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (1 by maintainers)
@kelset EDIT I managed to fix my issue by adding “(12.0)” (for iOS 12) as I have older OS simulators installed too - specifying a simulator now works as follows:
'iPad Pro (11-inch) (12.2)'
adding the OS version matters.After I downloaded Xcode 11 beta, this issue happened again!
For anywhere else stumbling here like I did, if the above didn’t work, https://github.com/facebook/react-native/issues/21498#issuecomment-476621627 may.
Yep, downloading and using xcode 11 beta breaks
react-native run-ios
@react-native-bot Yes, If I update to v0.57, then more issues come! That’s why I try to fix this issue on the old version!
If you faced the
Could not find iPhone XXX simulator
error, note that some simulators’ names have changedIn my problem i just have to kill com.apple.CoreSimulator.CoreSimulatorService see this link
I solved this issue this way.
@rsispal fixed mine, even though I only had one iPad Pro (11-inch) in my device output, adding the OS version at the end fixed mine. ‘iPad Pro (11-inch) (12.2)’
As @ialmoqren mentioned, the naming convention changed for Xcode simulators.
For example, in my package.json I wrote a script like this:
"ios_big": "react-native run-ios --simulator='iPhone Xs Max'",
. I now changed it to this:"ios_big": "react-native run-ios --simulator='iPhone XS Max'",
Notice it changed from
iPhone Xs Max
toiPhone XS Max
.If all fails, run it through Xcode directly at the very top of the GUI.
Pick your iPhone simulator and press the play button.
I just started a new project and I am also now experiencing the “Could not find iPad Pro (10.5-inch) simulator” error when trying to launch the 10.5 Inch iPad Pro simulator (and other devices) via
react-native run-ios --simulator 'iPad Pro (10.5-inch)' --configuration Debug
- a command which worked in RN 0.55 in other projects.Available simulators (via
xcrun simctl list devices
):React Native Info:
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.
The “⏪Old Version” label will be removed automatically once you edit your original post with the results of running
react-native info
on a project using the latest release.