How to detect if any external libraries are calling [UIDevice currentDevice] uniqueIdentifier]?

前端 未结 3 2010
小鲜肉
小鲜肉 2021-02-08 20:56

So, since Apple is now rejecting apps that access UDID, on our company\'s current project, we need to eliminate all APIs that make a call to this property:

[[UID         


        
3条回答
  •  自闭症患者
    2021-02-08 21:19

    It can be difficult to reliably determine if a closed-source library is actually calling a method, but there are some ways you can see if they might be:

    • Using strings to see if "uniqueIdentifier" appears in the library, regardless of how it's used:

      $ strings libFoo.a | grep uniqueIdentifier

    • Using nm or otool (see this answer)

    • Using otx (see this answer)

    These approaches can help turn up potential invocations that setting a breakpoint may miss.

提交回复
热议问题