sindresorhus / Defaults

💾 Swifty and modern UserDefaults
https://swiftpackageindex.com/sindresorhus/Defaults/documentation/defaults
MIT License
1.97k stars 117 forks source link

Replace standard library primary associated types with conformance #114

Closed hank121314 closed 1 year ago

hank121314 commented 1 year ago

Summary

Xcode 14 has the macOS 12.3 SDK, where this standard library does not support primary associated types.

Reference: https://forums.swift.org/t/xcode-14-rc-cannot-specialize-protocol-type/60171/22

Thanks

Thanks for your code review 😄 !

sindresorhus commented 1 year ago

Yeah, I assumed I wouldn't do another release until Xcode 14.1 is out, which would contain the macOS 13 SDK. It should be within the next 2-3 weeks.

I can merge this if we need to do a release before then though.

hank121314 commented 1 year ago

Yeah, I assumed I wouldn't do another release until Xcode 14.1 is out, which would contain the macOS 13 SDK. It should be within the next 2-3 weeks.

Got it! Many thanks for the explanation!

I can merge this if we need to do a release before then though.

I am trying to fix #101. Since that bug is not that critical, is it worth doing a release?

sindresorhus commented 1 year ago

Closing as Xcode 14.1 RC is out and final will be out in a few days.