Reputation: 352
I'm trying to run iOS simulator for my react native app react-native run-ios
. it builds and metro bundler CLI runs, the device simulator is running, but the app does not connect with the metro bundler.
im running "react-native": "0.66.0" xcode 13.0
I kill all simulators 1st. then run the cmd react-native run-ios
1st window builds the app and launches window 2
$ react-native run-ios
info Found Xcode workspace "app.xcworkspace"
info Launching iPhone 13 Pro Max (iOS 15.0)
info Building (using "xcodebuild -workspace app.xcworkspace -configuration Debug -scheme app-local -destination id=28EE92ED-7ADA-4A93-998F-1DB295E06A73")
success Successfully built the app
info Installing "/Users/me/Library/Developer/Xcode/DerivedData/app-clbjkkdzbwdgfsfruhrufuliemky/Build/Products/Debug-iphonesimulator/app-dev.app"
info Launching "com.myapp.app.dev"
success Successfully launched the app on the simulator
✨ Done in 168.65s.
%
window2 the metro bundler, cant find the simulator.
[metro welcome ascii art]
To reload the app press "r"
To open developer menu press "d"
warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.
info Reloading app...
window3, the ios simulator
What I tried and doesnt do anything
yarn install
pod install
rm -rf ~/Library/Developer/Xcode/DerivedData
any help?
Upvotes: 3
Views: 4602
Reputation: 352
this solved it. check the crash log.
~/Library/Logs/DiagnosticReports
App crashes when launching directly from simulator but If I launch our app in the simulator from Xcode via the play button it runs just fine
Upvotes: -1