Xcode7にアップデートしてから、GameCenterのスコア送信ができません。
(ログイン、リーダーボードや達成項目は閲覧できます。)
ログには"no bundle for bundleID: (null)"と出ていますが、
Bundle IDは設定済みで、コードも以前スコア送信できていたものと全く同じものを使っています。
どうすれば解決できるでしょうか?
よろしくお願い致します。
※スコア送信時のコードです
Objective
1 2#import <UIKit/UIKit.h> 3#import <GameKit/GameKit.h> 4#import <Foundation/Foundation.h> 5#import <CoreGraphics/CoreGraphics.h> 6#import <QuartzCore/QuartzCore.h> 7#import <Social/Social.h> 8 9-(void)score{ 10 if ([GKLocalPlayer localPlayer].isAuthenticated) { 11 GKScore* score = [[GKScore alloc] initWithLeaderboardIdentifier:@"achievement"]; 12 13 score.value = 100.0; 14 [GKScore reportScores:@[score] withCompletionHandler:^(NSError *error) { 15 if (error) { 16 // エラーの場合 17 } 18 }]; 19 } 20 21}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。