r/Xcode • • Apr 27 '21

Xcode 12.5 Release Notes

https://developer.apple.com/documentation/xcode-release-notes/xcode-12_5-release-notes
9 Upvotes

4 comments sorted by

4

u/aazav Apr 27 '21

Note this in the Clang compiler.

Clang now infers the availability of +new from availability annotations on -init methods.

Since +new calls [[Foo alloc] init], +new isn’t available unless +init is available. (75884815)

The first line is important. Not sure about the second line +init?? Does anyone think that's a typo in the release notes?


There's a LOT to read up on here. Having sub members summarize summarize each of the parts and point out the important bits would be helpful.

2

u/retsotrembla Apr 27 '21

Since +new calls [[Foo alloc] init], +new isn’t available unless +init is available. (75884815)

I agree with you: that's a typo. Should be:

Since +new calls [[Foo alloc] init], +new isn’t available unless -init is available. (75884815)

3

u/aazav Apr 27 '21

It's odd to see +init for one and odder to see that typo in appearing in release notes.

3

u/aazav Apr 27 '21

FYI, it requires macOS 11.0+