Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Eagle_I337 · Apr 20, 2015 at 12:17 AM · iosxcodegamecentergame centerlinker

iOS Gamecenter Apple Mach-O Linker errors in xcode build

I've set up Gamecenter for my app and added GameKit.framework to the libraries and GameCenter to the capabilities in the xcode project. I used Unity's Social API to implement the Achievements and Leaderboard features of GameCenter. When I go to build it in xcode, I am getting 200+ linker errors in the following format:

Undefined symbols for architecture armv7: "_TurnBasedMultiplayerManager_TurnBasedMatchesResponse_Dispose", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_TurnBasedMultiplayerManager_ShowMatchInboxUI", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_TurnBasedMultiplayerManager_Rematch", referenced from: RegisterMonoModules() in RegisterMonoModules.o "_TurnBasedMultiplayerManager_PlayerSelectUIResponse_GetPlayerIds_Length", referenced from: RegisterMonoModules() in RegisterMonoModules.o

As far as I can tell, all of them are related to Game Center. By the sheer number of errors, it looks to me like the GameKit.framework is not getting linked properly, but the capabilities page says that it is set up correctly. I've tried re-exporting from Unity and re-importing the GameKit framework, but so far nothing has fixed the issue.

Is there something else I need to import besides the GameKit framework? Is there some linker setting I am missing? Or perhaps some step in the set up that I didn't get?

Thanks!!

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Marc-Uberstein · May 05, 2015 at 02:19 PM 0
Share

Did you get a solution? As far as I know it is definitely the Google Play Services (as someone stated in the answers) - how did you fix this? I am getting the same issue.. after googling a lot I still have no luck..

avatar image Eagle_I337 · May 05, 2015 at 02:25 PM 0
Share

@$$anonymous$$arc I found that I had not updated to the most recent GPGS libraries, so the NO_GPGS directive was not working. If you update to the latest GPGS libraries (download the zip or pull from master), then follow the instructions in the documentation, it should build properly. One thing to note, I believe you have to press enter after adding the NO_GPGS to the defined symbols section, otherwise it will not save your changes. Let me know if that works.

avatar image Marc-Uberstein · May 05, 2015 at 02:37 PM 0
Share

@Eagle_I337 Thanks for the response. I am using the latest GPGS, and I am aware of the NO_GPGS feature. So by adding it I won't have GPGS features in my app? Or I am totally over thinking by now? lol

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bas-Smit · Apr 21, 2015 at 02:23 PM

This is Google play stuff. I'm betting you have a folder called GooglePlayGames?

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eagle_I337 · Apr 21, 2015 at 02:30 PM 0
Share

I do, but I compiled the iOS build with the NO_GPGS flag defined, so I thought the Google Play Games would not be included.

avatar image Bas-Smit · Apr 21, 2015 at 03:03 PM 0
Share

I cant find NO_GPGS anywhere in the google play code, I think thats for a different plugin

avatar image Eagle_I337 · Apr 21, 2015 at 03:06 PM 0
Share

It's something that was added recently. It's mentioned in the 'Excluding all Google Play Services when building for iOS' section in the documentation for the Unity Google Play plugin

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity3d for iOS, a lot of linker errors after upgrading to Unity 4.5.5 1 Answer

GameCenter crash only in release build 1 Answer

Gamecenter achievement already reported 1 Answer

Unity XCode build linker error 0 Answers

ios xcode 8 build error with google adbmob, GADMAdapterAdColony, ld: symbol(s) not found for architecture arm64 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges