Search Unity

Xcode Build Failed With Unity Ads

Discussion in 'Unity Ads & User Acquisition' started by brodiebrodie, May 30, 2019.

Thread Status:
Not open for further replies.
  1. brodiebrodie

    brodiebrodie

    Joined:
    May 21, 2018
    Posts:
    6
    Please help. I get this error in Xcode:

    #import <UnityAds/UnityMonetization.h>

    #import "UnityJsonAdditions.h"

    #import <il2cpp-api-types.h>

    #import "UnityAdsUtilities.h"

    'UnityAds/UnityMonetization.h' file not found.

    I searched all around this forum and google about this error and people said to make sure you are only using one Unity Ads package. But I am already doing that. In "services" I have unchecked Unity Ads and I am only using the one from the Asset Store. I updated it so I am using the latest version. What else can be done?
    Are there left over files that I need to delete? If so how do I delete them?

    Any help would be appreciated.
     
    liljondr likes this.
  2. fry000

    fry000

    Joined:
    Feb 19, 2014
    Posts:
    3
    Hi brodibrodie,

    Just got the same error. May I know how you managed to fix it?

    Thanks!
     
  3. brodiebrodie

    brodiebrodie

    Joined:
    May 21, 2018
    Posts:
    6
    You need to delete all the assets relating to unity ads in your folder, turn off unity ads in services, delete unity ads from the package manager, and then reimport from the asset store.
     
    Gilbert977 and liljondr like this.
Thread Status:
Not open for further replies.