今天整合项目的时候, 遇到了这样一个问题。
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.old: 1 duplicate symbol for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)分析一下, 如图。
能够看出, 错误类型是 duplicate(反复) 错误标识是 _flag 错误位置在 DialVC 和 PersonalList中
于是, 搜索一下, flag。发现...
好了。 仅仅要把当中一个改掉就好了。