Skip to content

Instantly share code, notes, and snippets.

@clarmso
Last active September 11, 2025 14:22
Show Gist options
  • Save clarmso/b35844ebb86efa49c1c4b51b6bf0a0e7 to your computer and use it in GitHub Desktop.
Save clarmso/b35844ebb86efa49c1c4b51b6bf0a0e7 to your computer and use it in GitHub Desktop.
Firefox/Focus shortcuts
# xcodebuild
## Git shortcuts
alias gitempty="git commit --allow-empty -m '🈳 Empty commit 🈳'; git push"
git config --global alias.co checkout
## Useful shortcuts for Focus and Firefox
alias bootstrap="sh ./bootstrap.sh firefox ; sh ./bootstrap.sh focus"
alias rmdd="setopt rm_star_silent ; rm -fr ~/Library/Developer/Xcode/DerivedData/* ; unsetopt rm_star_silent"
#alias setLocaleUS="xcrun simctl spawn booted defaults write NSGlobalDomain AppleLanguages -array en ; xcrun simctl spawn booted defaults write NSGlobalDomain AppleLocale -string en_US; xcrun simctl shutdown booted"
alias setLocaleUS="~/bin/setLocaleSimulators.sh"
alias cleansim="xcrun simctl shutdown all ; xcrun simctl erase all"
## Clean Repo. Build Firefox and Focus: buildff, buildfocus, morning
alias buildff="xcodebuild build-for-testing -target Client -scheme Fennec -configuration Fennec_Testing -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0'"
alias buildfocus="xcodebuild build-for-testing -project Blockzilla.xcodeproj -scheme Focus -testPlan SmokeTest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0'"
alias morning="cd ~/workspace/firefox-ios ; git fetch --prune ; git co . ; git co main ; git pull ; rmdd ; cleansim ; bootstrap
#; cd firefox-ios ; buildff ; cd ../focus-ios ; buildfocus ; cd .."
## Unit Tests: utfirefox, utfocus
alias utfirefox="xcodebuild test-without-building -target Client -scheme Fennec -configuration Fennec_Testing -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0'"
alias utfocus="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone Air,OS=26.0' -testPlan UnitTests"
## Firefox/Focus Smoketests: stfirefox, stfocus, fffirefox (15-18), fffocus
alias stfirefox="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 16,OS=26.0' -testPlan Smoketest"
alias stfirefox26="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0' -testPlan Smoketest"
alias stfirefox18="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.6' -testPlan Smoketest"
alias stfirefox17="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' -testPlan Smoketest"
alias stfirefox16="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' -testPlan Smoketest"
alias stfirefox15="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' -testPlan Smoketest"
alias fffirefox="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 16,OS=26.0' -testPlan FullFunctionalTestPlan"
alias fffirefox15="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' -testPlan FullFunctionalTestPlan"
alias fffirefox16="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' -testPlan FullFunctionalTestPlan"
alias fffirefox17="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' -testPlan FullFunctionalTestPlan"
alias fffirefox18="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.6' -testPlan FullFunctionalTestPlan"
alias fffirefox18ipad="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPad (10th generation),OS=18.6' -testPlan FullFunctionalTestPlan"
alias fffirefox26="xcodebuild test-without-building -target Client -scheme Fennec -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0' -testPlan FullFunctionalTestPlan"
alias stfocus="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone Air,OS=26.0' -testPlan SmokeTest"
alias stfocus18="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.6' -testPlan SmokeTest"
alias stfocus17="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' -testPlan SmokeTest"
alias stfocus16="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' -testPlan SmokeTest"
alias stfocus15="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' -testPlan SmokeTest"
alias fffocus="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone Air,OS=26.0' -testPlan FullFunctionalTests"
alias fffocus18="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.6' -testPlan FullFunctionalTests"
alias fffocus17="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' -testPlan FullFunctionalTests"
alias fffocus16="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' -testPlan FullFunctionalTests"
alias fffocus15="xcodebuild test-without-building -scheme Focus -target XCUITest -configuration FocusDebug -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' -testPlan FullFunctionalTests"
## Install Firefox/Focus to simulator
alias installff="xcrun simctl install booted ~/Library/Developer/Xcode/DerivedData/Client-*/Build/Products/Fennec_Testing-iPhoneSimulator/Client.app"
alias installfocus="xcrun simctl install booted ~/Library/Developer/Xcode/DerivedData/Blockzilla-*/Build/Products/FocusDebug-iPhonesimulator/Firefox\ Focus.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment