Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 5c4r3cr0w · May 23, 2016 at 05:50 AM · iosbuildiphoneerror buildlinker

iOS build linking errors

I'm trying to build my project for iOS but I'm getting following errors:

 "_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
       objc-class-ref in GoogleSignIn(GIDRuntimeConfigFetcher.o)
       objc-class-ref in gpg(GPGClearcutLogger.o)
   "_OBJC_CLASS_$_GSDK_GTMOAuth2Keychain", referenced from:
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
   "_OBJC_CLASS_$_GSDK_GTMOAuth2SignIn", referenced from:
       objc-class-ref in GoogleSignIn(GIDAuthentication.o)
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
   "_OBJC_CLASS_$_GSDK_OpenInChromeController", referenced from:
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
   "_OBJC_CLASS_$_GSDK_GTMOAuth2ViewControllerTouch", referenced from:
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
   "_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
       objc-class-ref in gpg(GIPNetworkImage.o)
   "_GSDK_NSClassFromString", referenced from:
       l011 in GoogleSignIn(GIDSignIn.o)
       l059 in GoogleSignIn(GIDSignIn.o)
   "_OBJC_CLASS_$_GSDK_GTMOAuth2Authentication", referenced from:
       objc-class-ref in GoogleSignIn(GIDAuthentication.o)
       objc-class-ref in GoogleSignIn(GIDSignIn.o)
 ld: symbol(s) not found for architecture arm64
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried following things :

  1. Added googleSingin frame work and google open source framework.

  2. made sure all bundles are added in Copy bundle resources

  3. $(inherited) is present in header search paths , framework search paths and library search paths

  4. Enable Bit code is set to "No"

  5. In other linker flags I added flag -ObjC

I'm not able to figure what is it that I'm missing out. Any help regarding this is appreciated.

Thank you.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by 5c4r3cr0w · May 23, 2016 at 02:40 PM

I finally figured it out. I have Gooogle mobile ads plugin and google play game plugins both. I didn't installed cocoa pods and I was adding all frameworks in Xcode. installing cocoa pods did the job :)

Comment
Add comment · Show 7 · 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 Primex · May 26, 2016 at 12:13 AM 0
Share

I have the same problem as you had.

How did you install the pods? I dont even know what they are, but i guess i need them.

Cheers!

avatar image 5c4r3cr0w Primex · May 26, 2016 at 02:18 PM 0
Share

Open ter$$anonymous$$al and fire command : sudo gem install cocoapods

avatar image slashg0 · Dec 14, 2016 at 02:59 PM 0
Share

I have CocoaPods installed. Though Unity hasn't generated a .xcworkspace file, how did installing CocoaPods fix your problem?

avatar image 5c4r3cr0w slashg0 · Dec 15, 2016 at 06:41 AM 0
Share

Well, latest documents says you don't need pods if you are targeting iOS 7 or higher. You need to have google mobile ads SD$$anonymous$$. Here .

And in order to make .xcworkspace file there should be a pod executable. Can you confirm this there is pod file in your project and it's getting executed in postProcess build?

avatar image slashg0 5c4r3cr0w · Dec 15, 2016 at 06:55 AM 0
Share

I'm targeting iOS 9, because some post suggested that.

This is my first ever time with xCode and I'm not too sure of a lot of things. I can confirm that there is a podfile (titled 'Podfile', no extension). I had once tried adding some pods to this file. I can post the Unity generated version of this Podfile that I'm currently using.

How do I check if it is getting executed in postProcess build?

Show more comments
Show more comments

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

62 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 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 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

Distribute terrain in zones 3 Answers

Building for Flash, web player, OSX or PC equals roughly 13mb size, building for iPhone is about 80megs, what gives? 1 Answer

Adding plugins to XCode project from the command line 1 Answer

Unity editor to iOS scaling issue. 1 Answer

Disable JIT compilation in the Editor (Enable Full-AOT mode) 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