Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Refactor MTE-2010 [v123] XCode 15.1 and iOS 17.2 upgrade #3946

Merged
merged 8 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ We also tag recommended bugs for contributions with [help wanted](https://github
Main Branch
----------------

This branch works with Xcode 15.0.1 and supports iOS 13.0 and newer.
This branch works with Xcode 15.1 and supports iOS 13.0 and newer.

Pull requests should be submitted with `main` as the base branch.

Build Instructions
------------------

1. Install Xcode 15.0.1 [Xcode developer tools](https://developer.apple.com/xcode/downloads/) from Apple.
1. Install Xcode 15.1 [Xcode developer tools](https://developer.apple.com/xcode/downloads/) from Apple.
2. Clone the repository:

```shell
Expand Down
48 changes: 24 additions & 24 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ workflows:
echo "-- build-for-testing --"
mkdir DerivedData
#xcodebuild -resolvePackageDependencies -onlyUsePackageVersionsFromResolvedFile
xcodebuild "-project" "/Users/vagrant/git/focus-ios/Blockzilla.xcodeproj" "-scheme" "Focus" -configuration "FocusDebug" "CODE_SIGNING_ALLOWED=NO" "-destination" "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" "COMPILER_INDEX_STORE_ENABLE=NO" "build-for-testing" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "CODE_SIGNING_ALLOWED=NO" -derivedDataPath "/Users/vagrant/git/DerivedData" | xcpretty | tee xcodebuild_test.log
xcodebuild "-project" "/Users/vagrant/git/focus-ios/Blockzilla.xcodeproj" "-scheme" "Focus" -configuration "FocusDebug" "CODE_SIGNING_ALLOWED=NO" "-destination" "platform=iOS Simulator,name=iPhone 15,OS=17.2" "COMPILER_INDEX_STORE_ENABLE=NO" "build-for-testing" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "CODE_SIGNING_ALLOWED=NO" -derivedDataPath "/Users/vagrant/git/DerivedData" | xcpretty | tee xcodebuild_test.log
- [email protected]:
title: Build for Testing Klar
inputs:
- content: |
set -euxo pipefail
echo "-- build-for-testing --"
xcodebuild "-project" "/Users/vagrant/git/focus-ios/Blockzilla.xcodeproj" "-scheme" "Klar" -configuration "KlarDebug" "CODE_SIGNING_ALLOWED=NO" "-destination" "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" "COMPILER_INDEX_STORE_ENABLE=NO" "build-for-testing" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "CODE_SIGNING_ALLOWED=NO" -derivedDataPath "/Users/vagrant/git/DerivedData" | xcpretty | tee xcodebuild_test.log
xcodebuild "-project" "/Users/vagrant/git/focus-ios/Blockzilla.xcodeproj" "-scheme" "Klar" -configuration "KlarDebug" "CODE_SIGNING_ALLOWED=NO" "-destination" "platform=iOS Simulator,name=iPhone 15,OS=17.2" "COMPILER_INDEX_STORE_ENABLE=NO" "build-for-testing" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "CODE_SIGNING_ALLOWED=NO" -derivedDataPath "/Users/vagrant/git/DerivedData" | xcpretty | tee xcodebuild_test.log
- [email protected]:
title: Compress Derived Data
is_always_run: true
Expand All @@ -91,9 +91,9 @@ workflows:
"${BITRISE_SOURCE_DIR}/focus-ios/Blockzilla.xcodeproj" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/FocusDebug-iphonesimulator/Firefox\ Focus.app" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/FocusDebug-iphonesimulator/XCUITest-Runner.app" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_FullFunctionalTests_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_SmokeTest_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_UnitTests_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_FullFunctionalTests_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_SmokeTest_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Focus_UnitTests_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/focus-ios/focus-ios-tests/SmokeTest.xctestplan" \
"$BITRISE_SOURCE_DIR/focus-ios/focus-ios-tests/FullFunctionalTests.xctestplan" \
"$BITRISE_SOURCE_DIR/focus-ios/xcodebuild.log" \
Expand All @@ -104,9 +104,9 @@ workflows:
"$BITRISE_SOURCE_DIR/focus-ios/focus-ios-tests/ClientTests" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/KlarDebug-iphonesimulator/Firefox\ Klar.app" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/KlarDebug-iphonesimulator/XCUITest-Runner.app" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_FullFunctionalTests_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_SmokeTest_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_UnitTests_iphonesimulator17.0-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_FullFunctionalTests_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_SmokeTest_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/Klar_UnitTests_iphonesimulator17.2-arm64.xctestrun" \
"$BITRISE_SOURCE_DIR/DerivedData/Build/Products/KlarDebug-iphonesimulator/" \
- deploy-to-bitrise-io@2:
inputs:
Expand All @@ -119,7 +119,7 @@ workflows:
- webhook_url: "$SLACK_WEBHOOK"
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core

ui_test_focus:
Expand Down Expand Up @@ -171,7 +171,7 @@ workflows:
mv ./Users/vagrant/git/* .
ls -la
echo "-- test-without-building --"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Focus_SmokeTest_iphonesimulator17.0-arm64.xctestrun"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.2" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Focus_SmokeTest_iphonesimulator17.2-arm64.xctestrun"
- custom-test-results-export@0:
inputs:
- search_pattern: "$BITRISE_SOURCE_DIR/xcodebuild.xcresult"
Expand All @@ -189,7 +189,7 @@ workflows:

meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core

unit_test_klar:
Expand Down Expand Up @@ -220,7 +220,7 @@ workflows:
mv ./Users/vagrant/git/* .
ls -la
echo "-- test-without-building --"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Klar_UnitTests_iphonesimulator17.0-arm64.xctestrun"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.2" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Klar_UnitTests_iphonesimulator17.2-arm64.xctestrun"
- custom-test-results-export@0:
inputs:
- search_pattern: "$BITRISE_SOURCE_DIR/xcodebuild.xcresult"
Expand All @@ -234,7 +234,7 @@ workflows:
- webhook_url: "$SLACK_WEBHOOK"
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core

unit_test_focus:
Expand Down Expand Up @@ -265,7 +265,7 @@ workflows:
mv ./Users/vagrant/git/* .
ls -la
echo "-- test-without-building --"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Focus_UnitTests_iphonesimulator17.0-arm64.xctestrun"
xcodebuild -resultBundlePath "xcodebuild.xcresult" -derivedDataPath "/Users/vagrant/git/DerivedData" -destination "platform=iOS Simulator,name=iPhone 15,OS=17.2" test-without-building -xctestrun "/Users/vagrant/git/DerivedData/Build/Products/Focus_UnitTests_iphonesimulator17.2-arm64.xctestrun"
- custom-test-results-export@0:
inputs:
- search_pattern: "$BITRISE_SOURCE_DIR/xcodebuild.xcresult"
Expand All @@ -280,7 +280,7 @@ workflows:

meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core


Expand All @@ -299,7 +299,7 @@ workflows:
title: ContentBlockerGen
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x


set-project-version:
Expand All @@ -326,7 +326,7 @@ workflows:
title: Set OpenInFocus version numbers
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x


configure-nimbus:
Expand All @@ -343,7 +343,7 @@ workflows:
/usr/libexec/PlistBuddy -c "Set :NimbusAppChannel ${NIMBUS_APP_CHANNEL}" focus-ios/Blockzilla/Info.plist
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x


configure-sentry:
Expand All @@ -357,7 +357,7 @@ workflows:
/usr/libexec/PlistBuddy -c "Add :SentryDSN string ${SENTRY_DSN}" focus-ios/Blockzilla/Info.plist
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x


set-default-browser-entitlement:
Expand All @@ -372,7 +372,7 @@ workflows:
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.web-browser bool true" focus-ios/Klar.entitlements
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x


release:
Expand Down Expand Up @@ -419,7 +419,7 @@ workflows:
--org mozilla --project klar-ios "$BITRISE_DSYM_DIR_PATH"
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core
before_run:
- clone-and-build-dependencies
Expand Down Expand Up @@ -490,7 +490,7 @@ workflows:
- deploy_path: artifacts/
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core
L10nBuild:
steps:
Expand Down Expand Up @@ -532,7 +532,7 @@ workflows:
- is_compress: 'true'
meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core

app:
Expand All @@ -546,5 +546,5 @@ app:

meta:
bitrise.io:
stack: osx-xcode-15.0.x
stack: osx-xcode-15.1.x
machine_type_id: g2-m1.8core
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class SearchProviderTest: BaseTestCase {
}

private func changeSearchProvider(provider: String) {
dismissURLBarFocused()
waitForExistence(app.buttons["HomeView.settingsButton"], timeout: 10)
// Set search engine to Google
app.buttons["HomeView.settingsButton"].tap()
Expand Down