无法理解如何修复它以及它出现的原因?
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
答案 0 :(得分:24)
实际错误就在你面前。由于重复的符号FlightsViewController
,您的链接阶段似乎失败了。您可能已经定义了两次,或者您可能已将其链接到库以及主构建中。
答案 1 :(得分:1)
复制/复制类时通常也会发生这种情况。确保您没有在重复的类中定义任何可能在别处定义的常量等。
答案 2 :(得分:0)
这是解决方案
当你在iOS应用程序上工作时说iPhone或iPad,但你选错了
“我的Mac 64位”您将收到此错误
所以选择适当的应用类型说
iphone Retina(3.5英寸) 设备 iphone Retina(4英寸) iphone Retina 64位
的ipad ipad视网膜
然后你就不会得到这个错误。