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
0
Question by DTFlip · Mar 12, 2015 at 12:11 AM · iosxcodeadmob

Unity iOS AdMob Xcode Compile Error: Semantic Issue GADUObjectCache.m

Close to being able to compile my Unity iOS project, but AdMob is giving me some problems. Running Xcode 6.1.1 and have the latest AdMob SDK, have all the build settings correct as far as I know and I'm getting the following three errors:

.../AdMob Test Build/Libraries/AdMob/Plugins/iOS/GADUObjectCache.m:25:16: 'release' is unavailable: not available in automatic reference counting mode

.../AdMob Test/AdMob Test Build/Libraries/AdMob/Plugins/iOS/GADUObjectCache.m:25:16: ARC forbids explicit message send of 'release'

...AdMob Test/AdMob Test Build/Libraries/AdMob/Plugins/iOS/GADUObjectCache.m:26:10: ARC forbids explicit message send of 'dealloc'

All three of these errors link me to these two lines of code:

   [_references release];
   [super dealloc];

I'm not an iOS Xcode developer and don't have any idea what to do to resolve this. Tips?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by SashaSK8 · Mar 16, 2015 at 03:58 PM

Just faced the same problem. To fix this you need to manually disable ARC for AdMob plugin. In xcode go to Build Phases -> Compile Sources and set flag -fno-objc-arc on all "GAD" files (double click and paste), like this http://i.imgur.com/qhhiYkv.png

also you can do this in unity as answered here http://answers.unity3d.com/questions/888319/ios-disable-arc-on-xcode-projects.html

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
avatar image
0

Answer by Rhiojin · Mar 13, 2015 at 10:58 AM

[_references release], [super dealloc] and ARC refer to memory management methods of objects in OOP in Objective C. With the latest version of iOS "ARC" (Automatic Reference Counting) was introduced as a streamlined method of managing object in memory. Previously in ObjC you have manually handle all references to class objects by allocating the memory and then releasing it via [alloc] [release] and [super dealloc] calls.

With ARC the only call you are allowed to use is the [alloc] call. This means that you should simply comment out "[_references release]" and [super dealloc] as well.

Which version of the Admobs SDK are you using? admobSDK 7.0 has a fancy new framework for streamlined purposes. The fact that they would miss something so important seems very odd.

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

23 People are following this question.

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

Related Questions

Unity 4.7 Admob iOS link error 0 Answers

Unity iOS Build Bitcode Issue 1 Answer

admob unity plugin ios Undefined symbols for architecture arm64: 1 Answer

Admob on IOS not working 1 Answer

Interstitial pause game on Android but not on iOS? 5 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