本文介绍了Apple Mach-O链接器错误XCODE 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://pingnator. com/help/OS%20X%20Mavericks-2014-06-24-09-00-21.png
Ld /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator/FlappyPing.app/FlappyPing normal i386
cd "/Users/STIGPING/Desktop/Apps/Flappy Bird"
export IPHONEOS_DEPLOYMENT_TARGET=7.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator -L/Users/STIGPING/Downloads/GoogleMobileAdsSdkiOS-6.9-2.3/New -LFolder -LWith -LItems -F/Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator -filelist /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Intermediates/FlappyPing.build/Debug-iphonesimulator/FlappyPing.build/Objects-normal/i386/FlappyPing.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework Accelerate -framework SystemConfiguration -framework MessageUI -framework CoreTelephony -framework StoreKit -framework GameKit -framework AVFoundation -lGoogleAdMobAds -framework AudioToolbox -framework AdSupport -framework CoreGraphics -framework UIKit -framework SpriteKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Intermediates/FlappyPing.build/Debug-iphonesimulator/FlappyPing.build/Objects-normal/i386/FlappyPing_dependency_info.dat -o /Users/STIGPING/Library/Developer/Xcode/DerivedData/FlappyPing-fkdkochwxretapaxarroygfgvhrp/Build/Products/Debug-iphonesimulator/FlappyPing.app/FlappyPing
ld: warning: directory not found for option '-L/Users/STIGPING/Downloads/GoogleMobileAdsSdkiOS-6.9-2.3/New'
ld: warning: directory not found for option '-LFolder'
ld: warning: directory not found for option '-LWith'
ld: warning: directory not found for option '-LItems'
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我一直在搜索,但尚未找到解决方案.如果有人可以帮助我,将不胜感激:)
I have been searching but haven't found the solution yet. If Anyone can help me it would be much appreciated :)
推荐答案
您的Xcode项目设置包含链接器搜索路径部分,在其中添加了这些目录(或者可能已将它们添加到其他链接器标志部分).
Your Xcode project settings contains a Linker Search Path section where those directories have been added (or possibly they have been added to the Additional Linker Flags section).
如果错误,则将其删除.
If they are wrong then remove them.
这篇关于Apple Mach-O链接器错误XCODE 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!