Settings -> Privacy -> Advertising -> Reset Advertising Identifier...
Of course you never mentioned Android in your post, but I just want to point out that Android in no way is more hacker-friendly. As soon as you obtain root access half of apps will stop to be feature-complete because Google have SafetyNet and there is no way at all to make your own legit "hacker" apps trusted to use elevated privileges. How is your phone is useful if part of games wont work, streaming wont work, banking apps dont work, etc.
Of course they sell it under sauce of anti-malware and "security", but it's Android have anti-consumer DRM system that make your compromise between useful apps and whatever hacks you wish to apply. So not that much more useful compared to jailbroken iOS.
Of course there is. To circumvent this closed apple-esque bullshit you can just install magisk.
Magisk is never ending cat and mouse game and at any moment Google can just add some hardware-backed privileged rootkit that not going to be easy to bypass. So it's not always usable for every app out there.
The difference is that the good part of the community tries to unlock the platform's true potential instead of chanting "walled garden means safety" and "you don't actually have that use case".
And that part of the community has advanced tremendously. It's in the mindset.