• 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 /
  • Help Room /
avatar image
1
Question by andreshvs · Mar 30, 2016 at 01:57 AM · crashiphoneupgradeleaderboardsocial

iOS crash on Social Leaderboard LoadScores after upgrading to Unity5

Hello,

I have the following code that I use to setup leaderboards on my game:

 public void Setup(Dictionary<string, IUserProfile> friendsHashTable)
     {
         ILeaderboard leaderboard leaderboard = SocialManager.GetSocialPlatform().CreateLeaderboard();
         t$$anonymous$$s.friendsHashTable = null == friendsHashTable? t$$anonymous$$s.friendsHashTable : friendsHashTable;
         
         if(!IsCompleted())
         {
             return;
         }
 
         leaderboard.SetUserFilter(GetFriendsFilterList());
         leaderboard.LoadScores(OnScoresLoaded);
     }

It used to work fine on 4.6.4 and it works fine on Android as well for 5.3.4f1; however when I run it on iOS it crashes with the following error message:

 2016-03-29 18:34:46.506 bith[4820:60b] -[GKLeaderboard initWithPlayers:]: unrecognized selector sent to instance 0x16f63af0
 2016-03-29 18:34:46.726 bith[4820:60b] Uncaught exception: NSInvalidArgumentException: -[GKLeaderboard initWithPlayers:]: unrecognized selector sent to instance 0x16f63af0
 (
     0   CoreFoundation                      0x2f2a0ee3 <redacted> + 154
     1   libobjc.A.dylib                     0x39a3bce7 objc_exception_throw + 38
     2   CoreFoundation                      0x2f2a47f7 <redacted> + 202
     3   CoreFoundation                      0x2f2a30f7 <redacted> + 706
     4   CoreFoundation                      0x2f1f2058 _CF_forwarding_prep_0 + 24
     5   bith                                0x01770608 ___ZN10GameCenter13GcLeaderboard6CreateEP9MonoArray_block_invoke + 432
     6   GameCenterFoundation                0x2fe5aca1 <redacted> + 12
     7   libdispatch.dylib                   0x39f24d53 <redacted> + 10
     8   libdispatch.dylib                   0x39f24d3f <redacted> + 22
     9   libdispatch.dylib                   0x39f276c3 _dispatch_main_queue_callback_4CF + 278
     10  CoreFoundation                      0x2f26b641 <redacted> + 8
     11  CoreFoundation                      0x2f269f0d <redacted> + 1308
     12  CoreFoundation                      0x2f1d4729 CFRunLoopRunSpecific + 524
     13  CoreFoundation                      0x2f1d450b CFRunLoopRunInMode + 106
     14  Grap$$anonymous$$csServices                    0x341436d3 GSEventRunModal + 138
     15  UIKit                               0x31b35871 UIApplicationMain + 1136
     16  bith                                0x00023d94 main + 164
     17  libdyld.dylib                       0x39f39ab7 <redacted> + 2
 )

From testing the t$$anonymous$$s seems to be the call that causes the issue:

 leaderboard.LoadScores(OnScoresLoaded);

Has anyone come across t$$anonymous$$s before? Or does anyone know what may be causing it?

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 andreshvs · Mar 30, 2016 at 06:07 PM 0
Share
avatar image nikomikulicic andreshvs · Jun 18, 2016 at 04:23 PM 0
Share
avatar image andreshvs nikomikulicic · Jan 18, 2017 at 08:42 PM 0
Share

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

54 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

IOS app crashes after splash screen 1 Answer

IOS CRASH?! 0 Answers

Unity crashes whenever I try to modify a prefab 1 Answer

Unity crashed, looking to upgrate my PC 0 Answers

Simple Leaderboad 1 Answer


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