Xcode build fails with 'UnityAds/UADSBanner.h' file not found
See original GitHub issueEnvironment
How do you use Sentry? Sentry SaaS
Which SDK and version? sentry-unity v0.8.0
Steps to Reproduce
- Create a core 2D Unity project
- Add package UnityAds v4.0.0 (also v3.7.5 will repro the issue)
- (optional) Add package UnityAds iOS 14 Support v1.2.0
- Add package Unity-Sentry v0.8.0 via git url
Expected Result
Project will build ok in xcode. Project will build ok in unity cloud build for ios (using xcode).
Actual Result
Xcode build fails. Unity cloud build fails for ios.
Error message:
/Libraries/com.unity.ads/Plugins/iOS/UnityBannerUnityWrapper.m:1:9: 'UnityAds/UADSBanner.h' file not found

Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
'UnityAds/UnityAds.h' file not found
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.
Read more >unity game engine - A header file is not found in Xcode
Try this: Navigate to Build Phases, expand Compile Sources, delete file it says it's missing, add it back and then build the project...
Read more >Unable to build project in Xcode 1…
Downloaded Xcode 14.3 this morning and it will not build the project. It fails building the CocoaPods project with this error:.
Read more >Xcode 10: third-party: 'config.h' file not found · Issue #14382
After upgrading from 0.44.3 -> 0.45.0, XCode no longer builds for me with the following error: Lexical or Preprocessor Issue 'config.h' file ......
Read more >iOS Build Troubleshooting - Visual Studio App Center
No Xcode scheme is found; My iOS builds fail with "clang: error: linker command failed with exit code 1"; iOS signing issues explained ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Turns out you were completely right, @CodinRonin. We were overwriting the build property here: https://github.com/getsentry/sentry-unity/blob/913b665403cf8bfbdb98ab74901300f94e166e71/src/Sentry.Unity.Editor.iOS/SentryXcodeProject.cs#L72 #466 aims to fix that and 0.8.1 should include it.
Check the build steps. I’ve had a similar issue with integrating sentry and another third party sdk was having the same error - headers missing. The culprit turned out to be that the ios postprocessing step that sentry does overrides the FRAMEWORK_SEARCH_PATH param that was already set by the other framework.
sentry ios postprocess sentryXcodeProject.AddSentryFramework()