Mobile/Gecko-iOS

From MozillaWiki
< Mobile
Revision as of 15:02, 2 March 2015 by Ted Mielczarek (talk | contribs) (Created page with "= Getting the source = Source is at https://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/ . The changes are on a bookmark called *ios*. I am doing local development...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Getting the source

Source is at https://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/ . The changes are on a bookmark called *ios*. I am doing local development using changeset evolution, so be warned that the changesets in that repository will change over time.

To clone the repo:

hg clone https://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/
hg up ios

To pull the repo into an existing clone:

hg pull -B ios https://hg.mozilla.org/users/tmielczarek_mozilla.com/gecko-ios/
hg up ios

Building

Currently only building for the iOS simulator is working. There is a mozconfig to use in the tree under build/, and then you need to build an embedding app using XCode.

First, build Gecko:

export MOZCONFIG=`pwd`/build/iphone-simulator-mozconfig
./mach build

Next, open embedding/ios/GeckoEmbed/GeckoEmbed.xcodeproj in XCode and select Product -> Build For -> Running. You should then be able to do Product -> Run if the build was successful, and the simulator should open eventually showing mozilla.org.

The XCode project has an external build step to rebuild Gecko using make binaries, so once you've done a full Gecko build you can edit and rebuild from XCode.