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

Handling availability #5

Open
nvzqz opened this issue Sep 26, 2020 · 0 comments
Open

Handling availability #5

nvzqz opened this issue Sep 26, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nvzqz
Copy link
Owner

nvzqz commented Sep 26, 2020

  • Handle class availability.

    Currently, unavailable OBJC_CLASS_$_* symbols cause a load-time linker error.

    This can be checked by either:

    • Weak linking symbols.

    • Getting the class via objc_getClass.

  • Handle method availability.

    Currently, unavailable methods cause an exception.

    This can be checked by either:

    • Checking respondsToSelector: (high runtime cost each time).

    • Checking the OS version against the availability (one time cost).

@nvzqz nvzqz added enhancement New feature or request help wanted Extra attention is needed labels Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant