Could this pods be the problem?
What determines which pods are displayed and required here?
How can I remove these dependencies on Unity Ads and mediation? I have already completely removed Unity Ads from the project.
In case there is some weird dependencies appear in Podfile generated by Unity build iOS:
Check and remove junks: Recheck all project if there is any mistake or remaining junk, unexpected, forgotten remove dependencies. If there are any, just remove them.
Restart Editor: After make sure all dependencies clean, but Unity still generate iOS project with incorrect dependencies in Podfile, we should restart Unity and clean rebuild the project, because the configs can be cache in the current opening session and make the generate build unsync and incorrect with the project state.