Play-games-plugin-for-unity: NO_GPGS Does not work on Unity IOS

Created on 14 Nov 2017  Â·  4Comments  Â·  Source: playgameservices/play-games-plugin-for-unity

Since, GPGS will not be supporting on IOS soon, I decided to use NO_GPGS on my IOS build.

I add NO_GPGS under Scripting Define Symbols but still in Xcode I have GooglePlayServices which causes #1459

Am I doing something wrong with NO_GPGS? Or is there a problem :(

I am using Unity 2017.1.1f

ekran resmi 2017-11-14 23 03 57

Most helpful comment

This change worked for me. For both GPG files exist in iOS folder change their Platform to Android only. Then after it will not create any barrier in xCode project compilation.
Here is reference image for more clearance of others:

gpg_only_enable_android_flag

So two steps to perform:

  1. NO_GPGS flag in scripting defined symbols and
  2. Un-tick iOS platform for GPG files exist in Plugin->iOS folder.

All 4 comments

Any solution for this ?? Because me too stuck into the same problem.
This kind of error coming in xCode so I can't able to compile it.

gpgbug

Unity Version 2017.1.2p2
xCode 9.1

This change worked for me. For both GPG files exist in iOS folder change their Platform to Android only. Then after it will not create any barrier in xCode project compilation.
Here is reference image for more clearance of others:

gpg_only_enable_android_flag

So two steps to perform:

  1. NO_GPGS flag in scripting defined symbols and
  2. Un-tick iOS platform for GPG files exist in Plugin->iOS folder.

In your project search for "GPGSDependencies". Open it and remove this part below and than save it. It should work.

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


@siddharth3322
@Gerald123

Both solutions work! Thank you guys.

Was this page helpful?
0 / 5 - 0 ratings