This is the Mozilla repository for the FYP Reporter iOS application.
git clone git@github.com:MozillaFoundation/tiktok-reporter-app-ios.git
cd my-project
Go into GleanManager.swift and comment out the content of each function. (just the content, not the signature), then build the project.
This is done because of how Glean works. It has a build time script that generates the Swift code needed for using the framework, but, because this is your first time running it means you don't have anything generated, and so, the build will fail before Glean has a chance to generate it's files. (i.e. GleanManager uses Glean files before they are generated).
After a succesfull build, check that you have the Generated/Metrics.swift
file both in TikTok Reporter and in TikTok ReporterShare folders.
If not:
Right click on TikTok Reporter and then select Add files to (...). Select the Generated folder and add it to the project
Un-comment all of the methods in GleanManager.swift (check step 3.)
This step needs to be done only for the first run. After that, you will have your files in Generated/Metrics.swift
.
Error: Build input file cannot be found ...
{Project}/Generated
are present in the project navigator, but are not present in the file system (they show up with a red text).TikTok Reporter
and TikTok ReporterShare
folders and try building the project again.Error: glean_parser fail
.venv/
folder are outdated..venv
folder and build the project again.