Apple Mach-O-Linker错误CocoaPods [英] Apple Mach-O-Linker Error CocoaPods

查看:94
本文介绍了Apple Mach-O-Linker错误CocoaPods的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力让我的应用程序运行起来。据我所知,该应用程序错过了Cocoapods作为依赖。所以。我安装并添加了Cocoapods。但无论出于何种原因,我仍然会得到同样的错误。我是一个没有经验的开发人员试图自学,我必须补充。

I've been trying to get my app up and running. From what I could tell the app was missing Cocoapods as a dependency. So. I installed and added Cocoapods. But I'm still getting the same error for whatever reason. I'm an inexperienced developer trying to teach himself I must add.


Ld
/ Users / bfarag / Library / Developer / Xcode / DerivedData / Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke / Build / Products / Debug- iphonesimulator / Umbrella.app / Umbrella
正常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 /用户/ bfarag /库/开发商/ Xcode中/ DerivedData /伞cspuzusfqm qgnwdqfhtiyivaqwke / Build / Products / Debug-iphonesimulator
-filelist /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects- normal / i386 / Umbrella.LinkFileList
-Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-Umbrella-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration
-fobjc-arc -fobjc-link -runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 7.0 -framework加速-framework UIKit -framework Foundation-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 /伞cspuzusfqmqgnwdqfhti yivaqwke / Build / Products / Debug-iphonesimulator / Umbrella.app / Umbrella

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/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-Umbrella-AFNetworking -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework Accelerate -framework UIKit -framework Foundation -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)

推荐答案

当您没有正确的框架(可能缺少一个框架)或者链接器标记中没有正确的框架时,通常会发生此错误。

This error usually occurs either when you don't have the correct frameworks (might be missing one) or when you don't have the right thing in linker flags.

转到应用程序的主页面(在导航栏上点击您的应用程序名称或顶部部分) - >构建设置并在链接器标志下,确保没有任何内容你的其他链接器标志。当我在其他链接器标志中使用-ObjC时,我遇到了同样的错误。

Go to the main page for the app (on the navigation thing on the left click on your apps name or the top section) -> Build Settings and under Linker Flags, make sure there is nothing in your Other Linker Flags. I had this same error when I had -ObjC in my other Linker Flags.

您可能还想尝试将-lPods添加到其他链接器标志或添加CoreGraphics框架如果你还没有它。

You might also want to try adding -lPods to your Other Linker Flags or adding the CoreGraphics framework if you don't already have it.

祝你好运

这篇关于Apple Mach-O-Linker错误CocoaPods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆