苹果公司给出的检测 advertisingIdentifier 的方法

To locate the reference to the advertisingIdentifier selector, please perform these steps to create an .ipa file of your app that matches what you submitted to the App Store:

1. In the Xcode Organizer, instead of Submit to the iOS App Store, do Save for Enterprise or Ad-Hoc Deployment. That will create a local copy of the .ipa file that would be submitted to the App Store.

2. When asked to choose an identity to sign with, select the same distribution identity you use when submitting to the App Store.

3. When asked to save the package, uncheck Save for Enterprise Distribution, then save the .ipa file.

4. Find the .ipa file and change its extension to .zip.

5. Expand the .zip file. That will produce a Payload folder containing your app bundle.

6. Use the strings tool to search for uniqueIdentifier references like this:

   $ strings - -a -arch armv7 "Payload/YourApp.app/YourApp" | grep advertisingIdentifier

where YourApp is the actual name of your app.

原文地址:https://www.cnblogs.com/weiboyuan/p/3585756.html