gcc-4.2失败,退出代码1 iphone [英] gcc-4.2 failed with exit code 1 iphone

查看:146
本文介绍了gcc-4.2失败,退出代码1 iphone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在讨论论坛上看到过这个错误,但是作为一个非程序员,我不知道该怎么处理。

基本上我的代码是我发现可以帮助我更改分组的uitableview上单元格的背景颜色。代码引入了一行:

  CGContextAddArcToPoint(c,minx,miny,midx,miny,ROUND_SIZE); 

这给出了一个错误,表明它没有被声明,所以我添加到我的.h文件中以下是导入uikit:

  #import< UIKit / UIKit.h> 
#define ROUND_SIZE 10

现在显示我有错误:



Command / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin / gcc-4.2失败,退出代码1 iphone



一些讨论谈论图书馆,但因为我没有编程背景,我不明白该怎么做。我也看到有些人显示日志输出,但我不确定这是从哪里来的,因为我没有得到任何调试窗口,因为我猜测它没有得到那么多。我只需点击'Build and Go',我就会在Message窗口中看到这个错误。



有什么想法?

解决方案

正如您从许多不同的响应中看到的,这个错误是由许多不同的问题造成的。幸运的是,我找到了Meta解决方案!



在xcode中,右键单击错误行并选择打开这些最新结果作为脚本文本文件。这将打开真正的 xcode输出日志,它应该包含更好的错误描述,然后才能看到。

-Evan


I've seen this error with different variations on discussion forums but being a non programmer I'm not sure how to progress this.

Basically I have code which I found to help me with changing the background colors of cells on a grouped uitableview. The code introduced a line as such:

CGContextAddArcToPoint(c, minx, miny, midx, miny, ROUND_SIZE);

This gave an error indicated that it wasn't declared, so I added to my .h file the following under import uikit:

#import <UIKit/UIKit.h>
#define ROUND_SIZE 10

Now it shows that I have an error:

Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 iphone

Some discussions talk about libraries but because I don't have a programming background I don't understand what to do. I also see that some people show a log output but I'm not sure where that comes from as I don't get any debug windows because I'm guessing it doesn't get that far. I simply click 'Build and Go' and I get this error in the Message window.

Any thoughts?

解决方案

As you can see from the many different responses this error is caused by many different problems. Luckily, I have found the Meta Solution!

In xcode, right click the error line and choose "Open These Latest Results as Transcript Text File". This will open the real xcode output log, which should contain a better description of the error then was previously seen.

-Evan

这篇关于gcc-4.2失败,退出代码1 iphone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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