XCode 调试器无法帮助查找仅设备问题
所以,我有一个 iOS 选项卡式应用程序(在商店中免费使用 [http://itunes.com/apps /iphoundyou])。一个选项卡是一个分组表格视图,组数(1 或 2)取决于 Web 服务返回的某些 JSON。 JSON 有效且简单。处理它似乎很容易,并且在模拟器中运行时,行为符合预期。然而,我刚刚发现,当在设备上运行时,如果需要两部分反应......它会崩溃。
“好吧”我想“我只需连接我的设备,启动调试器,复制崩溃,然后找出哪里有错误”
但是,当我这样做时,我得到了我能想到的最无益的响应:
< img src="https://i.sstatic.net/et80e.png" alt="调试器而不是调试">
那么,鉴于它在模拟器中工作,是否有关于如何追踪该缺陷的任何建议? 数组中的项目数”
tableview 的代码没什么特别的,大意是“如果此 JSON 键存在,则节数=2...该节的行数等于 JSON 中另一个 注意:我最近在启动应用程序时开始看到大约十几个这样的内容: 无法读取未知加载命令0x25
无法读取未知加载命令 0x26
非常感谢。
So, I have an iOS tabbed app (live and free in the store [http://itunes.com/apps/iphoundyou]). One tab is a grouped tableview, with the number of groups (1 or 2) dependent on some JSON that a web service returns. The JSON is valid and straightforward. Handling it seems to be easy, and, when run in the simulator, behaves as expected. However, I just found that when run on the device, if the two section reaction is needed...it crashes.
"ok" I thought "I'll just hook up my device, launch the debugger, replicate the crash, and figure out where I have a bug"
However, when I did that, I get the most unhelpful response I could expect:
So, given that it works in the simulator, is there any suggestions as to how else to track down the flaw? The code for the tableview is nothing special, along the lines of "if this JSON key exists, number of sections=2...with the number of rows of that section equal to the number of items in another array within the JSON"
Another note: I recently started seeing a dozen or so of these when launching an app:unable to read unknown load command 0x25
unable to read unknown load command 0x26
Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我而言,事实证明这只是我自己的错误:我更新了我的设备操作系统,但没有该 SDK(我在更新 XCode 方面落后了)
In my case it turned out that it was just my own error: I'd updated my device OS but didn't have that SDK (I was behind in updating XCode)