Building google play game services on iOS

Hello,

At the very beginning I want to say, sorry if it is obvious, but I’m totally new to iOS development.

I want to build with the specified plugin ( GitHub - playgameservices/play-games-plugin-for-unity: Google Play Games plugin for Unity ) for iOS, but I encounter a problem: “gpg/ios_support.h file not found”. I guess the problem is with libraries and including them to xcode, but I don’t really know how to do this. In the plugin how-to it stands, that I should download:

  • GoogleOpenSource.framework
  • GooglePlus.bundle
  • GooglePlus.framework
  • GooglePlayGames.bundle
  • gpg.framework

And I did that. Now how do I include this? I’ve included it all by adding to “General/Linked Frameworks and Libraries” but I guess that while frameworks are ok to add there, bundles should be added somewhere else. Am I right? How should I setup this?

Thank you!

Anybody? A link to appropriate tutorial would be appreciated as well.

So, because I get no answer, please at least tell me two things:

  • How to add .bundle files (where)?
  • Is gpg.framework the same thing as GooglePlayGames.framework?

Follow the instruction on that GitHub:

iOS Setup
To configure your Unity game to run with Google Play Games on iOS, download the Games C++ SDK and the Google+ iOS SDK, which are available from our downloads page. Unpack the downloads into a directory of your choice. The necessary bundles and frameworks are:

  • GoogleOpenSource.framework
  • GooglePlus.bundle
  • GooglePlus.framework
  • GooglePlayGames.bundle
  • gpg.framework

Next, open the iOS build settings dialog. To do so, click File | Build Settings, select the iOS platform, and click Player Settings. Find the Bundle Identifier setting and enter your bundle identifier there.

Next, click the *_File | Play Games - iOS *_setup menu item. This will display the iOS setup screen, where you must input:

All of these settings must match exactly the values you used when setting up your client ID on the Developer Console previously.

When ready, click the Setup button to finish the configuration process.

Important: If you ever change your bundle ID, you must perform the iOS setup again in order to update the necessary files where this information gets replicated.

And now its deprecated :smile: