xcode 程序接收信号:“0”。数据格式化程序暂时不可用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2813454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:21:02  来源:igfitidea点击:

Program received signal: “0”. Data Formatters temporarily unavailable

iphonexcodeipad

提问by Neal L

I'm working on an iPad app that downloads a CSV file from the web and parses the file into a NSMutableArray. (I'm using the code from http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-datasuggested in another post).

我正在开发一个 iPad 应用程序,该应用程序从网络下载 CSV 文件并将该文件解析为 NSMutableArray。(我正在使用另一篇文章中建议的http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data 中的代码)。

When I run in the simulator, everything works perfectly, but when I run on the device, I get the following error:

当我在模拟器中运行时,一切正常,但是当我在设备上运行时,出现以下错误:

Program received signal:  “0”.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
(gdb)

Does anyone know why this would pop up? Google isn't helping me here... :(

有谁知道为什么会弹出这个?谷歌在这里没有帮助我...... :(

Thanks!

谢谢!

回答by Jasarien

Signal 0 usually (but not always) points to your app being killed for using too much memory.

信号 0 通常(但不总是)表示您的应用程序因使用过多内存而被终止。

Your view controllers should received the memory warning method in a low memory situation, and it is up to you to free up some memory when they arrive. If you don't free any memory and continue to use more memory the app will be forcibly quit.

在内存不足的情况下,您的视图控制器应该收到内存警告方法,并且在它们到达时释放一些内存取决于您。如果您不释放任何内存并继续使用更多内存,该应用程序将被强制退出。

The data formatters message in the console relates to the debugger. For some reason the debugger was unable to load the data formatters used to represent the data in the application. probably because the phone didn't have any memory left for them.

控制台中的数据格式化程序消息与调试器相关。由于某种原因,调试器无法加载用于表示应用程序中数据的数据格式化程序。可能是因为手机没有为他们留下任何内存。