MH175
1
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?
1 Like
smkuehnhold
(Samuel Kuehnhold)
2
Not part of SPM, but are you perhaps looking for the @available attribute?
MH175
3
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.
smkuehnhold
(Samuel Kuehnhold)
4
Isn't that what the renamed and message properties in @available are for? Sorry if I am misunderstanding something.
2 Likes
MH175
5
Brilliant! OK I had no idea about this property. Thank you so much. This will help me a lot.