Play-games-plugin-for-unity: Hitting [xcode] ld: library not found for -lGooglePlayGames

Created on 25 Oct 2017  路  4Comments  路  Source: playgameservices/play-games-plugin-for-unity

Hello,
We have ran into this build issue on xcode and have set NO_GPGS flag in the define symbols for Unity.

Has anyone encountered this and or/has solution ?
Thanks

Most helpful comment

Find GPGS_Dependencies.xml and remove:

<!-- iOS Cocoapod dependencies can be specified by each iosPod element. -->
  <iosPods>
    <!-- iosPod supports the following attributes:
         * "name" (required)
           Name of the Cocoapod.
         * "version" (optional)
           Cocoapod version specification for the named pod.
           If this is not specified the latest version is used.
         * "bitcodeEnabled" (optional)
           Whether this Cocoapod requires bitcode to be enabled in Unity's
           generated Xcode project.  This is "true" by default.
         * "minTargetSdk" (optional)
           The minimum iOS SDK required by this Cocoapod. -->
    <iosPod name="GooglePlayGames" version="5.1.2" bitcodeEnabled="false"
            minTargetSdk="6.0">
      <!-- Set of source URIs to search for this Cocoapod spec.
           By default Cocoapods will attempt to fetch the pod specs from:
           * $HOME/.cocoapods/repos
           * https://github.com/CocoaPods/Specs
           -->
      <sources>
        <source>https://github.com/CocoaPods/Specs</source>
      </sources>
    </iosPod>
  </iosPods>

This will keep cocoapods from including the dependency in Xcode.

All 4 comments

Find GPGS_Dependencies.xml and remove:

<!-- iOS Cocoapod dependencies can be specified by each iosPod element. -->
  <iosPods>
    <!-- iosPod supports the following attributes:
         * "name" (required)
           Name of the Cocoapod.
         * "version" (optional)
           Cocoapod version specification for the named pod.
           If this is not specified the latest version is used.
         * "bitcodeEnabled" (optional)
           Whether this Cocoapod requires bitcode to be enabled in Unity's
           generated Xcode project.  This is "true" by default.
         * "minTargetSdk" (optional)
           The minimum iOS SDK required by this Cocoapod. -->
    <iosPod name="GooglePlayGames" version="5.1.2" bitcodeEnabled="false"
            minTargetSdk="6.0">
      <!-- Set of source URIs to search for this Cocoapod spec.
           By default Cocoapods will attempt to fetch the pod specs from:
           * $HOME/.cocoapods/repos
           * https://github.com/CocoaPods/Specs
           -->
      <sources>
        <source>https://github.com/CocoaPods/Specs</source>
      </sources>
    </iosPod>
  </iosPods>

This will keep cocoapods from including the dependency in Xcode.

Thanks @retNull for the solution. Feel free to submit a pull request commenting out or removing this section. NO_GPGS is intended to remove all GPGS code and dependencies from the project. Just as a reminder, iOS support is deprecated and will be removed soon: https://android-developers.googleblog.com/2017/04/focusing-our-google-play-games-services.html

Hi, I dont have GPGS_Dependencies.xml file anywhere. Does someone have another solution? Thanks
EDIT: Oh, I found it. Its not GPGS_Dependencies.xml, its GPGSDependencies.xml

This is fixed in 0.9.50, there is no more iOS code added from this plugin when building for iOS.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lolmourne picture lolmourne  路  3Comments

SQuirkster picture SQuirkster  路  3Comments

Only4Gamers picture Only4Gamers  路  5Comments

YogendraChauhan picture YogendraChauhan  路  4Comments

hippogamesunity picture hippogamesunity  路  5Comments