As per https://reactnative.dev/docs/environment-setup, I'm trying to run sample project on iOS simulator
When I ran command npx react-native run-ios
getting error
info Found Xcode workspace "AwesomeProject.xcworkspace"
error No simulator available with name "iPhone 12".
From where does it picking iPhone 12
, I don't have that simulator in first place
Open Xcode and check which simulators are installed or list available simulators in terminal with xcrun simctl list devices
.
Then define a simulator you wanna use:
npx react-native run-ios --simulator="iPhone 13"
If you're coming from React Native, follow these:
sudo xcodebuild -license
npx react-native run-ios --simulator="iPhone 14"
Xcode => Preferences => Locations
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With