2011-12-06 9 views
10

Error screenshot समझ में नहीं आता है कि इसे कैसे ठीक किया जाए और ऐसा क्यों दिखाई देता है?कमांड/डेवलपर/प्लैटफॉर्म/आईफोनफोन/प्लैटफॉर्म/डेवलपर /usr/bin/clang निकास कोड 1

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 
+1

क्या आपने पूरी परियोजना को साफ करने का प्रयास किया था? – tamasgal

+0

हां, व्युत्पन्न डेटा भी हटा दिया गया। – Shmidt

उत्तर

24

वास्तविक त्रुटि आपके सामने ठीक है। ऐसा लगता है कि आपका लिंक चरण डुप्लिकेट प्रतीक के कारण विफल रहा है: FlightsViewController। आपने शायद इसे दो बार परिभाषित किया है, या शायद आपने इसे पुस्तकालय में और साथ ही साथ अपने मुख्य निर्माण में भी जोड़ा है।

+0

यह सच है) धन्यवाद – Shmidt

+0

आप इसे कैसे ठीक करते हैं? – shim

+0

@shim: आप इसे उसी प्रतीक की कई परिभाषाओं के द्वारा ठीक नहीं करते हैं। –

1

यह आमतौर पर तब भी हो सकता है जब आप कक्षाओं की प्रतिलिपि/डुप्लिकेट करते हैं। सुनिश्चित करें कि आप किसी भी स्थिरांक अपने डुप्लिकेट वर्ग, आदि कि कहीं परिभाषित किया जा सकता में परिभाषित न करना पड़े

0

यहाँ समाधान

है

यदि आप किसी iOS आवेदन पर काम कर रहे हैं iPhone या iPad कहना लेकिन आप गलत तरीके से चयन किया है

"मेरे मैक 64 बिट" आपको यह त्रुटि मिल जाएगा enter image description here

तो चयन उचित आवेदन प्रकार कहना

iphone रेटिना (3.5 इंच) डिवाइस 0,123,iphone रेटिना (4 इंच) iphone रेटिना 64 बिट

ipad ipad रेटिना

आदि तो आपको यह त्रुटि नहीं मिलेगा।