-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Could not find iPhone 6 simulator #21498
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library. If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose. |
same issue here |
same issue here. Please help. Info: It works from XCode but command line it is not working. |
This error is occurring because the response of "xcrun simctl list --json devices" got changed. "availability" is changed by "isAvailable" |
I would say XCode. Accordingly ReactNative code should be updated. I would like to add pull request for that but this issue is already been closed by bot. Any idea how could I do that? |
Same issue here. Editing :
This:
shows me:
So I guess the structure of I'll point out that doing string matching, based on strings being passed in from other tools and even other eco-systems, is bound to be fragile. Not that I can think of an alternative. |
In case anybody else stumbles here, my solution was different. What fixed it for me was manually updating our if (!version.startsWith('iOS') && !version.startsWith('tvOS')) to if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) If you Also looks like simulator.isAvailable !== 'YES' should now be if (simulator.isAvailable !== true) And for anybody now getting: I've created a gist that fixes And finally get a successful build with XCode 10.2 (10E125) \o/ |
After upgrading to Xcode 10.2 this needs to be done if you are still using RN 0.53 open replace |
Thank @Kamahl19 , it work for me! |
Addressing Issue wix-incubator#23 facebook/react-native#21498 If you follow the guidance given wix-incubator#23 (comment) then you can get this working. But if you need to build your app in a CI/CD environment, then no way to edit your node modules. This change brings this bridge in line with the current NewRelic agent.
@leotm - do you have any idea when or how this will be fixed in react-native? It seems that it will now affect everyone. I'm currently on 0.57.8, and experiencing this issue, but looks like even if you are on the latest version you still get this. Updating the file in node_modules is not a good solution these are temporary files. |
Am I the only one who does not have node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js ? There is only one thing inside the local-cli folder, which is the file cli.js - any ideas?? |
In addition to what @leotm said, I've found that some simulator names have changed in Xcode 10.2 (iOS 12.2 SDK), So instead of running, react-native run-ios --simulator "iPhone XS Max" You should run react-native run-ios --simulator "iPhone Xs Max" |
Confirmed working with Be prepared to update dependencies ⚔ |
Tried |
it works for me: if (!version.startsWith('iOS') && !version.startsWith('tvOS')) to if (
!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS-12-2') &&
!version.startsWith('tvOS')
)
|
@patrickgodinho your solution worked perfectly for me! Thanks 💯 |
@patrickgodinho can confirm, pretty solid and works fine. |
@patrickgodinho I can not this
Can you please help ? @Monte9 @ahmadalfy |
i am just updated react-native latest version "0.58.6" |
Really shouldn't be updating the code contained in node_modules if you can avoid it. Anyone who doesn't have that fix will run into the same issue and any updates to the packages you edit will reverse the "fix". |
@samparmenter I can imagine the issues this hack will cause, what alternatives do you suggest? |
I changed the if condition to
(instead of the code above) and it's working for me! |
To make patrickgodinho's fix more automatic, add
to your package.json. When you or a coworker runs |
Thanks @mcjohnalds ! Nice snippet! |
If you start another simulator with XCode 12.2.1 to test the app on iPad you must change the version: before |
i upgraded my react-native version to latest (last week) - and this seems to have been fixed in newer versions.
|
Thanks. It worked for me. |
for anyone who looking for the solution about old version React Native project that runs failed on the newest XCode, please just using this as a workaround. thank you for just saving my day :p |
It dose not work for me. still get 'could not find iPhone 6 simulator' here |
@369855707 instead of 'YES' you have to use true |
I tried everything you guys suggested but nothing works. I'm using Xcode 11 and React Native 0.60.5 |
"react": "16.8.6", |
For me this was related to the xcode upgrade, with the default iPhone x simulator no longer available. I suggest specifiying iphone 11 instead |
seems like XCode 11 has change something related to simulator keys, so these old fix method were no longer useful. for now if you still can't get it works, you can still start app within simulator by using XCode's run button. |
I got this error when i ran: react-native run-ios
The text was updated successfully, but these errors were encountered: