Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add newer iOS versions to MJGAvailability.h #13

Conversation

gabrielmaldi
Copy link

Hey, thanks for creating MJGAvailability.h! I've been using it for a while now.

I added iOS 8 and iOS 9 (and minor versions too) so that newer APIs also get detected.

gabrielmaldi pushed a commit to gabrielmaldi/MJGFoundation that referenced this pull request Nov 12, 2015
gabrielmaldi added a commit to gabrielmaldi/MJGFoundation that referenced this pull request Nov 12, 2015
@warpling
Copy link

++

@kenji21
Copy link

kenji21 commented Jan 28, 2016

Xcode 7.3 make this prefixed header changes obsolete by adding -Wpartial-availability flags.

@gabrielmaldi
Copy link
Author

@kenji21 you're right. Xcode 7.3 now supports adding

WARNING_CFLAGS = (
  "-Wpartial-availability"
);

to buildSettings in project.pbxproj, which generates this kind of warnings:

'UIActivityTypeAirDrop' is partial: introduced in iOS 7.0

@warpling
Copy link

Oh beautiful! This should be posted everywhere!

@mattjgalloway
Copy link
Owner

Also, see Infer's new check:
http://fbinfer.com/docs/linters-bug-types.html#UNAVAILABLE_API_IN_SUPPORTED_IOS_SDK

Closing this out as there's multiple options for this now, and MJGAvailability is not the right solution any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants