sebyddd/SDVersion

3.3 causes warning because of availability

Closed this issue · 4 comments

Availability is meant to annotate a method is available since certain version or deprecate since certain version.
If anyone want to annotate a device's availability, they should define their own method or macro, otherwise compile the project will cause warnings.

Yep, this is a side effect of a PR I made—I’ll send a new PR today that will silence these warnings when building SDVersion. In your own code, there’s a #pragma you can use to silence availability warnings if you need to use the constants for old versions.

@sbhhbs – I reverted the latest commit as a temporary solution.
@SlaunchaMan – Looking forward to that PR!

Fixed in cbd8ae9 / Pod version 3.5