Skip to content

Conversation

@finestructure
Copy link
Contributor

This makes the project build on macOS 13 Ventura with Xcode 15.0b1. Tests also pass (same OS version) with Xcode 14.3.1, which seems a bit odd since there were snapshot diffs. I didn't go back and test main with Xcode 14.3.1 but I believe it would mean main wouldn't pass with Xcode 13.4.1 on macOS 13 Ventura 🤷‍♂️

Not sure if this is useful at this stage but since we use snapshot testing in SPI-Server and it failed the build due to these errors, I thought I'd start the discussion :)

#if os(macOS)
import AppKit
import Cocoa
import QuartzCore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are warnings only with Xcode 15. Bit odd that they show up given that Cocoa is there. Perhaps a b1 issue only?

/// A snapshot strategy for comparing bezier paths based on pixel equality.
///
/// - Parameter numberFormatter: The number formatter used for formatting points.
@available(macOS 11.0, *)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These two availability attributes are the only ones truly required to fix the build with Xcode 15.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a baffling diff, not sure why that comes out so differently - nor how that passes with Xcode 13.4.1 after the change.

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks! Some of the artifacts are puzzling but will investigate outside of merging.

@stephencelis stephencelis merged commit dc46eeb into pointfreeco:main Jun 15, 2023
@finestructure finestructure deleted the support-for-xcode-15b1 branch June 16, 2023 08:21
isismsilva referenced this pull request in powerhome/playbook-swift Aug 17, 2023
#116)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[pointfreeco/swift-snapshot-testing](https://togithub.com/pointfreeco/swift-snapshot-testing)
| patch | `from: "1.11.0"` -> `from: "1.11.1"` |

---

### Release Notes

<details>
<summary>pointfreeco/swift-snapshot-testing
(pointfreeco/swift-snapshot-testing)</summary>

###
[`v1.11.1`](https://togithub.com/pointfreeco/swift-snapshot-testing/releases/tag/1.11.1)

[Compare
Source](https://togithub.com/pointfreeco/swift-snapshot-testing/compare/1.11.0...1.11.1)

#### What's Changed

- Fixed: Xcode 15 support (thanks
[@&#8203;finestructure](https://togithub.com/finestructure),
[https://github.com/pointfreeco/swift-snapshot-testing/pull/737](https://togithub.com/pointfreeco/swift-snapshot-testing/pull/737)).
- Infrastructure: Add PreviewSnapshots to README "Plug-ins" (thanks
[@&#8203;jflan-dd](https://togithub.com/jflan-dd),
[https://github.com/pointfreeco/swift-snapshot-testing/pull/696](https://togithub.com/pointfreeco/swift-snapshot-testing/pull/696))

**Full Changelog**:
pointfreeco/swift-snapshot-testing@1.11.0...1.11.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/powerhome/PlaybookSwift).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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