2011-12-06 29 views
10

Error screenshot Không thể hiểu cách khắc phục và tại sao nó xuất hiện?Lệnh /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang không thành công với mã thoát 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

Bạn đã thử làm sạch toàn bộ dự án? – tamasgal

+0

Có, cũng xóa dữ liệu có nguồn gốc. – Shmidt

Trả lời

24

Lỗi thực tế nằm ngay trước mặt bạn. Có vẻ như giai đoạn liên kết của bạn không thành công do biểu tượng trùng lặp: FlightsViewController. Bạn đã có thể xác định điều này hai lần, hoặc có lẽ bạn đã liên kết nó vào một thư viện cũng như xây dựng chính của bạn.

+0

Đó là sự thật) Cảm ơn bạn – Shmidt

+0

Làm cách nào để khắc phục sự cố? – shim

+0

@shim: bạn sửa chữa nó bằng cách không có nhiều định nghĩa của cùng một biểu tượng. –

1

Điều này cũng thường xảy ra khi bạn sao chép/sao chép các lớp. Hãy chắc chắn rằng bạn không có bất kỳ hằng được định nghĩa trong lớp trùng lặp của bạn có thể được định nghĩa ở nơi khác vv

0

Đây là giải pháp

Khi bạn đang làm việc trên một ứng dụng iOS nói iPhone hoặc iPad nhưng bạn đã chọn sai

"My Mac 64 bit", bạn sẽ nhận được lỗi này enter image description here

Vì vậy, chọn loại ứng dụng thích hợp nói

iphone Retina (3,5 inch) thiết bị 0.123.iphone Retina (4 inch) iphone Retina 64 bit

ipad ipad retina

vv thì bạn sẽ không nhận được lỗi này.

Các vấn đề liên quan