/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 失败,退出代码 1 错误
可能的重复:
gcc-4.2 失败,退出代码 1 iphone < /p>
我 都会收到错误消息
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
每次我尝试在 iPhone 设备和模拟器上运行该程序时
。我也看到了这个:
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
也是。这可能是问题的一部分吗?
预先感谢,
曼先生
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这意味着 MainView 类被定义了两次或更多次。
检查:
MainView
类的@implementation
是否出现在任何.h
文件中。不应该。MainView
类。您可能需要重命名MainView
类。It means the
MainView
class is defined twice or more.Check:
MainView
class's@implementation
appears in any.h
files. It shouldn't.MainView
classes define by you and a third-party library. You may need to rename yourMainView
class.因为 KennyTM 是正确的。
我不小心导入了 .m 文件而不是 .h 并收到了这个可爱的错误。
As KennyTM is correct.
I accidentally imported the .m file instead of the .h an received this lovely error.
当我将可靠性类添加到代码中时,我遇到了同样的问题。我已经将 tree20 包含到我的项目中,该项目具有可靠性等级。因此,当我再次将可靠性等级添加到我的班级时,我遇到了同样的错误。我从我的项目中删除了可靠性代码,它运行得很好。
I had this same problem when i add Reliability class to my code. I already included tree20 to my project which is having reliability class. So when I add the reliability class again to my class I got the same error. I removed the Reliability code from my project and it works perfect.