- Home /
UnityAds/UnityAds.h file not found in XCode
I'm tring to run my game into Xcode 6.1 and I'm having an issue with UnityAds.
Lexical or Prepocessor Issue
'UnityAds/UnityAds.h' file not found
Was having some trouble with the default "Search Paths" Unity generate and I changes it, so they look like this now:
Framework Search Paths : "$(SRCROOT)/Frameworks"
Header Search Paths: "$(SRCROOT)/Classes"
Library Search Paths: "$(SRCROOT)/Libraries"
If I try to add old paths for UnityAds inside Header and Framework paths I get other 21 Mach-O Linker errors
Original Search Paths looks like this:
"$(SRCROOT)/Frameworks" "$(SRCROOT)/UnityAds" $(PROJECT_DIR)/UnityAds
"$(SRCROOT)/Classes" "$(SRCROOT)/UnityAds”
"$(SRCROOT)/Libraries" $(PROJECT_DIR)/GoogleMobileAdsSdkiOS-6.12.2 $(PROJECT_DIR)/Libraries
I am also having this issue now that I have added Vungle to the project. Funnily, UnityAds.h doesn't even exist on my machine.
Answer by amanullahusmani · May 30, 2015 at 11:28 AM
Though bit late but might be helpful. Just started using Unity Ads.
Remove the UnityAds.framework from the Linked Frameworks and Libraries in General section of Xcode and then re-add UnityAds.framework either by just drag and drop from project hierarchy to Linked Frameworks and Libraries or by + button at end of Linked Frameworks and Libraries.
Hope it helps. Cheers!
This worked for me! Thanks!
I was updating Gamedonia SD$$anonymous$$ to 1.22.0 on Unity3d 5.3.4 and this error happened. I fixed it via this fix, nice!
Sadly, it's something I need to do manually for every iOS build :(
@Laumania glad to know it worked. But I wonder unity still isn't able to fix this?
Answer by Ranaumair · Mar 01, 2018 at 07:49 AM
Sorry i cant understand how perform it .. can you sent me screen shot ..??