This is a really weird mistake ...
I am working on an iPhone project using a camera channel and running it through an OpenGL shader to apply effects to it. However, every time I just create new GLfloat code in the code, the debugger freezes at startup ... I cannot copy and paste the text because the whole Xcode hangs, but I put it together with one of the log files:
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".2
The phone did not freeze, because I can press the home button and continue to do other things. However, Xcode 4 is completely frozen with a beach ball running on 99% of the CPU, and I need to force exit and restart it.
However ... It is really strange that I have an iPhone 3GS, and when I take someone on an iPhone 4, it compiles and works fine. When I get back to the iPhone 3GS, it will be perfect for the first time ... After that, it will hang again again.
Perhaps this is what I'm doing, or is this another Xcode 4 error? I wanted to try switching the debugger to LLDB, but this does not appear in my drop-down list in the Scheme window ... Despite the fact that the Xcode user manual indicates that both GDB and LLDB are available:
http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html
Thanks!
jowie source share