简体   繁体   English

模拟器有效,设备不起作用?

[英]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.

相关问题 适用于模拟器,不适用于 iPhone 设备 - Works on Simulator, doesn't work on the iPhone device NSTimer 和 NSDate 倒计时时钟在模拟器中工作,但不在设备上 - NSTimer and NSDate countdown clock works in the simulator but doesn't on the device 通知未显示/未在Simulator中安排,但在设备中正常工作Simulator 4.3上有问题吗? - notifications doesn't show/ doesn't scheduled in Simulator but works in device Problem on Simulator 4.3? 在Simulator上运行,在设备上失败:错误:WatchKit App不包含任何WatchKit扩展 - Works on Simulator, fails on device: error: WatchKit App doesn't contain any WatchKit Extensions AVPlayer 在模拟器上播放但不在真实设备上播放 - AVPlayer plays on simulator but doesn't on a real device 设备不起作用,模拟器起作用 - Device doesn't work, simulator does sqlite可以在模拟器上运行,但不能在设备上运行 - sqlite works on simulator, but not on device AFJSONRequestOperation在模拟器上起作用,但在设备上不起作用 - AFJSONRequestOperation works on simulator but not on device AVSpeechSynthesizer 可在模拟器上运行,但不能在设备上运行 - AVSpeechSynthesizer works on simulator but not on device UIButton可在模拟器上使用,但不能在设备上使用 - UIButton works on simulator but not on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM