You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Getting Started

In order to run the mobile app locally, follow the steps below:

  1. Install Xcode from App Store
  2. Install Flutter
    1. Use the response from ``flutter doctor`` to guide you through any other necessary installations (e.g., Android Studio, Chrome, CocoaPods, etc.)
    2. If you encounter the "Bad CPU type in executable" error with ``flutter doctor``, maybe this would help
    3. If you have trouble installing Cocoapods with ruby, try installing with ```brew install cocoapods```
  3. Pull the repo
  4. Once ``flutter doctor`` yields no error, proceed with the following steps in https://flutter.dev/docs/get-started/editor to build and run the app

    1. You need to be in the ``dev-mobile`` directory in order to run ``flutter run``
    2. If you get a BUILD FAILED error of "No file or variants found for asset: assets/mobile_secrets.json", you need to create such json file. The contents of this json file can be found in the DIAPER Confidential box (ask Liz for access) under "mobile secrets". 

Uploading to TestFlight

You will first need to open the workspace (frontend-mobile/dev-mobile/ios/Runner.xcworkspace) in Xcode. 

Here are two very helpful and detailed guides. 

  1. From flutter
  2. This Medium post has some more screenshots that you may find useful to refer to

You may find them confusing, and indeed not all sections in the tutorials are relevant. The only necessary steps are:

  1. Modify the project settings
  2. Execute each step under the section "Submit App to TestFlight for the First time" in the Medium post.

Once the app has been uploaded, go to App Store Connect and log in, you can find the new build (may take a while after uploading from Xcode) as in the screenshot. 


  • No labels