- Install Cocoapods.
- Inside this project directory (inside the
beiwe-ios
directory), runpod install
. - Install a
GoogleService-Info.plist
file.- Note: this is connected to your specific Firebase account. If you're using the Beiwe Service Center but still want to build your own version of the Beiwe iOS app, you'll need to ask someone at the Onnela Lab to provide this file to you.
- To add the file to the Xcode project, open it in Finder, and drag it into the Xcode project navigator. It's not enough to move it into the beiwe-ios directory using Finder or
mv
/cp
in Terminal.
- Open Xcode.
- To build for the Simulator, click the "Run" arrow button.
- To build for release, click Product -> Archive.
There are two important Build Configurations:
- "Beiwe": the study server is hardcoded to studies.beiwe.org
- "Beiwe2": the study server URL gets set after you install the app, on the registration screen.