Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App crashes with 4.2 iPhone simulator 'set start-with-shell off'

I'm writing application which perfectly works on 4.0/4.1 iPhone simulator, but not 4.2.

I'm getting such warning:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone: fcntl$UNIX2003 called from function get_socket_nonblocking in image TestApp. If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first.

How to set 'set start-with-shell off' on Xcode? I'm tried to add this line to .gdbinit but without luck.

With 4.0/4.1 SDK iPhone Simulator prints warnings about attempt to call symbol that is not present on the iPhone in debug window, but app don't crashes. Using using 4.2 app crashes. How to prevent 4.2 crashes ?

Thanks

like image 796
kesrut Avatar asked Nov 24 '10 20:11

kesrut


1 Answers

before this cleanAll build then

In xcode go to Project > set active executable > appname - Iphone 4.0 simulator

then open simulator then go to Hardware > version > 4.0.2

then double click urapptarget and in build tab change "ios deployment target = 4.0"

now run in simulator it will work

like image 177
Vijay-Apple-Dev.blogspot.com Avatar answered Sep 17 '22 15:09

Vijay-Apple-Dev.blogspot.com