search

Home  >  Q&A  >  body text

ios - 代码混淆私有函数怎么做的?

网上有混淆方法名的方法,但是没有混淆私有函数的方法。
比喻代码: 怎么混淆

  1. Class LSApplicationWorkspace_class =
    objc_getClass("LSApplicationWorkspace");

     NSObject* workspace =

    [LSApplicationWorkspace_class
    performSelector:@selector(defaultWorkspace)];

阿神阿神2889 days ago506

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 17:38:07

    I seem to have seen one on git, and we have used it. At that time, we were trying to determine whether other apps were installed on the phone. It was possible before iOS9, but now it has become a private API. My colleague searched for a long time on stackoverflow and found a foreign one. My friend, I have it on git but I have forgotten the address. His implementation seems to be the same as the confusion you mentioned

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:38:07

    It seems to be implemented using runtime
    I have seen it before. Have to look for

    reply
    0
  • Cancelreply