-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
out of box react native 0.71.1 failed run-ios #35917
Comments
I am having the same issue with completely new project without anything inside of it - whats going on?? |
I have tried everything. |
I am also having the same issue... Any idea how to fix @xiongemi? |
Make sure latest ios-deploy package installed e.g. Also check which device it is trying to find. Check if it's attempting to install on Macbook and not the iphone, which you can resolve by installing to iPhone. Instructions:
May need to deintegrate pods and re-install:
|
Hi @dylan-westbury , I have reinstalled iOS-deploy many times but still no success resolving the issue. Any other ideas? |
The same. Every two months I do a test build of a new version of React Native, and every two months I don't want to upgrade from version 0.68.5 All build since 0.69 were broken somewhere and you need to spent a lot of time to start using it. It doesn't worth it. |
@tatetoussaint In the end, i am able to run this command. a couple of issues i ran into:
however, i could run the command with udid flag: https://reactnative.dev/docs/running-on-simulator-ios#specifying-an-udid
|
I was facing this error
This worked out for me:
Then go ahead and rerun your project |
This worked but now I have the error, |
This is the second Saturday I wasted trying to upgrade from 0.70.6 to 0.71+ (this time 0.71.2). Issue still persists even if I use -udid parameter to specify a device ID because Metro cannot find any connected app after the build. As the OP mentioned, this is not only an upgrade issue but also creating a new RN project gives the same error. Edit: I've been able to resolve the problem Metro doesn't recognize the device by running the following : However, "Unable to find a destination matching..." issue when I run "yarn ios" issue is still there |
For me I was upgrading from from 0.69.7 to 0.71.2. I've deleted node modules and reinstalled dependencies. Also deleted Pods folder and ran pod install. It got rid of the error. |
I was having this problem when I was trying to run my app in the simulator with this command:
But I also have an personal device, also an iPhone 14 Pro, that is connected in the same network where I do my development and this iPhone is paired with Xcode through wifi. This problem was happening around 50% if I tried to run on the simulator, but when I tried to run on a different type of simulator that is different from my real device, like It seems that even though I pass the parameter One way to bypass this problem without having to unpair our device, is to use the |
I started the first time from xcode and then it started working |
Fixed in the latest version |
Still facing the same issue on
|
Still facing the same issue on 0.71.3 |
Hi all, Commenting here with "Still facing this issue" won't help to fix this sadly. Thank you. |
For anyone that comes across this because it's matching their host device
Looks to be fixed by react-native-community/cli#1823 which is currently only available in an alpha release |
Should be fixed by react-native-community/cli#1863, assuming that gets merged be great if a new |
This issue is still happening on RN |
Do you still have it? I have the same error too. |
any solution |
it doesnt work for me as well... I see white screen once my app launched... "react-native": "0.71.6" It doesn't work even on a brand new project XD |
@kokosky93 suspect that's a different issue, problem here (not finding correct simulator) appears fixed for me in 0.71.6 |
I also experienced this problem with a real device and simulator that were different versions. (real iPhone 7 was plugged in and my command was using I wasn't upgrading RN, installing pods, or anything like that. The error just suddenly started happening, even after restarting my macbook. In other words, if you have any iOS device connected when you see this error, that may be the cause. |
I am using the "react-native": "0.71.6", with simulator iPhone 14 pro, iPhone SE ... failed to start the application too success Successfully built the app |
This is the workaround that worked to me: |
why you guys need workaround, as the error shows:
Just install
|
As this is a top result for this error, it may be worth noting - this error can also appear if you're trying to load a simulator with a real device plugged in. The solution is simply to unplug the real device, run |
I can't believe RN is a real way of doing software development! I think our team has spent more time wrestling with this delicate house of cards than doing actual software development! You have to get each tool's exact version just right (and there's seemingly no public list of approved interoperable versions) and when you upgrade your tools the whole house falls down. Projects that are just months (not years) old fail to build regularly. |
@fitzyjoe I'm not sure if this is what you mean, but @rnx-kit/align-deps is pretty great for ensuring all your dependencies are compatible with your version of RN. |
Thanks for responding @traviswimer. When I run this: npx @rnx-kit/align-deps --requirements react-native@0.73.0 There is no output. Perhaps my deps are aligned. Still hosed when it comes to building and running though. What I meant in my message about the tool versions was referring more to the executable tools... node, npm, npx, ruby, rvm, yarn, gem, pod, bundle... and when my project has sat for 4 months and in the meantime I've upgraded MacOS and XCode and brew... and now the project won't build... I've tried to downgrade my tools, and I've tried to upgrade the project with react native upgrade helper. I think there are a lot of other people who are experiencing this nightmare - I find them by searching for the errors I encounter. This new version of xcode requires targeting iOS >12 but the old project might have been targeting 11. I've tried to update this but pulling on the thread only uncovers more errors. https://reactnative.dev/docs/environment-setup |
@fitzyjoe Is the As far as the Ruby issue goes, I think it's probably because of the change explained in this comment. Basically, they briefly switched to requiring a specific version of Ruby, but it caused problems for a lot of people so now in theory they are supporting a range of versions. I'm not sure how well they actually do that though. It looks like they're running their CI tests on a few different versions in various places. I'd try using Personally, I set the ruby version in my If you want to set a specific version, I wrote a blog post about the old single-version-of-ruby setup (I should probably update it), but most of it still applies other than the default |
I encountered this issue after running my app on an actual physical device connected thru USB (I also paired my iPhone 15 with my Macbook). I resolved it by unpairing my physical device in Xcode. Go to Manage Run Destinations... and unpair your physical device |
Exact path to your solution - |
Description
i created a react native app with
npx react-native init
, i did not change anything inside the app. however, run-ios command failed for me out of the box1st time i run it, the run-ios command throws an error:
after i install the
ios-deploy
, I got this generic error:Version
0.71.1
Output of
npx react-native info
System:
OS: macOS 12.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 124.93 MB / 64.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.13.0 - ~/.volta/tools/image/node/18.13.0/bin/node
Yarn: 1.22.10 - ~/.volta/bin/yarn
npm: 8.19.3 - ~/.volta/tools/image/node/18.13.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8815526
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.1 => 0.71.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native init
npm run ios
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: