Skip to content

Commit

Permalink
Merge pull request #401 from thomaskioko/fix-ios-snapshot-tests
Browse files Browse the repository at this point in the history
Fix iOS Snapshot Tests.
  • Loading branch information
thomaskioko authored Jan 20, 2025
2 parents 1087c00 + ecff026 commit 6aded56
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ jobs:
path: ./**/build/reports/tests/

build-ios:
runs-on: macos-14
runs-on: macos-15
timeout-minutes: 60
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
Expand Down Expand Up @@ -339,7 +339,7 @@ jobs:
fastlane/logs
ios-snapshot-test:
runs-on: macos-14
runs-on: macos-15
timeout-minutes: 60
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
Expand Down
15 changes: 11 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default_platform(:ios)

# Set timeout for xcodebuild commands
TEST_DEVICE = "iPhone 16 Pro (18.0)"
TEST_DEVICE = "iPhone 16 Pro"

platform :ios do

Expand All @@ -24,7 +24,7 @@ platform :ios do
device: TEST_DEVICE,
clean: true,
result_bundle: true,
xcargs: "-retry-tests-on-failure",
xcargs: "-retry-tests-on-failure -skipPackagePluginValidation",
number_of_retries: 2,
fail_build: true,
derived_data_path: "derived_data"
Expand All @@ -37,7 +37,7 @@ platform :ios do
device: TEST_DEVICE,
clean: true,
result_bundle: true,
xcargs: "-retry-tests-on-failure",
xcargs: "-retry-tests-on-failure -skipPackagePluginValidation",
number_of_retries: 2,
fail_build: true,
derived_data_path: "derived_data"
Expand Down Expand Up @@ -65,7 +65,14 @@ platform :ios do
clean: true,
skip_package_ipa: true,
skip_archive: true,
skip_codesigning: true
skip_codesigning: true,
export_method: "development",
export_options: {
method: "development",
signingStyle: "automatic",
compileBitcode: false,
provisioningProfiles: {}
}
)
end

Expand Down
4 changes: 2 additions & 2 deletions ios/Modules/SwiftUIComponents/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "42a086182681cf661f5c47c9b7dc3931de18c6d7",
"version" : "1.17.6"
"revision" : "2e6a85b73fc14e27d7542165ae73b1a10516ca9a",
"version" : "1.17.7"
}
},
{
Expand Down

0 comments on commit 6aded56

Please sign in to comment.