Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by jomatos · Jan 26, 2015 at 08:16 PM · xcodeads

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

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mikeysee · Feb 11, 2015 at 08:11 AM 0
Share

Did you solve this?

avatar image NobleAnarchist · Mar 09, 2015 at 05:18 PM 0
Share

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.

avatar image Trungdv · Mar 23, 2015 at 04:06 PM 0
Share

I have same issue. Do anyone know how to solve it?

2 Replies

· Add your reply
  • Sort: 
avatar image
5

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!

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Laumania · Apr 19, 2016 at 08:47 PM 0
Share

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 :(

avatar image amanullahusmani Laumania · Jun 26, 2016 at 11:17 AM 0
Share

@Laumania glad to know it worked. But I wonder unity still isn't able to fix this?

avatar image prakashangappan · Oct 28, 2016 at 07:16 AM 0
Share

Worked for me too. Thanks a lot!

avatar image
0

Answer by Ranaumair · Mar 01, 2018 at 07:49 AM

Sorry i cant understand how perform it .. can you sent me screen shot ..??

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Interstitial pause game on Android but not on iOS? 5 Answers

Unity Ads error in Xcode? 1 Answer

Unity ads working on a direct Xcode build, but not when I download the app through App Store 0 Answers

Prime31 Social Breaking Unity Ads 0 Answers

How to integrate AdMob with iOS? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges