Search Unity

Resolved UADSBanner.h not found in Xcode build

Discussion in 'Unity Ads & User Acquisition' started by Ohyouknow, Dec 21, 2022.

  1. Ohyouknow

    Ohyouknow

    Joined:
    Oct 23, 2013
    Posts:
    121
    Hi all,

    Is anyone else having this issue?

    I build out using unity 2020.3.38f1 successfully with Unity Ads SDK 4.3.0 (tried them all) and I keep getting a building failure in Xcode saying "UADSBanner.h not found." I've never encountered this issue before, and its only happening for iOS. I downloaded ads from package manager, and I'm not using any mediation or other ads, just Unity Ads.

    I tried manually adding the header plugin, but it still gave the error or it would find new errors like "UnityMonetization.h not found." I've tried unity versions 2021 and 2022, all with the same issue.

    How can I fix this?
     
    Last edited: Dec 21, 2022
  2. Ohyouknow

    Ohyouknow

    Joined:
    Oct 23, 2013
    Posts:
    121
    UPDATE:

    Easy Fix- make sure you don't have duplicate plugins or headers in your project. For me, I had to go to Plugins>iOS>Plugins>iOS and then delete any unity ad related plugins/headers. Once I removed all of those, I imported Unity Ads SDK and had a successful Xcode build.