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)

Most upvoted comments

@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:

react-native run-ios --simulator 'iPad Pro (10.5-inch) (12.0)' --configuration Debug
react-native run-ios --simulator 'iPad Pro (10.5-inch) (11.0)' --configuration Release

'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 changed

In my problem i just have to kill com.apple.CoreSimulator.CoreSimulatorService see this link

I solved this issue this way.

1. npm start
2. Open Xcode, choose simulator and run.

@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 to iPhone XS Max.

If all fails, run it through Xcode directly at the very top of the GUI. Screen Shot 2019-04-12 at 5 47 10 PM

Pick your iPhone simulator and press the play button. Screen Shot 2019-04-12 at 5 47 25 PM

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):

== Devices ==
-- iOS 12.0 --
    iPhone 5s (2EA5629A-47F7-4860-8421-F3426EA90AFF) (Shutdown)
    iPhone 6 (E9C3982A-233E-4D6B-9786-EDD71860225F) (Shutdown)
    iPhone 6 Plus (4165F0E5-2755-4814-9061-056D8B0C4775) (Shutdown)
    iPhone 6s (4AAF6165-8C7B-4B5F-B599-BBDD17A9D98B) (Shutdown)
    iPhone 6s Plus (0097D065-CFFD-4089-B3AE-386C5FEA784C) (Shutdown)
    iPhone 7 (991A26FC-B08C-450F-A83A-89B3C6BA4293) (Shutdown)
    iPhone 7 Plus (C4C6FD4B-5480-44A6-A3B9-6877AA2F6718) (Shutdown)
    iPhone 8 (A414F90E-09DD-4C63-A85E-E0E679478D60) (Shutdown)
    iPhone 8 Plus (19EE78EA-EEE8-44BC-AD52-3F2E46BEDFC7) (Shutdown)
    iPhone SE (BC7E60FC-14D7-41A9-B655-4F67193DF008) (Shutdown)
    iPhone X (2AB9351C-FAF2-4006-A4A7-5D2CF447EF57) (Shutdown)
    iPhone XR (CC9B74AE-5AEC-4B87-B5FD-F7C1097454E6) (Shutdown)
    iPhone XS (1578EC06-1A28-4EF1-8FCC-AAE2FC5B9CC2) (Shutdown)
    iPhone XS Max (2297A78E-B800-48B1-90D7-A8B2D8499BE7) (Shutdown)
    iPad Air (712C297F-A990-4D7D-B608-5FF219486E36) (Shutdown)
    iPad Air 2 (3B2931B2-7DD9-46BC-9EE1-8FB5EBCDA014) (Shutdown)
    iPad (5th generation) (42336220-39DB-410C-B1F7-C9C0E1C87DB9) (Shutdown)
    iPad Pro (9.7-inch) (5B087869-BD44-465D-969B-F0FE430B049B) (Shutdown)
    iPad Pro (12.9-inch) (A475475C-E65F-465A-9391-E266D847B837) (Shutdown)
    iPad Pro (12.9-inch) (2nd generation) (953946B7-23A6-4C7A-BEF6-E2E36E937977) (Shutdown)
    iPad Pro (10.5-inch) (AF21FFCE-2CD4-4A55-ADDA-451ED91C3F0F) (Shutdown)
    iPad (6th generation) (7497B372-2B6F-4DD4-BD5B-72A410CA0003) (Shutdown)
-- tvOS 12.0 --
    Apple TV (53427572-C80E-4632-B60B-931021397939) (Shutdown)
    Apple TV 4K (5312C2D4-0152-4EF8-86C0-64699037C491) (Shutdown)
    Apple TV 4K (at 1080p) (68279ACA-BC34-4AAD-ADCD-934B891015E1) (Shutdown)
-- watchOS 5.0 --
    Apple Watch Series 2 - 38mm (73D7DB22-8016-4B47-A86E-A8A8EEB36387) (Shutdown)
    Apple Watch Series 2 - 42mm (02204887-F212-4134-8867-972F894C4905) (Shutdown)
    Apple Watch Series 3 - 38mm (3396FC6A-E6C8-4C1D-80DA-80A44A66EDAD) (Shutdown)
    Apple Watch Series 3 - 42mm (1F0120FB-A1FF-4522-9DE3-73C254A95CBD) (Shutdown)
    Apple Watch Series 4 - 40mm (25C0DD3A-6900-4E55-A7E1-5A19D00C2D3A) (Shutdown)
    Apple Watch Series 4 - 44mm (A86B5903-55F8-4C37-9B15-170BCCFCB375) (Shutdown)

React Native Info:

  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
      Memory: 3.59 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.0.0 - /usr/local/bin/node
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
    IDEs:
      Xcode: 10.0/10A255 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728 
      react-native: 0.57.4 => 0.57.4 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

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.