[英]Simulator Works, Device Doesn't?
I have found out my issue on the device not working and simulator working. 我发现我的设备无法运行且模拟器无法运行的问题。 When i comment out this part, it works:
当我注释掉这部分时,它起作用:
[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
So it looks like this: 所以看起来像这样:
//[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
it works perfectly when I comment out that part above, but when I click the open feint button, I get this error: 当我注释掉上面的那部分时,它工作得很好,但是当我单击打开伪装按钮时,出现此错误:
EXC_BAD_ACCESS.
I replace My key with my app Key in open feint and my secret with my app's secret code. 我将我的密钥替换为我的应用程序的开放式伪密钥,并将我的秘密替换为应用程序的密码。
When I click the open feint button, it goes to a file and highlights this part in GREEN: 当我单击打开伪装按钮时,它将转到一个文件,并以绿色突出显示此部分:
[inv invoke]; EXC_BAD_ACCESS
Then in my console when i Step into: 然后,当我进入控制台时,在控制台中:
2012-04-28 08:53:12.076 BalloonsPop[500:707] Application windows are expected to have a root view controller at the end of application launch Single stepping until exit from function +[OpenFeint(Private) launchDashboardWithDelegate:tabControllerName:andControllers:], which has no line number information.
2012-04-28 08:53:12.076 BalloonsPop [500:707]应用程序窗口应在应用程序启动结束时具有根视图控制器。单步执行,直到从函数+ [OpenFeint(Private)launchDashboardWithDelegate:tabControllerName:andControllers退出: ],没有行号信息。 warning: Remote failure reply: E37
警告:远程故障回复:E37
Any Suggestions to try? 有什么建议可以尝试吗? Thanks A lot!
非常感谢!
I am not sure if you do, but I would declare it like this: 我不确定是否可以,但是我会这样声明:
OpenFeint *openfeint = [OpenFeint initializeWithProductKey:@"MYKEY"
andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings
andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];
I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.