game-center

Xcode Linker Error?

放肆的年华 提交于 2019-12-07 22:58:43
问题 I get this error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_GameCenterManager", referenced from: objc-class-ref in BT_viewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) My Info: Ld /Users/Raoul/Library/Developer/Xcode/DerivedData/latintogopro-fbrntyvxhakjwlfaxcckdbvsvcli/Build/Products/Debug-iphonesimulator/LatinToGo.app/LatinToGo normal i386 cd /Users/Raoul/Downloads/latintogopro_v15_iOS

Why does Social.localUser.Authenticate lead to crash when there is no internet connection in Unity app?

三世轮回 提交于 2019-12-07 22:28:30
问题 With an internet connection Everything works flawlessly. There is no memory problem leading to crash. With no internet connection The app proceeds to the menu screen, where it eventually crashes because it is out of memory. I have concluded that the problem lies in the following line of code Social.localUser.Authenticate When I comment out the above line, the memory problem goes away when there is no internet connection. Here is my relevant code void Start () { Social.localUser.Authenticate

Game Center integration with Sprite Kit?

爷,独闯天下 提交于 2019-12-07 18:20:02
问题 How can I use Game Center or the GameKit Framework with a Sprite Kit Xcode template? In Sprite kit, it uses Scenes; but normally to view the leaderboards for example you need to "presentModalViewController" but that is not possible in SKView. And how can I authenticate the player and all that other fun stuff in iOS 6. Thanks in advance! 回答1: you can authenticate like this [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) { if (error == nil) { static_setEnable(

Check if you've already unlocked an achievement in Game Center/GameKit

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 17:35:27
问题 I've been stumped on this for quite a long time. I understand how to unlock an achievement in Game Center and I even got a whole messaging system working. But I can't figure out how to check if an achievement has already been unlocked :( Apparently this doesn't work: GKAchievement *achievement = [[GKachievement alloc] initWithIdentifier:ident] autorelease]; NSLog(@"%i",achievement.completed); It always traces "0". Unlocking an achievement does work: GKAchievement *achievement = [

Game Center Player Display Name Always “me” in the sandbox

旧街凉风 提交于 2019-12-07 14:39:15
问题 I am using the user's Game Center display name and player ID in order to maintain their profile on my server. When I went to test this, everything appears to execute properly, but the user's display name for my sandbox account shows up as "Me," rather than my display name attached to my account, "Billybobbo." Is this supposed to happen in sandbox mode? Console: 2013-08-31 18:51:37.054 [App Name][53230:907] Player ID: G:1682017882 2013-08-31 18:51:37.065 [App Name][53230:907] Player Display

Odd Game Center behavior?

空扰寡人 提交于 2019-12-07 14:16:40
问题 I'm trying to enable Game Center Leaderboard to my iPad game and I have learned that you need to post more than one score to a leaderboard for the scores to show in the default leaderboard UI. I have two separete accounts that I used to post two different scores to the same leaderboard, but when I call loadScoresWithCompletionHandler I only get one score back (the score for the user I currently are logged in with). Any ideas why? GKLeaderboard *myLB = [[GKLeaderboard alloc] init]; myLB

Retrieving game center achievement by identifier

只谈情不闲聊 提交于 2019-12-07 07:36:28
问题 I have a question related to Game center achievements. Is it possible to retrieve the name/description of an achievement by its identifier? I am trying to avoid hardcoding every identifier with its corresponding name, so is there a solution that can get the name? thanks, Sami 回答1: Of course, that's exactly why you have localization support for achievements (as well as leaderboards) inside iTunes Connect. However, there is no way to ask Game Center about localized info for just one achievement

OSX Game Center: Couldn't communicate with a helper application

不打扰是莪最后的温柔 提交于 2019-12-07 06:53:35
问题 I'm setting up Game Center for my OSX game, but it can't authenticate player with the following error (OSX 10.10 Yosemite): I've got the following setings in iTunesConnect: and XCode: I'll appreciate any ideas how to make it work! 回答1: Solution: This is not documented. I've reported a rdar://23594124 Add this key to the entitlements of the App: com.apple.developer.game-center BOOLEAN = YES This fixes the error. 来源: https://stackoverflow.com/questions/29295423/osx-game-center-couldnt

Swift - Integrate GameCenter to use leaderboards

╄→гoц情女王★ 提交于 2019-12-07 06:35:03
问题 I am making a game in Swift. I want to be able to post the users' score using GameCenter, so that scores from all my users' can be seen. However, I have spent the past day trying to figure out how to do this, but I haven't found any helpful instructions. I am pretty new to iOS programming, and Swift, and of the very little amount of information on this subject, it's all written in Objective-C. Can anyone help me integrate GameCenter into my app, so that I can post users scores to the

Game Center's Auto-match and endTurnWithNextParticipants

让人想犯罪 __ 提交于 2019-12-07 05:25:49
问题 I am developing a turn-based game with two Game Center players, and I want to allow auto-matching. I've read that, for an invitation to be actually sent out to a player, the inviting player must end his/her turn. This means calling this method: - (void)endTurnWithNextParticipants:(NSArray *)nextParticipants turnTimeout:(NSTimeInterval)timeout matchData:(NSData *)matchData completionHandler:(void (^)(NSError *error))completionHandler Now, what I don't understand is the meaning of the