Can Swift Package Manager emit compiler warnings for changed symbols?

When Apple renames or deprecates an API's symbol, Xcode will emit a helpful compiler warning and suggest renaming it. Is it possible to do this for my own Swift Packages?

Not part of SPM, but are you perhaps looking for the @available attribute?

Thanks for the reply. This will tell you if the symbol is unavailable for the platform but won't tell about a symbol rename or suggest a fix.

Isn't that what the renamed and message properties in @available are for? Sorry if I am misunderstanding something.

2 Likes

Brilliant! OK I had no idea about this property. Thank you so much. This will help me a lot.