-
Notifications
You must be signed in to change notification settings - Fork 904
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
iOS CLI Run Fails with Incorrect Device ID in 10.1.x #1807
Comments
Hi @brianlenz thanks for reporting. From the logs it looks like cli wanted to launch your app both on AppleTV and iPhone 14, one being I'm guessing physical device and the other a simulator? Was that your intention? According to this SO answer
Also, could you please check if passing |
@adamTrz, thanks for the quick response! The intent is to launch on the iOS simulator (iPhone 14), which is the default I have a feeling the Apple TV is throwing things off, but I don't understand how.. If I use Does that help? |
So to clarify it bit more - both iPhone and Apple TV are physical devices? Not emulators? We're getting the list of available devices by running
Strange! Are you passing device name correctly? |
For this:
The Apple TV is a physical device, and the iPhone 14 is a simulator. That's the message when doing In the case of using
and:
I've noticed that sometimes it will pick the same device twice in a row, but it seems mostly to be evenly distributed between the two devices on which it picks. Here's the output of
You can see from this that when the CLI is failing (the main issue here), Let me know if I can provide anything else that might help! |
@adamTrz, it's worth noting that on |
I'm seeing a similar issue where the cli is trying to run on my mac rather than an iOS device. The build subsequently fails with error:
where the id corresponds to:
|
Sorry for that. |
Thanks much, @adamTrz! 🙏 |
Environment
Description
react-native run-ios
(incli-platform-ios
) seems to fail with versions10.1.x
. I've tested with@react-native-community/cli-platform-ios
versions10.1.0
and10.1.1
. The command only works when fixing the resolution to10.0.0
.We have custom scripts to run different configs + schemes. Here's an example of one that is failing:
On
10.1.x
, it fails with:When running against
10.0.0
, the output is different:And from there, it builds and runs successfully.
I suspect the issue has to do with identifying the device/simulator to run on? See the
-destination
difference in the output between the two. Theid
that is found in10.1.x
doesn't correspond to any device ID.It's worth noting that running from Xcode works without issue in all cases, so this is clearly a CLI issue.
Reproducible Demo
I'm not sure the best way to share a reproducible test case right now. Hopefully the above is information sufficient to investigate, but if you need more details, let me know 🙏
The text was updated successfully, but these errors were encountered: