How to find non-public or deprecated APIs used in a library

After I added the USB HID function to my Mac program, it failed to pass Apple's review. The reviewer replied that four non-public or deprecated APIs were used.

··· • _IOHIDEventGetFloatValue

• _IOHIDEventSystemClientCreate

• _IOHIDEventSystemClientSetMatching

• _IOHIDServiceClientCopyEvent ···

The program used the HidAPI library, the open source address is: https://github.com/libusb/hidapi

All interactions with HID are completed through the HidAPI library, but I checked the source code of the HidAPI library, and the above APIs were not used

At the same time, I used Xcode's Instruments tool to monitor the calls of the app during runtime, but no calls to the above APIs were found in System Trace, CPU Profiler, or Timer Profiler

However, Apple's review still replied that the above APIs were used, and the USB HID function is very important. Is there any way to check where the library or program uses the above non-public or deprecated APIs?

How to find non-public or deprecated APIs used in a library
 
 
Q