我的应用程序返回signal 13: Broken pipe: 13
错误,原因可能是服务器端问题,我试图忽略我的应用程序中的 SIGPipes 以查看它是否有效,但是 xcode 不会让我这样做。它只是继续提供信号。
我添加了以下内容:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// We expect write failures to occur but we want to handle them where
// the error occurs rather than in a SIGPIPE handler.
signal(SIGPIPE, SIG_IGN);
}
不幸的是,这根本没有帮助,而且应用程序无论如何都会冻结。我在这里想念什么?