Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO_GPGS Does not work on Unity IOS #2027

Closed
temresen opened this issue Nov 14, 2017 · 4 comments
Closed

NO_GPGS Does not work on Unity IOS #2027

temresen opened this issue Nov 14, 2017 · 4 comments

Comments

@temresen
Copy link

temresen commented Nov 14, 2017

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

@siddharth3322
Copy link

siddharth3322 commented Nov 24, 2017

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

@siddharth3322
Copy link

siddharth3322 commented Nov 26, 2017

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.

@Gerald123
Copy link

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>


@temresen
Copy link
Author

@siddharth3322
@Gerald123

Both solutions work! Thank you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants