Mani
Mani

Reputation: 1310

How to find out the private API in my Xcode project?

How can identify the private API(Apple Banned API or code). Because I have to validated the app, but not validated. I am getting the error alert(check screenshot). I removed all the "uniqueIdentifier" code. But still not validate the app. In my app having lot of external resources, so that I am not able to identify the correct private API. Please let me know any suggestion for this problem.

enter image description here

Upvotes: 2

Views: 1543

Answers (2)

Mani
Mani

Reputation: 1310

Finally I got the answer for check the "uniqueIdentifier" in the ".a" file. Please check the screenshot.

If you want to check the "uniqueIdentifier" code on the ".a" file. Use this command.

find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep uniqueIdentifier

enter image description here

Upvotes: 1

user523234
user523234

Reputation: 14834

In your case the message indicated that UDID was being accessed. You can do a search for your entire project for:

[[UIDevice currentDevice] uniqueIdentifier];

If your project also included third party static library such as Admob for example, in that case you should get an update from them. Because accessing to UDID has not been allowed since May 1st.

Upvotes: 1

Related Questions