Appstore error: "your app is using the advertising identifier (IDFA)"

Apple’s API check just looks for the API in the executable and assumes it is in use. We utilize that API for unique identifiers, but you may never make the call to get the value and so aren’t using it directly

To get around this issue, in iTunes Connect when you submit, there will be a question of whether you use the advertising identifier. Mark it as Yes. You should then be able to pick a reason. I believe you can choose to pick none of the reasons if you are not actively getting that id. You will still need to select the last box which certifies you aren’t doing anything beyond the limited use (which will be the case).

Unfortunately, we can’t just provide you a build without that code as you may want to use it in a blueprint and then it won’t be there. If you have source, you can remove the code inside of the call (will need to keep the function itself, but just return 0).

-Pete