苹果Mach-O-Linker错误CocoaPods

所以我一直在试图让我的应用程序运行起来。 从我可以告诉应用程序丢失Cocoapods作为依赖。 所以。 我安装并添加了Cocoapods。 但是,无论出于何种原因,我仍然遇到同样的错误。 我是一个没有经验的开发者,试图自学我必须补充。

Ld /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella normal i386 cd“/ Users / bfarag / Desktop / The Nerdery / BRAVO.iOS.CodeChallenge “export IPHONEOS_DEPLOYMENT_TARGET = 7.0 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 / bfarag / Library / Developer / Xcode / DerivedData / Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke / Build / Products / Debug-iphonesimulator -F / Users / bfarag / Library / Developer / Xcode / DerivedData / Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke / Build / Products / Debug-iphonesimulator -filelist / Users / bfarag / Library / Developer / Xcode / DerivedData / Um 我们可以通过下面的例子来介绍一下这个工具,它可以帮助我们更好地pipe理和维护移动核心服务。 -framework安全框架系统configuration-fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 7.0 -framework加速 – 框架UIKit -framework基础框架CoreGraphics -lPods -lPods-Umbrella -Xlinker -dependency_info -Xlinker /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella_dependency_info.dat -o / Users /bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella

ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) 

链接器标志

这个错误通常发生在你没有正确的框架(可能会丢失一个)或者当你在链接标志中没有正确的东西时。

转到应用程序的主页面(在左侧的导航上点击应用程序名称或顶部) – >构build设置,然后在链接标记下,确保其他链接标记中没有任何内容。 当我在其他链接标志中使用了-ObjC时,我也遇到了同样的错误。

您可能还想尝试将“-PPods”添加到“其他链接器标志”或添加CoreGraphics框架(如果您尚未拥有它)。

祝你好运

打开工作区文件,而不是项目文件。 Cocoapods自动在与xcproject文件相同的目录下创build一个xcworkspace文件。

Xcode开始显示这个消息,我尝试了几乎所有的东西来解决它。 对我来说终于做了什么是删除~/Library/Developer/Xcode/DerivedData/