Update default iOS Simulator (#16289)

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
This commit is contained in:
Mohamed Javid 2023-06-16 02:07:11 +08:00 committed by GitHub
parent 3e343d3264
commit 42040e4fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions

View File

@ -268,7 +268,7 @@ run-android: export TARGET := android
run-android: ##@run Build Android APK and start it on the device run-android: ##@run Build Android APK and start it on the device
npx react-native run-android --appIdSuffix debug npx react-native run-android --appIdSuffix debug
SIMULATOR=iPhone 13 SIMULATOR=iPhone 11 Pro
run-ios: export TARGET := ios run-ios: export TARGET := ios
run-ios: ##@run Build iOS app and start it in a simulator/device run-ios: ##@run Build iOS app and start it in a simulator/device
ifneq ("$(SIMULATOR)", "") ifneq ("$(SIMULATOR)", "")

View File

@ -28,11 +28,30 @@ You need to have an emulator like [AVD](https://developer.android.com/studio/run
### iOS ### iOS
You can specify the simulator type by adding the `SIMULATOR` flag: #### Running on a simulator
We highly recommend using the `iPhone 11 Pro` simulator as its screen dimensions match with our design.
If you have Xcode `v12.x` (and above) installed in your system, you need to follow the below steps to add `iPhone 11 Pro` simulator:
1. Open Xcode
2. Menu `>` Window `>` Devices and Simulators
3. Tap `+` button on bottom left
4. Select **Device Type** as `iPhone 11 Pro`
5. Leave the **Simulator Name** empty and tap on **Create**
##### NOTE ⚠️
Running `make run-ios` will target `iPhone 11 Pro` by default.
If you need to run on any other simulator, you can specify the simulator type by adding the `SIMULATOR` flag:
```sh ```sh
make run-ios SIMULATOR="iPhone 11 Pro" make run-ios SIMULATOR="iPhone 11 Pro"
``` ```
Some manual steps are necesary for [developing on a physical iOS Device](#physical-ios-device).
#### Running on a physical device
Some manual steps are necessary for [developing on a physical iOS Device](#physical-ios-device).
# Build release # Build release