有什么方法可以在不使用 IDFA 的情况下为设备生成唯一 ID?
Is there any way to generate an unique ID for device without using IDFA?
我必须为每个设备生成一个唯一的 ID。现在,我用这种方式获取设备的唯一 ID:
let uniqueStr = UIDevice.current.identifierForVendor?.uuidString
但是在 App Store 提交中,出现了这个错误:
Your app is using the Advertising Identifier (IDFA). You must either
provide details about the IDFA usage or remove it from the app and
submit your binary again.
我的应用与广告完全无关。有没有办法在不出现此 IDFA 错误的情况下获取唯一 ID?
当使用 广告标识符 (IDFA) 而不是 identifierForVendor 时,苹果似乎会抛出此错误。
可能有一些第 3 方库正在使用它。您可以从下面的 Whosebug 答案中检查使用 IDFA 的实际原因:
然后,
相应地更新您的图书馆或
您可以在提交应用时select使用 IDFA 选项。
我必须为每个设备生成一个唯一的 ID。现在,我用这种方式获取设备的唯一 ID:
let uniqueStr = UIDevice.current.identifierForVendor?.uuidString
但是在 App Store 提交中,出现了这个错误:
Your app is using the Advertising Identifier (IDFA). You must either provide details about the IDFA usage or remove it from the app and submit your binary again.
我的应用与广告完全无关。有没有办法在不出现此 IDFA 错误的情况下获取唯一 ID?
当使用 广告标识符 (IDFA) 而不是 identifierForVendor 时,苹果似乎会抛出此错误。
可能有一些第 3 方库正在使用它。您可以从下面的 Whosebug 答案中检查使用 IDFA 的实际原因:
然后,
相应地更新您的图书馆或
您可以在提交应用时select使用 IDFA 选项。