如何设置'start-with-shell'?

时间:2011-03-10 17:09:50

标签: objective-c xcode

在调试会话期间(Debug | Simulator)我得到了这个。如何设置'start-with-shell'? (我看过,找不到任何关于如何做的文档)。

[Session started at 2011-03-10 09:05:22 -0800.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Wed Sep 22 02:45:02 UTC 2010)
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 "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 1734.
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
pthread_mutexattr_destroy$UNIX2003 called from function pthreadMutexAlloc in image PointsEncodeDecode.
If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.
Program received signal:  “SIGABRT”.
kill
quit

The Debugger has exited with status 0.(gdb) 

1 个答案:

答案 0 :(得分:0)

自从我使用iOS 4.2更新到XCode 3.2.5后,我遇到了这个问题

我的问题来自我使用的本机库,需要在iOS4下重新编译。看来这个iOS版本与前一个版本不完全二进制兼容......

否则,请尝试新版本的XCode 4和iOS4.3,看看它是否能解决您的问题。