Skip to content

Building source code with Xcode

Raul Metsma edited this page May 19, 2025 · 13 revisions

Before building the source code, please check the requirements: Requirements to use RIA DigiDoc

This project needs Homebrew to be installed on user computer. If you don't have Homebrew installed in your machine, or are using older version of Homebrew, you can find the installation instructions on Homebrew website: https://brew.sh

Project also includes Firebase Crashlytics integration. To setup Firebase Crashlytics, please follow Steps 1-3 on Firebase Documentation webpage. GoogleServices-Info.plist file must be placed in XcodeRootProject/MoppApp folder.

Once you have Homebrew installed, you need to install swift-sh, that this project requires.

  1. In terminal navigate to MoppApp folder in project.
  2. Run command "brew install mxcl/made/swift-sh" to install Swift-sh
  3. To validate signatures in offline mode, eu-lotl.xml and EE.xml files are bundled in "MoppApp/MoppApp/tslFiles.bundle" file. You can manually update TSL files by downloading the latest TSL files:
       1. https://ec.europa.eu/tools/lotl/eu-lotl.xml -> Rename file to "eu-lotl.xml"
       2. https://sr.riik.ee/tsl/estonian-tsl.xml -> Rename file to "EE.xml"
       3. Move these files to "MoppApp/MoppApp/tslFiles.bundle"

Lastly in order for the build to succeed your Apple developer account should be added to Riigi Infosüsteemi Amet development team and the same account added to Xcode.

NOTE: A workaround to build without being in the Riigi Infosüsteemi Amet development team is to give MoppApp targets (MoppApp, MoppAppTestEnv, shareExtension) a unique bundle identifier

Clone this wiki locally