How Apple knows you're using the private API

Source: Internet
Author: User
There are about three different ways
  1. Otool-l
    This tool can clearly list all of your linked libraries like Io.kit is not allowed to use
  2. Nm-u

    This tool can clearly list all of your link symbols
    such as the C method OC method

  3. Check for all Selecter strings

Occlass selector is placed in a special area, so you can just use the private API to detect

If you really want to use the private API with runtime to solve


Paste_image.png

API Detection Tool Https://github.com/nomenas/APIChecker

In order to avoid using the private API when writing code, you can determine whether it is private by the following methods

1. ALT + Double-click. What can be found is considered to be public.

2. The metropolis of undocumented is reported warning

How Apple knows you're using the private API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.