pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.72k stars 565 forks source link

Cannot use Snapshot Testing in Xcode 15 #744

Closed fluecke closed 1 year ago

fluecke commented 1 year ago

Describe the bug When using Snapshot Testing in Xcode 15b2, errors occur in Snapshot Testing's extension of NSBezierPath, stating curveTo is only available on macOS 11 and later.

To Reproduce Use Snapshot Testing in Xcode 15b2.

Expected behavior Tests should still build.

Screenshots Screenshot 2023-06-28 at 14 41 21

Environment

Additional context I assume this is because of faulty @available(iOS 11.0, *) annotations. Since NSBezierPath.swift is only used on macOS this annotation does not have any effect there. I will gladly fix this and open a PR if this is not intentional.

maximkrouk commented 1 year ago

Same issue

fluecke commented 1 year ago

Sorry, there must have been something wrong on my end. This is obviously already fixed with dc46eeb

maximkrouk commented 1 year ago

@fluecke Yeah, seems like it was fixed in dc46eeb, but there is no release yet, so the problem is not on your end, guys should release 1.11.1 🌚

stephencelis commented 1 year ago

@maximkrouk Done, sorry for the delay!

brzzdev commented 1 year ago

Cheers. I can go back to Xcode 15 now 😅

fluecke commented 1 year ago

@stephencelis no worries, thanks for your work!