iphone - 设备上的调试问题

发布于 2024-09-19 16:40:52 字数 651 浏览 4 评论 0原文

当我在模拟器中运行我的应用程序时,一切都运行良好。简直不能再甜了! :p

但是,当我更改为在设备(ipod touch)上进行调试时,一切都开始变得混乱,没有任何原因。

应用程序打开几秒钟后(它将工作大约 10 秒钟),它会意外退出。 XCode 控制台没有给出任何解释(没有 EXC_BAD_ACCESS 或任何东西 - 应用程序只是退出),除了告诉我正在调试的程序没有运行

拔掉设备并再次运行应用程序会导致应用程序完美运行 - 直到我到达某个部分,它会变得很有趣 - 停滞和挂起 - 并且会崩溃。崩溃报告没有说任何有趣的事情,除了:

Backtrace not available

Unknown thread crashed with unknown flavor: 5, state_count: 1

偶尔它会按规定工作(应用程序应该从互联网上下载视频,将其保存到 iPhone 上的文件中,然后播放它 - 当它检查其存在时),直到您开始播放视频时,视频持续约 8 秒,并且只是黑屏。

我的问题是我完全不知道从哪里开始调试!当我在设备上运行调试时,它不会向控制台输出 NSLog 任何内容! :(

有什么想法从哪里开始或者为什么会发生这种情况吗?

谢谢 托马斯

When I run my application in the simulator everything works perfectly. It couldn't be any more sweet! :p

However when I change to debugging on a device (ipod touch) everything starts going haywire, with NO cause.

After a few seconds of the application being open (it will work for about 10s) it quits unexpectedly. XCode console gives no explaination (no EXC_BAD_ACCESS or anything - the app just quits) except to tell me that The Program being debugged is not being run.

Unplugging the device and running the app again results in the application running perfectly - until I get to a certain part where it will go funny - stalling and hanging - and will crash. The crash report says nothing interesting except:

Backtrace not available

Unknown thread crashed with unknown flavor: 5, state_count: 1

Occationally it will work as prescribed (the app is supposed to download a video off the internet, save it to a file on the iphone, and then play it - when it has checked for its existance), until you come to play the video when the video lasts for about 8 seconds and is just a black screen.

My problem is that I have absolutely NO IDEA where to start debugging this! When I run the debug on the device it doesn't NSLog anything to the console! :(

Any ideas where to start or why this is happening?

Thanks
Thomas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烂人 2024-09-26 16:40:52

检查:

您的应用程序未在模拟器中运行。为了安全起见,完全退出模拟器。

验证是否在下拉列表中选择了“调试”配置,而不是“分发”(或其他配置)。

Check:

Your app is not running in the simulator. Just to be safe, entirely quit the simulator.

Verify that Debug configuration is selected in the drop-down, and not Distribution (or something else).

污味仙女 2024-09-26 16:40:52

刚刚重写了课程的部分内容 - 现在似乎工作正常。 :)

Just rewrote parts of the class - seems to work fine now. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文