iOS开发- "duplicate symbol for architecture i386" 解决的方法

今天整合项目的时候, 遇到了这样一个问题。

duplicate symbol _flag in:
/Users/apple/Library/Developer/Xcode/DerivedData/bluetoothPhone-fspknidhnizzjygmuqngfcklvnic/Build/Intermediates/bluetoothPhone.build/Debug-iphonesimulator/bluetoothPhone.build/Objects-normal/i386/DialVC.o
/Users/apple/Library/Developer/Xcode/DerivedData/bluetoothPhone-fspknidhnizzjygmuqngfcklvnic/Build/Intermediates/bluetoothPhone.build/Debug-iphonesimulator/bluetoothPhone.build/Objects-normal/i386/PersonalList.o
ld: 1 duplicate symbol for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

分析一下, 如图。



能够看出, 错误类型是 duplicate(反复) 错误标识是 _flag  错误位置在 DialVC 和 PersonalList中

于是, 搜索一下, flag。发现...



好了。 仅仅要把当中一个改掉就好了。



posted @ 2015-01-26 10:23  mfrbuaa  阅读(217)  评论(0)    收藏  举报