首页 文章

ld:架构i386的3个重复符号

提问于
浏览
1

在尝试在Xcode 7.3.1中运行时,我收到以下错误:

Ld / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / birdybobble \ iOS.app/birdybobble \ iOS normal i386 cd /Volumes/WORK/birdybobble/proj.ios_mac export IPHONEOS_DEPLOYMENT_TARGET = 8.0 export PATH =“/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / local / 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/iPhoneSimulator9.3.sdk -L / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator -Lsdkbox.framework -LPluginChartboost.framework -LChartboost.framework -LPluginAdMob.framework -LGoogleMobileAds.framework -LPluginIAP.framework -F / Users / ecdev / Library / Devel oper / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator -F / Volumes / WORK / birdybobble / proj.ios_mac -filelist / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build /中间体/ birdybobble.build / Debug-iphonesimulator / birdybobble \ iOS.build/Objects-normal/i386/birdybobble \ iOS.LinkFileList -mios-simulator-version-min = 8.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -stdlib = libc -fobjc-link-runtime -lbz2.1.0 -lz.1 -framework OpenGLES -framework UIKit -framework CoreMotion -framework Security / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / libcocos2d \ iOS.a -framework Foundation -framework CoreGraphics -framework QuartzCore -framework OpenAL -framework AVFoundation -framework AudioToolbox -framework sdkbox -framework PluginChartboost -framework Chartboost -framework StoreKit -framework AdSupport -frame workConfiguration -framework PluginAdMob -framework GoogleMobileAds -framework CoreMedia -framework CoreTelephony -framework EventKit -framework EventKitUI -framework MessageUI -framework GameController -framework MediaPlayer -framework PluginIAP -Xlinker -dependency_info -Xlinker / Users / ecdev / Library / Developer / Xcode / DerivedData /birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble \ iOS.build/Objects-normal/i386/birdybobble \ iOS_dependency_info.dat -o / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / birdybobble \ iOS.app/birdybobble \ iOS

重复符号_strerror $ UNIX2003 in:/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/Debug-iphonesimulator/birdybobble iOS.build/Objects-normal/i386/asd.o / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / libcocos2d iOS.a(CCImage.o)复制符号_fopen $ UNIX2003 in:/ Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Intermediates / birdybobble.build / Debug-iphonesimulator / birdybobble iOS.build/Objects-normal/i386/asd.o/ Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble-hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / libcocos2d iOS.a(CCImage.o)复制符号_fwrite $ UNIX2003 in:/Users/ecdev/Library/Developer/Xcode/DerivedData/birdybobble-hfiarbprydmxgtbmjresfgzerqom/Build/Intermediates/birdybobble.build/ Debug-iphonesimulator / birdybobble iOS.build/Objects -normal / i386 / asd.o / Users / ecdev / Library / Developer / Xcode / DerivedData / birdybobble -hfiarbprydmxgtbmjresfgzerqom / Build / Products / Debug-iphonesimulator / libcocos2d iOS.a(CCImage.o)ld:3个用于架构i386的重复符号clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

ld:架构i386的3个重复符号

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

如果有人可以提供帮助,那将是一个很大的帮助!

提前致谢 .

1 回答

  • 1

    Xcode 7.3 开始,您可以使用任何自定义变量两次 . 如果你想使用,那么只需转到 Build Setting 并搜索 No Common Blocks 并将其设置为 NO . 再次构建,您将不会再次出现此错误 .

相关问题