How to choose which iPhone model simulator to run my react native app? - react-native

I am working on react native app, and I do testing on iOS Simulator.
However, it always runs on iPhone 6, and i don't know how I can switch to other iPhone models like iPhone 6 Plus or 5.
I can start a different device manually by going to Simulator -> Hardware -> Device -> iOS -> iPhone 6 Plus.
But the app is installed only on iPhone 6, and it always starts iPhone 6 when I run react-native run ios.
How can I change it so that I can run the app on different iOS Simulator devices?

react-native run-ios --simulator="iPhone 6s Plus"
As far as I can tell there is currently no way to specify the OS.

you could open your project in Xcode on mac and choose build target, then build.

Related

Are there any ways to set particularly iPhone 6s when debugging in React Native using VSCode?

I'm trying to debug my app, and the React Native Tools extension automatically opens my app in iPhone X, because of weakness of my mac mini, I've been looking for a way to change the device but there's nothing. How can I change it?
I use command line to specify the simulator.
react-native run-ios --simulator="iPhone 6s"

How to build iOS apps using react- native on window 10

I am new in react-native. I want to build an android and iOS application by using react-native. I used the Windows 10 to build the react-native project and it is ok when I run the android app using Android SDK or real device but cannot on iOS devices. I have researched this problem and know that I need to use macOS to run the iOS apps. Is it possible to build iOS apps using any iOS simulator on Windows 10?
for exporting ios apps you must have a MAC system(X-code) or you can do it in windows with VMvare that have a virtual Mac system ,and in next step you must have a developer account then other steps are simple :)
The best way to develop in react native if you did not have access to MAC OSX environment is to use EXPO as it will ensured the app could run on android and iOS.
The second option would be using private cloud Mac like MacStadium.

React Native Run Ios leads to black screen

Hi I'm trying to use the react-native run-ios command, this opens up the Simulator with the tab on the top reading "iphone 6 10.3 (14E8301)" but the screen is completely black.
So far the only commands that I have run are:
react-native init myapp
cd myapp
react-native run-ios
Am I missing something? I'm following a udemy tutorial and this is what the instructor has done but it is working for him
It is usually happens when the first time you run the Simulator. You need to manually click the device type.
Hardware => Device => iOS 10.3 => iPhone 6
You can change iPhone 6 to the device you want.

App runs on iOS7 simulator, but changing simulator to iOS8 it doesn't recognize CoreData store

I have an iPad app, XCode 6, iOS 7, Storyboards and ARC. If I change the target to 7.x, the app works fine on the simulator running 7.0.
However, if I change the simulator to 8.0, the app doesn't recognize the CoreData store created when running under 7.x (the store is still there, just not found when running on the 8.0 simulator.) Also, none of the objects (UIButtons, UITextboxes, etc) show up either!
I don't have iOS 8 installed on my iPad (afraid stuff like this will affect my users), but the question is: just because something doesn't run on the simulator v8.0, does that mean that setting the lowest target to iOS 7, it won't run on the device if it is running iOS 8?
The iOS 7 simulator is on a separate (virtual) machine from the iOS 8 simulator. So any data you created one of these machines, will not be found on the other.

xcode running in emulator - issue

I have a piece of software I wrote using xcode 5. Since I upgraded to xcode 6, the app looks strange when I run it on a physical device using the emulator. Not entirely sure what is going on or how I could fix it. It's not respecting the full size of the screen.
I am testing on an iPhone 5s (NOT simulator -- the app looks fine in the iPhone 5s simulator). I am connecting my phone to my comp and running it via xCode.
I am having the same issue with another project I built using xcode 5 and trying to run again in xcode 6...
thoughts anyone?!
Here is a screenshot of what is going on: