0

尝试在基于 iOS 6 SDK 的 Xcode 4.5 上构建时出现此错误

重复符号 _main 在:/Users/nsm/Library/Developer/Xcode/DerivedData/Newsapp-btwcniahgzgkgrbtyloduniznsay/Build/Intermediates/Newsapp.build/Debug-iphonesimulator/Newsapp.build/Objects-normal/i386/main.o /Users/ nsm/Library/Developer/Xcode/DerivedData/Newsapp-btwcniahgzgkgrbtyloduniznsay/Build/Intermediates/Newsapp.build/Debug-iphonesimulator/Newsapp.build/Objects-normal/i386/fmdb.o ld:架构i386 clang的1个重复符号:错误: 链接器命令失败,退出代码为 1(使用 -v 查看调用)

问题是什么?

4

1 回答 1

15

You must remove the file fmdb.m which got imported along with the FMDB classes.

于 2012-10-10T05:57:29.450 回答