Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 14 #432

Merged
merged 17 commits into from
Feb 23, 2023
Merged

Xcode 14 #432

merged 17 commits into from
Feb 23, 2023

Conversation

watt
Copy link
Collaborator

@watt watt commented Feb 22, 2023

This PR updates Blueprint to build on Xcode 14 and Swift 5.7. It's mostly CI config.

Updating SwiftFormat picked up a few new linting changes.

xcversion is being sunset and does not support Xcode 14. Replaced it with xcodes.

There's a new entry in the snapshot test matrix for iOS 16.2. Also deleted the images from iOS 13 & 14 which are now unused.


strategy:
fail-fast: false # Don’t fail-fast so that we get all snapshot test changes
matrix:
include:
- sdk: "14.5"
destination: platform=iOS Simulator,OS=14.5,name=iPhone 8
destination: platform=iOS Simulator,OS=14.5,name=iPad (8th generation)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installing iOS 14.5 with xcodes doesn't create an iPhone 8 sim for some reason, so I just picked another 2x device.

@@ -43,7 +47,7 @@ jobs:
- name: Package snapshot changes
if: ${{ failure() }}
run: |
git ls-files -mo BlueprintUICommonControls/Tests/Sources/ReferenceImages | xargs tar -cvf snapshot_changes_${{ matrix.sdk }}.tar
git ls-files -mo BlueprintUICommonControls/Tests/Sources/Resources/ReferenceImages | xargs tar -cvf snapshot_changes_${{ matrix.sdk }}.tar
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the link to download failed snapshot test images.

@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I committed these schemes to work around a bug in Xcode 14. More details linked from the comment in the gitignore file.

@@ -24,7 +24,7 @@ class PerformancePlayground: XCTestCase {

override func invokeTest() {
// Uncomment this line to run performance metrics, eg in Instruments.app.
super.invokeTest()
// super.invokeTest()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was previously committed accidentally. Disabled again to make the tests run faster.

@watt watt marked this pull request as ready for review February 23, 2023 01:12
@watt watt requested a review from a team as a code owner February 23, 2023 01:12
@watt watt requested a review from bencochran February 23, 2023 01:13
@watt watt merged commit 7c5c6b7 into main Feb 23, 2023
@watt watt deleted the watt/xcode-14 branch February 23, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants