Ios5 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1

Ios5 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1,ios5,xcode4.2,Ios5,Xcode4.2,无法理解如何修复它以及它出现的原因 Ld /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator/Flylista.app/Flylista normal i386 cd "/Users/atencion/Documents/Applications Development/Xcode

无法理解如何修复它以及它出现的原因

    Ld /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator/Flylista.app/Flylista normal i386
    cd "/Users/atencion/Documents/Applications Development/Xcode Projects/Flylista"
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator -F/Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator -filelist /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/Flylista.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Products/Debug-iphonesimulator/Flylista.app/Flylista

ld: duplicate symbol _OBJC_CLASS_$_FlightsViewController in /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/FlightViewController.o and /Users/atencion/Library/Developer/Xcode/DerivedData/Flylista-gcadfttyrgznkmafzaicacwytfey/Build/Intermediates/Flylista.build/Debug-iphonesimulator/Flylista.build/Objects-normal/i386/FlightsViewController.o for architecture i386
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

实际的错误就在你面前。您的链接阶段似乎由于重复符号而失败:
FlightsViewController
。您可能已经定义了两次,或者您已经将其链接到库以及主版本中。

当您复制/复制类时,通常也会发生这种情况。确保在复制的类中没有定义任何可能在其他地方定义的常量等。

下面是解决方案

当你在使用iOS应用程序时,比如说iPhone或iPad,但你选择错了

“我的Mac 64位”将出现此错误

因此,请选择合适的应用程序类型

iphone视网膜(3.5英寸) 装置 iphone视网膜(4英寸) iphone视网膜64位

ipad ipad视网膜


等等,那么您将不会得到此错误

您是否尝试过清理整个项目?是的,还删除了派生数据。@shim:您可以通过不具有同一符号的多个定义来修复它。有一次,我意外地将“viewController.m”而不是“viewController.h”包含在内,因此出现了相同的错误。有时有点匆忙…伴随着很多担心!!