尝试在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中:/ 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 / Developer / 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 / Intermediates / 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 -Xlinke r 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 -framework SystemConfiguration -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/Obje cts-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:架构i386的3个重复符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
ld:架构i386的3个重复符号
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
如果有人可以提供帮助,那将是一个很大的帮助!
提前致谢。
答案 0 :(得分:1)
从 Xcode 7.3 开始,您可以使用任何自定义变量两次。如果您想使用,那么只需转到构建设置并搜索无通用块并将其设置为否。再次构建,你不会再犯这个错误。