本文介绍了/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到错误
解决方案它意味着 MainView 类定义了两次或更多次。
检查:
- 如果 MainView code> class的 @implementation 出现在任何 .h 文件中。它不应该。
- 如果有2 MainView 类由您和第三方库定义。您可能需要重命名您的 MainView 类。
I am getting the error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1every 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.otoo. Could this be part of the problem?
Thanks in advance,
Mr. Man
解决方案It means the MainView class is defined twice or more.
Check:
- If the MainView class's @implementation appears in any .h files. It shouldn't.
- 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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!