Detecting the use of private APIs

前端 未结 4 933
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 01:58

I\'m being rejected on the App Store for using private instance variables in my app. The ivars I am supposedly using are most definitely not being accessed in my code, but I

4条回答
  •  萌比男神i
    2020-12-16 02:32

    You can use nm to scan for which library uses the ivar in question.

    % nm static_lib.a | grep name_of_ivar
    

    If you get a line, I think with a capital U, with the name of the ivar you probably have a suspect.

提交回复
热议问题