文件一直运行不了,还报错:duplicate symbol _OBJC_IVAR_$_CDataScanner.data ......... for architecture i386
如图:
ld: duplicate symbol_OBJC_IVAR_$_CDataScanner.data in/Users/apple/Library/Developer/Xcode/DerivedData/ClothesTry-aikecqhjtelboafozutskstpysag/Build/Intermediates/ClothesTry.build/Debug-iphonesimulator/ClothesTry.build/Objects-normal/i386/CDataScanner-B4B7702B3EA4AD5A.oand/Users/apple/Library/Developer/Xcode/DerivedData/ClothesTry-aikecqhjtelboafozutskstpysag/Build/Intermediates/ClothesTry.build/Debug-iphonesimulator/ClothesTry.build/Objects-normal/i386/CDataScanner-E9BE2B102ABA04A.ofor architecture i386
collect2: ld returned 1 exit status
Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2failed with exit code 1
最后解决办法:
如图:
因为文件夹“Source”在工程里重复了,导致报错以上的错误。只要将其中一个文件夹删去就行了。