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

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

问题描述

我在论坛上看到过这个错误的不同版本,但作为一名非程序员,我不知道如何进行.

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

基本上我有代码,我发现这些代码可以帮助我更改分组 uitableview 上单元格的背景颜色.代码引入了这样一行:

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);

这给出了一个错误,表明它没有被声明,所以我在我的 .h 文件中添加了 import uikit 下的以下内容:

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

现在显示我有错误:

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

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

有些讨论是关于库的,但因为我没有编程背景,所以我不知道该怎么做.我还看到有些人显示了日志输出,但我不确定它来自哪里,因为我没有得到任何调试窗口,因为我猜它没有那么远.我只需单击Build and Go",我就会在消息窗口中收到此错误.

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.

有什么想法吗?

推荐答案

正如您从许多不同的响应中看到的,此错误是由许多不同的问题引起的.幸运的是,我找到了元解决方案!

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

在 xcode 中,右键单击错误行并选择将这些最新结果作为转录文本文件打开".这将打开 真实 xcode 输出日志,其中应该包含比之前看到的更好的错误描述.

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.

-埃文

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

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