简体   繁体   English

Xcode-导入STTwitter会导致Apple Mach-O Linker错误

[英]Xcode - Importing STTwitter causes Apple Mach-O Linker Error

Exactly what it says on the title. 标题上说的完全一样。 I've downloaded the STTwitter API several times making sure nothing went wrong with my download. 我已经下载了数次STTwitter API,以确保下载没有问题。 I ran my project before importing the library and it runs fine. 我在导入库之前运行了项目,并且运行良好。

I know there is nothing wrong with the STTwitter library because I used it in several projects, but it won't let me create another project with the import. 我知道STTwitter库没有什么问题,因为我在多个项目中使用了它,但是它不允许我使用导入创建另一个项目。

Ld /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator/JesusWalk.app/JesusWalk normal i386
    cd /Users/michaelvillar/Desktop/JesusWalk
    export IPHONEOS_DEPLOYMENT_TARGET=8.3
    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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator -F/Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator -filelist /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/JesusWalk.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.3 -framework Foundation -framework UIKit -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/JesusWalk_dependency_info.dat -o /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Products/Debug-iphonesimulator/JesusWalk.app/JesusWalk

duplicate symbol _STTwitterOSErrorCode in:
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterOS.o
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
duplicate symbol _STTwitterAppOnlyErrorCode in:
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAppOnly.o
duplicate symbol _STTwitterOAuthErrorCode in:
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterAPI.o
    /Users/michaelvillar/Library/Developer/Xcode/DerivedData/JesusWalk-evjafkmkrrhusqauysjaelfarvqn/Build/Intermediates/JesusWalk.build/Debug-iphonesimulator/JesusWalk.build/Objects-normal/i386/STTwitterOAuth.o
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please, if anyone knows something about importing the library, let me know :) 请,如果有人对导入库有所了解,请告诉我:)

This pull request may fix the issue: https://github.com/nst/STTwitter/pull/189 此拉取请求可能会解决此问题: https : //github.com/nst/STTwitter/pull/189

Please checkout the very latest version from head. 请从头查看最新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM