xcode 架构 i386 的重复符号

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13639411/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:13:09  来源:igfitidea点击:

duplicate symbols for architecture i386

iosxcode

提问by Ashutosh Bhatt

I am using GTL framework for using google GDrive. I copied all the files from the GTL.xcodeproject into my application after getting failed many times in importing that framework into my application. But still i am getting below mentioned error. I have searched all but found no duplicate files or anything. Please help here.

我正在使用 GTL 框架来使用 google GDrive。在将该框架导入我的应用程序时多次失败后,我将 GTL.xcodeproject 中的所有文件复制到我的应用程序中。但我仍然收到下面提到的错误。我已经搜索了所有但没有发现重复的文件或任何东西。请在这里帮忙。

/Users/ashutoshb/Desktop/Screen Shot 2012-11-30 at 10.30.24 AM.png


Ld /Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Products/Debug-iphonesimulator/MowWom.app/MowWom normal i386
cd /Users/ashutoshb/Mowwom/MowWomCode/Updated/MowWom
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv 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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Products/Debug-iphonesimulator "-L/Users/ashutoshb/Mowwom/MowWomCode/Updated/MowWom/MowWom/Twitter+OAuth/Libraries & Headers" -L/Users/ashutoshb/Mowwom/MowWomCode/Updated/MowWom -  F/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom- dmhxeapzkbnuniegdxmsvdgmodrw/Build/Products/Debug-iphonesimulator -  F/Applications/Xcode.app/Contents/Developer/Library/Frameworks - F/Users/ashutoshb/Mowwom/MowWomCode/Updated/MowWom -filelist  /Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom- dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug- iphonesimulator/MowWom.build/Objects-normal/i386/MowWom.LinkFileList -Xlinker - objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework SenTestingKit -framework Security -framework MessageUI -lxml2 -lz -framework CFNetwork -framework MobileCoreServices -framework SystemConfiguration -framework CoreLocation -framework MapKit -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lOAuth -o /Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Products/Debug-iphonesimulator/MowWom.app/MowWom


duplicate symbol _OBJC_CLASS_$_GTLDriveAboutAdditionalRoleInfoItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_METACLASS_$_GTLDriveAboutAdditionalRoleInfoItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_CLASS_$_GTLDriveAboutExportFormatsItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_METACLASS_$_GTLDriveAboutExportFormatsItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_CLASS_$_GTLDriveAboutFeaturesItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_METACLASS_$_GTLDriveAboutFeaturesItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_CLASS_$_GTLDriveAboutImportFormatsItem in:
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDrive_Sources.o
/Users/ashutoshb/Library/Developer/Xcode/DerivedData/MowWom-dmhxeapzkbnuniegdxmsvdgmodrw/Build/Intermediates/MowWom.build/Debug-iphonesimulator/MowWom.build/Objects-normal/i386/GTLDriveAbout.o

duplicate symbol _OBJC_METACLASS_$_GTLDriveAboutImportFormatsItem in:

回答by borrrden

Make sure you check the "Compile Sources" in your "Build Phases" section as well. Sometimes they get doubled in there (but appear only once in the project file explorer)

确保您也检查了“构建阶段”部分中的“编译源”。有时它们会在那里加倍(但在项目文件资源管理器中只出现一次)

回答by user427969

Try to delete all the files/folders from your project location and also remove references from XCode project.

尝试从项目位置删除所有文件/文件夹,并从 XCode 项目中删除引用。

Then, copy library folder to project location and in XCode, click on "Add files ..." and choose the new added folder in project location.

然后,将库文件夹复制到项目位置,在 XCode 中,单击“添加文件...”并在项目位置选择新添加的文件夹。