iOS:游戏中心在模拟器上崩溃

Dam*_*ian 7 iphone objective-c gamekit ios game-center

这让我发疯,我只是找不到问题:
我在模拟器上的游戏中心崩溃,在设备上它的工作完美.当我调用以下代码时崩溃:

[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
    if (error) { 
        NSLog(@"An error occured authenticating the local game center player");
        NSLog(@"Error: %@", [error localizedDescription]);      
    }
}];
Run Code Online (Sandbox Code Playgroud)

我已经尝试将部署目标和基本sdk设置为4.3而没有运气.
我已尝试进行呼叫,application:didFinishLaunchingWithOptions:并在玩家点击主屏幕中的"播放"按钮后再进行呼叫.两种情况都是相同的结果.

另外,我没有堆栈跟踪; 它看起来像这样:

0 objc_msgSend
1 < ???? >
Run Code Online (Sandbox Code Playgroud)

我得到了EXC_BAD_ACCESS.

任何想法将不胜感激.
谢谢

Dam*_*ian 7

问题是Other Linker Flags在xcode的' '选项中我-weak_library /usr/lib/libSystem.B.dylib改变了这个以-weak-lSystem解决问题

我在这个问题的评论中发现其他人有同样的问题:iOS 4应用程序在iOS 3.1.3启动时崩溃:未找到符号:__ NSConcreteStackBlock