应用程序崩溃与4.2 iPhone模拟器'设置启动与关闭' [英] App crashes with 4.2 iPhone simulator 'set start-with-shell off'

查看:106
本文介绍了应用程序崩溃与4.2 iPhone模拟器'设置启动与关闭'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写完全适用于4.0 / 4.1 iPhone模拟器的应用程序,但不是4.2。

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

我收到了这样的警告:

检测到试图调用iPhone上不存在的系统库中的符号:
fcntl $ UNIX2003从映像TestApp中的函数get_socket_nonblocking调用。
如果您在gdb中运行模拟器二进制文件时遇到此问题,请确保首先将'start-with-shell off'设置为。

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.

如何在Xcode上设置'set start-with-shell off'?我试图将此行添加到.gdbinit但没有运气。

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

使用4.0 / 4.1 SDK iPhone模拟器打印有关尝试调用符号的警告iPhone在调试窗口中,但应用程序不会崩溃。使用4.2 app崩溃。如何防止4.2崩溃?

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 ?

谢谢

推荐答案

此清洁之前然后构建

在xcode中转到Project> set active executable> appname - Iphone 4.0 simulator

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

然后打开模拟器然后转到硬件>版本> 4.0.2

then open simulator then go to Hardware > version > 4.0.2

然后双击urapptarget并在构建选项卡中更改ios deployment target = 4.0

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

现在在模拟器中运行它将起作用

now run in simulator it will work

这篇关于应用程序崩溃与4.2 iPhone模拟器'设置启动与关闭'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆