How to detect & avoid the use of private APIs in third party libraries

…衆ロ難τιáo~ 提交于 2019-11-30 03:57:26

You could try running nm on the object files instead of the linked executable:

nm -g -j *.o  | sort | uniq

The objects should be in the build/<app>.build/*/<app>.build/Objects-normal sub-directory.

You're seeing a reference to AudioServicesPlaySystemSound because one of the functions you did call in turn calls AudioServicesPlaySystemSound.

Objective C calls won't generally show up in nm dumps, you'll need to use otool for that:

otool -ov <object file>

Use this dev tool, App Scanner. It scans your .app file for private API methods. A future release will also check for private API instance variables.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!