Binary deviations due to use of non-public API (google analyttic iOSv2)

I recently had an application rejected due to a reason - Non-public use of the API: applications are not allowed to access the UDID and should not use the uniqueIdentifier UIDevice method. Update your apps and servers to associate users with the vendor or ad IDs introduced in iOS 6.

I used google analytics iOS v2 in this application, does this cause this problem?

+4
source share
6 answers

My application was rejected due to new UDID policies. In my case, I am using AdMob, and the steps to fix this problem are:

  • Update AdMob to the latest version (Google warned me that my application will be rejected if I try to send it after May 1).

  • Go to Xcode> Organizer> Projects> Your project> Delete (Derived data).

  • Product> Clear.

After these steps, I sent my application and now they are waiting for a review (before these steps, Apple rejected my application at the time the download was received).

Hope this helps!

+4
source

And also, if in the code you use

[UIDevice currentDevice].uniqueIdentifier; 

you must chenge to

 // Get UUID value NSUUID *uuid = [NSUUID UUID]; // Convert UUID to string and output result NSLog(@"UUID: %@", [uuid UUIDString]); 

The result looks something like this:

 UUID: A84AFC3C-B3A7-31C7-B3E9-234AF423C6B1 
+2
source

To find out what this method uses, use the terminal and cd in the root directory of the project and run the following command:

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

Then it will tell you what to use with it. Update and / or delete your code and / or any libraries that use it.

+2
source

I had the same problem ... I deleted the library that was giving the problem, in my case the adMob library. But pay attention to checking even inside the folder in which you no longer have the old library, that was my problem. Good luck.

+1
source

For reference, the Google Analytics SDK 2.0b4 and UDID just remove the entire libGoogleAnalytics_debug.a from the project, clean, recompile and submit again.

0
source

You need to replace

 [[UIDevice currentDevice] uniqueIdentifier] 

another way. please refer this url it works for me.

0
source

Source: https://habr.com/ru/post/1479679/


All Articles