Prime31 – __gplaySetReceivedDataCallback error on Xcode

__gplaySetReceivedDataCallback = Prime31 Google Play Game Services Plugin causing problems when trying to compile on Xcode?

Are you trying to fix this error below?

Undefined symbols for architecture armv7:
__gplaySetReceivedDataCallback“, referenced from:
RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If you’re like me and have only the Google Play Game Services Plugin for Android and not for iOS, don’t worry: it’s a stupid thing with a stupid fix:

Change this code #if UNITY_IPHONE || UNITY_ANDROID in your GPGMultiplayerManager.cs class by removing the UNITY_IPHONE || part and you’ll be just fine.

Thank you Prime31 🙂 You could have detailed this shit better* on your docs but thankfully you have a support forum and I found the fix there 😉

* Actually there’s something about this, but not exactly about this here

Join the conversation

6 Comments

  1. THANK YOU ! Finally I found the answer to that DAMN bug.
    I particularly agree with you on the “THANK YOU PRIME31”. Thank you for all the time lost and frustration acquired…

    This post is faved and your blog too 😉

    C U

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.