架构x86的重复符号

时间:2015-02-27 09:55:25

标签: ios objective-c xcode6

我正在使用mailcore框架,我收到一条错误消息“复制符号for archtecture x86”以及“找不到选项的目录”

以下是错误日志。

  

Ld的   /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Products/Debug-iphonesimulator/DummyApp.app/DummyApp   正常的x86_64       cd“/ Users / user / Desktop / Desktop / Working Folder / Current Apps / Get Capture It / DummyApp / DummyApp”       export IPHONEOS_DEPLOYMENT_TARGET = 8.1       export PATH =“/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin:/ bin: / usr / sbin目录:/ sbin目录”       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang   -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk   -L /用户/用户/库/开发商/ Xcode中/ DerivedData / DummyApp-chqcfanqqojjezfzonmnrjqnlsuy /编译/产品/调试,iphonesimulator   -L /用户/用户/ EmailClient / MailCore / iOSPorts /端口/安全/ OpenSSL的/生成/调试-的iPhoneOS   -F /用户/用户/库/开发商/ Xcode中/ DerivedData / DummyApp-chqcfanqqojjezfzonmnrjqnlsuy /编译/产品/调试,iphonesimulator   -filelist /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/DummyApp.LinkFileList   -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 8.1 / Users / user / Library /开发商/ Xcode中/ DerivedData / DummyApp-chqcfanqqojjezfzonmnrjqnlsuy /编译/产品/调试-iphonesimulator / libsasl2.a   /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Products/Debug-iphonesimulator/libmailcore.a   -lz -framework Foundation -framework UIKit -framework Security -framework QuickLook -framework SystemConfiguration -framework MobileCoreServices -framework QuartzCore -liconv -framework   AddressBook -framework AddressBookUI -framework AudioToolbox   -framework AVFoundation -framework CFNetwork -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework EventKit   /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Products/Debug-iphonesimulator/libsqlcipher.a   -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/DummyApp_dependency_info.dat   -o /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Products/Debug-iphonesimulator/DummyApp.app/DummyApp

     

ld:警告:找不到选项的目录   '-L /用户/用户/ EmailClient / MailCore / iOSPorts /端口/安全/ OpenSSL的/生成/调试-的iPhoneOS'   重复符号_main in:       /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/fmdb.o       /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/main-FFC4D805A2793675.o   重复符号_main in:       /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/fmdb.o       /Users/user/Library/Developer/Xcode/DerivedData/DummyApp-chqcfanqqojjezfzonmnrjqnlsuy/Build/Intermediates/DummyApp.build/Debug-iphonesimulator/DummyApp.build/Objects-normal/x86_64/main-6E64576BC394526D.o   ld:2个用于体系结构x86_64 clang的重复符号:错误:链接器   命令失败,退出代码为1(使用-v查看调用)

1 个答案:

答案 0 :(得分:1)

重复的符号错误正是它所声明的内容,它在两者中都是重复的符号main

fmdb

main

另一个错误是因为编译器无法找到:

/Users/user/EmailClient/MailCore/iOSPorts/ports/security/openssl/build/Debug-iphoneos