Skip to content

Commit

Permalink
chore: [IOAPPFD0-202] Update README.md physical devices section (#5332)
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyAfternoons authored Jan 8, 2024
1 parent e92e03c commit ccf5fc2
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ You can target the production server by copying the included `.env.production` f
$ cp .env.production .env
```

> **Note**
> [!NOTE]
> The sample configuration sets the app to interface with our test environment, on which we work continuously; therefore, it may occur that some features are not always available or fully working. Check the comments in the file for more informations about environment variables.
### io-dev-api-server
Expand Down Expand Up @@ -425,8 +425,12 @@ $ yarn run-ios

### Physical devices
The React Native documentation provides a [useful guide](https://reactnative.dev/docs/running-on-device) for running projects on physical devices.
> **Warning**
> On iOS you also have to change the `Bundle Identifier` to something unique before running io-app on your physical device. This can be done in the `Signing (Debug)` section of Xcode.
> [!IMPORTANT]
> For building the app on an iOS physical device, a few additional steps are necessary:
> - Navigate to `Build Phases` in Xcode and expand `Bundle React Native code and images`. Update the `NODE_BINARY` variable with the path to your Node.js environment. You can find the correct path by running `which node` in a terminal from the app's root directory;
> - If you're not part of the PagoPA S.p.A. organization then you must change the `Bundle Identifier` to something unique. This adjustment can be made in the `Signing (Debug)`
> section of Xcode;
> - In order to test the CIE authentication flow, run `yarn cie-ios:prod` before building the app. The process can be reverted by running `yarn cie-ios:dev`.


Expand All @@ -442,19 +446,6 @@ This section lists possible solutions to problems you might encounter while buil
---
- ```
error: Can't find 'node' binary to build React Native bundle If you have non-standard nodejs installation, select your project in Xcode, find 'Build Phases' - 'Bundle React Native code and images' and change NODE_BINARY to absolute path to your node executable (you can find it by invoking 'which node' in the terminal)
```
While using a virtual node enviroment and building with Xcode you might encounter the aformentioned error.
Create a local Xcode enviroment file by running:
```bash
$ cd ios
$ cp .xcode.env .xcode.env.local
```
Edit `.xcode.env.local` to your needs by adding your node binary path which can be found by running `which node`.
---
- ```
error No simulator available with name "iPhone 13".
```
Expand Down Expand Up @@ -576,4 +567,4 @@ In the meantime, there are two complementary and simultaneous activities going o
You can keep track of the latest developments by filtering all the PRs according to the type of activity:
[![NativeBase's dismissal label](https://img.shields.io/github/labels/pagopa/io-app/NativeBase%20dismissal%20%F0%9F%A5%B7%F0%9F%8F%BC)](https://github.com/pagopa/io-app/labels/NativeBase%20dismissal%20%F0%9F%A5%B7%F0%9F%8F%BC) [![Design System's label](https://img.shields.io/github/labels/pagopa/io-app/Design%20System)](https://github.com/pagopa/io-app/labels/Design%20System)
[![NativeBase's dismissal label](https://img.shields.io/github/labels/pagopa/io-app/NativeBase%20dismissal%20%F0%9F%A5%B7%F0%9F%8F%BC)](https://github.com/pagopa/io-app/labels/NativeBase%20dismissal%20%F0%9F%A5%B7%F0%9F%8F%BC) [![Design System's label](https://img.shields.io/github/labels/pagopa/io-app/Design%20System)](https://github.com/pagopa/io-app/labels/Design%20System)

0 comments on commit ccf5fc2

Please sign in to comment.