After setting up your environment, you can follow the steps below to run the pass Culture mobile application on iOS.
To install iOS modules (pods), we use Cocoapods (dependency manager). It is built with Ruby, so make sure it is installed on your computer.
We use bundler to install our Ruby gems. You can install it with gem install bundler
.
Now you can install Cocoapods with bundle install
. This will install the gems.
To install the pods, and create the Pods folder, run:
bundle exec pod install
inside the folder/ios
- you may be asked to run
bundle exec pod repo update
You will need to add the GoogleService-Info.plist
file in the ios
directory. You can get a copy of the testing configuration one through the password manager, or directly through the Firebase console inside Project Settings
.
To run the app, simply run: yarn ios:testing
.
This will also start the metro server. If not, run yarn start
in another tab.
In order to launch the app in your Apple device, you need to follow these steps:
Download the iOS certificates to your computer:
- Create an Apple Developer passCulture account (https://developer.apple.com/).
- Connect to the Apple Developper account with Xcode.
- Get invited to the Apple Developer group by an Admin.
- Download the private key via fastlane:
bundle exec fastlane ios download_certificates --env testing
- Add the URL of the private certificates git repository named "pass-culture-app-native-certificates".
- Get the
match repo passphrase
on 1password in the "Tech" vault.
Connect your device to the computer and run yarn ios:testing --device
or use the Xcode interface. Choose a scheme (your device) and click the Run button in the toolbar. More info here.