parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 871 forks source link

Use API Availability Checks instead of PF_UNAVAILABLE_WARNING #1788

Open JohnCaccavale opened 6 months ago

JohnCaccavale commented 6 months ago

Issue Description

Some classes and API are unavailable for all platforms. In some cases, to indicate a particular class is unavailable, various macros are used such as PF_OSX_UNAVAILABLE_WARNING, PF_TV_UNAVAILABLE_WARNING, PF_WATCH_UNAVAILABLE_WARNING, etc.

This unfortunately results in unnecessary warnings in the Xcode Issue Navigator even if a client project makes no use of those API.

Screenshot 2024-05-04 at 5 35 18 PM

Rather than generating these warnings, these macros should be removed in favor of @available API checks.

Steps to reproduce

Actual Outcome

Expected Outcome

Environment

Client

parse-github-assistant[bot] commented 6 months ago

Thanks for opening this issue!