Skip to content
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

Cannot run command "yarn ios" #216

Closed
baonguyenhsts opened this issue Apr 9, 2024 · 4 comments
Closed

Cannot run command "yarn ios" #216

baonguyenhsts opened this issue Apr 9, 2024 · 4 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@baonguyenhsts
Copy link
Contributor

Screenshot 2024-04-09 at 11 18 36 AM
@baonguyenhsts baonguyenhsts added bug Something isn't working question Further information is requested labels Apr 9, 2024
@huydosgtech
Copy link
Contributor

@baonguyenhsts we need install ios-deploy then can connect with device
https://stackoverflow.com/questions/38495793/run-react-native-application-on-ios-device-directly-from-command-line

All my side I can yarn ios success.

Screenshot 2024-04-21 at 9 39 19 PM

If you still failed please try these steps below

  • delete Podfile.lock
  • yarn
  • cd iOS & pod install
  • yarn iOS

@baonguyenhsts
Copy link
Contributor Author

I believe we don't need to install ios-deploy to run the command, as my previous projects haven't required it. Additionally, the weekly download rate of ios-deploy is not high enough to warrant its installation.

@huydosgtech
Copy link
Contributor

huydosgtech commented May 22, 2024

@baonguyenhsts after uninstalled ios-deploy my side, It still working when run yarn ios. Could you check it again? Thank you

@huydosgtech
Copy link
Contributor

I encountered this issue after running my app on both actual physical device and simulator. So I go to Xcode > Device and simulator > unpair real device. And then it's working

Screenshot 2024-05-22 at 4 39 15 PM

For information to resolve this problem at here:
facebook/react-native#35917 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants