Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Resolved Can't build Google Sign In for IOS (Undefined symbol)

Discussion in 'Scripting' started by gorbit99, Jun 29, 2021.

  1. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    Hi!
    We're trying to build the sample application for the GoogleSignIn package (https://github.com/googlesamples/google-signin-unity). But we've hit a roadblock.
    When trying to build the project through Xcode, we get "Undefined symbol", for the following:

    Undefined symbol: _OBJC_CLASS_$_UIActivityIndicatorView
    Undefined symbol: _OBJC_CLASS_$_UIWebView
    Undefined symbol: _UIApplicationDidEnterBackgroundNotification
    and so on.
    We've tried a bunch of different methods found online, but none of them mention errors similar to these and none of them worked. For example we've tried to run the cocoa pods install manually, tried setting the google sign in version to 4.4.0, tried to set some compiler flags, etc.
    We're completely stunned as for what to do. I hope someone can help fix these issues.


    Unity version: 2020.3.5f1
    IOS minimum target version: 11.0
    Xcode version: 12.4
    GoogleSignIn version: 1.0.4
    Cocoapods version: 1.10.1
     
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    That plugin hasn't been updated for almost 3 years. I would not use it. Issues section has many complains about it.
     
  3. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    I see that, but as far as I see there is no other way to get this working. And besides that, what we need it for is quite simple, and the issues on the site don't mention not being able to compile it at all.
    We've got it working under android, the IOS version is the real issue.
     
  4. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    Ok, now it compiles when I set it to use statically linked dependencies
     
  5. bonestudiosm

    bonestudiosm

    Joined:
    Oct 13, 2021
    Posts:
    7
    Hello my friend, I faced the same problem as yours and I searched for a long time to find a solution and finally found a solution and I created a video explaining the steps but in Arabic, you can follow the steps to solve your problem



    cheers :)