Building firebox for iOS

Ashok
3 min readMar 17, 2023

Mozilla Firefox or simply Firefox is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary — the Mozilla Corporation. It uses the Gecko rendering engine to display web pages, which implements current and anticipated web standards. Using Firefox, you can build browser iOS app.

In this tutorial, I’m going to tell how to do fork the Firefox repo and building Firefox browser for iOS. It’s quite simple when compared to Chromium 😃.

Reference — https://github.com/mozilla-mobile/firefox-ios

Step1 : Clone or Fork repo

You can download the repo from Mozilla github

Github

Step2 : Install Homebrew

You have to install brew. For detailed installation, you can refer https://brew.sh/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update

Step2 : Install Node

After successfull installation of brew, you have to install node. For this, you use this command

brew install node

Step3 : Install Python3

Then, Python3 virtualenv for localization scripts.

pip3 install virtualenv

Step4 : Install Node.js

Finally, you have to install all Node.js dependencies to build user scripts and update content blocker. Go to repo directory and the run this command

sh ./bootstrap.sh

Everything will be set at this stage:

Step5 : Building firebox browser

Select the Fennec target with required device/simulator and run the project. I suggested to use simulator for initial project run.

Common issue on simulator:

I used iPhone 14 plus simulator — iOS 16.2

You may face PhaseScriptExecution failed with a nonzero exit code error on the Storage dependency.

Solution:

Go to Project -> Client -> Excluded architecture -> Fennec -> Add

Any iOS Simulator SDK — arm64

That’s it. Everthing will be smooth from here…

Reach me out here. Cheers🍻

--

--

Ashok

 iOS and Flutter developer @TCS, Chennai. Here to share best practices learned through my experience. Reach me on www.linkedin.com/in/ashok1208