'UnityAds/UnityAds.h' file not found

[xcode] /BUILD_PATH/username.projectname.default-ios/temp.Xm54PL/Classes/UnityAds/UnityAdsUnityWrapper.h:10:9: fatal error: 'UnityAds/UnityAds.h' file not found
[xcode] 1 error generated.
[xcode] ** BUILD FAILED **
! build of 'default-ios' failed. compile failed

Builds just fine for Android in Cloud build.
Building it locally on XCode 7.3.1 works.

Unity 5.3.2f. Using Unity Ads as service.

Any hints how to make it work? Or just forget using Cloud build for iOs and just build it locally?

Just to make sure, are you using Unity Ads from Asset Store or enabled from within the Services window in editor (as described on http://docs.unity3d.com/Manual/UnityAdsHowTo.html)?

Usually we’ve seen this issue only with Asset Store version, but would be fixed when upgrading to most recent version. Let me know if it’s actually engine integrated version.

Thanks,
Rasmus

Unity 5.3.2f. Using Unity Ads as service.

It can be that I first installed it from Asset Store, and then reverted back to (presumably) clean state with Git Desktop, and then activated/installed it from the Services-tab.

All the folders under /plugins (Android and iOS) are empty. Working as intended or should I remove the plugins-folder?

Can you check you don’t have files in “Standard Assets/Editor/UnityAds” folder as well. You can see which files was in asset store package at Unity Asset Store - The Best Assets for Game Making (scroll down to “Package Contents” part)

-Rasmus

The folders and *.meta-files exists. Otherwise the folders are empty. Trying to re-import package from store shows only the files to be added (all of them) as new. Including the both .h files (UnityAds.h and UnityAdsUnityWrapper.h).

I’ll PM you, so we can get into details on this.

I’m having this issue in 5.3.6f1 with the Ads service and an iOS Cloud build. Was this able to be resolved for Kalle, and if so, what was the fix?

 [xcode] /BUILD_PATH/xxxxx/temp.gOLz1r/Classes/UnityAds/UnityAdsUnityWrapper.h:10:9: fatal error: 'UnityAds/UnityAds.h' file not found
 [xcode] 1 error generated.

I’m also getting this same error in Xcode and I’m using Unity version : 2019.3.7f1 please help.

Same here with 2020.2.2f1 and Unity Ads 3.6.1

Looks like your iOS builds aren’t properly pulling in the Ads SDK when building the XCode project. Reports of this in the past have usually been fixed by reinstalling the SDK.

You should be able to do this either by disabling and re-enabling ads in the services window or by removing any ads files and reinstalling (preferably from the package manager, but the asset store version should work as well)

1 Like

I did something similar to this and it seemed to work. Kind of annoying I didn’t really know what exactly fixed it though.

I am having this same issue. I have updated Ads and In App Purchasing to the latest version, tried removing and re-importing those packages. These steps have not solved the problem. I am using xcode 10, unity 2019.3.7f1, and a mac with high sierra.