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 Lazar-Gabriel · May 31, 2015 at 12:15 PM · iosxcodeadmob

Admob iOS integration with Xcode Version 6.3

Hi, i'm trying to implement Admob ads in my Unity3d game.

I followed all the installations rules found here: https://github.com/googleads/googleads-mobile-plugins/blob/master/unity/README.md

Everything worked perfect until the 3rd step: Set Enable Modules (C and Objective-C) to Yes in Build Settings.

I wasn't able to find "Enable Modules" in Xcode. I searched on google and i found out that "with the new Xcode update you don't have to enable modules because they are enabled automatically". Another thing that i wasn't able to was to: " From the Xcode project navigator, right-click on the project, and choose Add Files To "" " because i wasn't able to find "Add Files To"" ". So i tried to build the game, and here comes the problem. I get like 50 errors. I attached a screenshot.

I tried to find this on google and all i found is for older Xcode versions. (and something with # instead of @ at imports but it doesn't work, or i don't know where should i use @ and where should i use #) I saw that you can set modules enabled in AppleLLMV 6.0 but i have 6.1.

I'm using Version 6.3 (6D570). I tried with Xcode 5.1, 6.3,1, 6.3.2, 6.2 and i can't find modules in build settings.

Thank you for reading this and trying to help me ! alt text

screen-shot-2015-05-31-at-123655-am.png (137.4 kB)
Comment
Add comment · Show 2
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 alonsoGarrote · Jun 12, 2015 at 04:15 PM 0
Share

Hi there Lazar Gabriel, could you find a solution? , I have the same problem, one option might be to change manually @import for #import, but adding the exact .h file, this way I could get rid of many errors, but not all. What did you do?

avatar image Lazar-Gabriel · Jun 14, 2015 at 11:15 AM 0
Share

Hello Alonso ! I wasn't able to find the problem. I've tried to change @import to #import too. I installed Xcode versions 5.1,6.0,6.1,6.3 and i couldn't find "enable modules" ... So i stopped trying to use Admob. If you will find the answer please send a message here. :D

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by alonsoGarrote · Jun 14, 2015 at 04:51 PM

Hi there, I managed to get rid of those errors, although I still have some due to Facebook integración. First, you add files to proyect like on this tutorial:

link text

link text

You have to add GoogleMobileAds.framework which you found here:

link text

This will ad the required libraries to proyect, Now you have to change each: @import GoogleMobileAds; for #import

 @import Foundation:
 for
 #import <Foundation/Foundation.h>
 

You have to do this also for UIKit and Core I think?, you can find those lines at the beginning of each .mm or .h file that is giving you the errors. Each time you make a change to a file and press PLAY you can see how errors decreases. Hope it helps,

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

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

How do I remove Google Plus from iOS Build only? 1 Answer

UIWebView still exist in Google Mobile Ads 2 Answers

UnityAds Mediation causing Xcode build to fail 1 Answer

How to fix this problem with xcode? 0 Answers


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