简体   繁体   English

在iPhone vs模拟器上运行应用程序时,应用程序崩溃

[英]App crashes when running app on iphone vs simulator

When I run my app in the 6.1 simulator, everything works fine. 当我在6.1仿真器中运行我的应用程序时,一切正常。 When I test run it on my iPhone 5 IOS 6.1.3, everything in the app works like a charm, except the following piece of code: 当我在iPhone 5 IOS 6.1.3上测试运行它时,应用程序中的所有内容都像一个超级按钮,但以下代码除外:

someText = [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 0)];

This line of code appears in a section where I calculate statistics using data in a database. 此行代码显示在我使用数据库中的数据计算统计信息的部分中。

Could anyone point me in some direction because I cannot understand why just this line of code does not work. 谁能指出我的方向,因为我不明白为什么仅这一行代码行不通。 I have the same line of code in another part of this section and that breaks too. 在本节的另一部分中,我有相同的代码行,这也很麻烦。 Numerical (int, double) does not have the same problem. 数值(整数,双精度)不存在相同的问题。

Thanks! 谢谢!

Try uninstalling the app and reinstalling! 尝试卸载该应用程序并重新安装! May be it has a old database schema. 可能它具有旧的数据库架构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM