/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码1错误 [英] /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 error

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

问题描述


可能存在重复:

gcc 4.2失败,退出代码1 iPhone


我收到错误

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

每次尝试在iPhone上运行程序时设备和模拟器。



我也看到了这个:

  ld:重复符号.objc_class_name_MainView in / Volumes / Mark's Flash Drive / iFtB / build / iFtB.build / Debug-iphonesimulator / iFtB.build / Objects-normal / i386 / MainView.o和/ Volumes / Mark's Flash Drive / iFtB / build /iFtB.build/Debug-iphonesimulator/iFtB.build/Objects-normal/i386/iFtBAppDelegate.o 

太。这可能是问题的一部分吗?



在此先感谢,

Man

解决方案

它意味着 MainView 类定义了两次或更多次。



检查:


  1. 如果 MainView code> class的 @implementation 出现在任何 .h 文件中。它不应该。

  2. 如果有2 MainView 类由您和第三方库定义。您可能需要重命名您的 MainView 类。


Possible Duplicate:
gcc-4.2 failed with exit code 1 iphone

I am getting the error

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

every time I try to run the program on the iPhone device and the Simulator.

I am also seeing this:

ld: duplicate symbol .objc_class_name_MainView in /Volumes/Mark's Flash Drive/iFtB/build/iFtB.build/Debug-iphonesimulator/iFtB.build/Objects-normal/i386/MainView.o and /Volumes/Mark's Flash Drive/iFtB/build/iFtB.build/Debug-iphonesimulator/iFtB.build/Objects-normal/i386/iFtBAppDelegate.o

too. Could this be part of the problem?

Thanks in advance,

Mr. Man

解决方案

It means the MainView class is defined twice or more.

Check:

  1. If the MainView class's @implementation appears in any .h files. It shouldn't.
  2. If there are 2 MainView classes define by you and a third-party library. You may need to rename your MainView class.

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

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