我一直在试着让我的应用程序启动和运行。据我所知,这个应用程序缺少Cocoapods作为依赖项。所以。我安装并添加了Cocoapods。但不管出于什么原因我还是会犯同样的错误。我是一个缺乏经验的开发人员,试图自学我必须补充。
Ld /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella normal i386 cd“/User/bfarag/Desktop/The Nerdery/BRAVO.iOS.Code挑战性”出口IPHONEOS_DEPLOYMENT_TARGET=7.0导出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 -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”/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-运行时-Xlinker -no_implicit_dylibs -mios-模拟器-min=7.0 -framework -no_implicit_dylibs基金会en21 20-lPods-伞式/Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Intermediates/Umbrella.build/Debug-iphonesimulator/Umbrella.build/Objects-normal/i386/Umbrella_dependency_info.dat /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella -Xlinker -dependency_info -Xlinker -o
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

发布于 2014-10-08 20:00:12
这个错误通常发生在您没有正确的框架(可能缺少一个)或链接器标志中没有正确的东西时。
转到应用程序的主页(在您的应用程序名称或顶部的导航部分) -> Build和Linker下面,确保您的其他Linker中没有任何内容。当我在我的其他链接器标志中有-ObjC时,我也犯了同样的错误。
您可能还想尝试将-lPods添加到其他Linker,或者如果您还没有CoreGraphics框架,可以尝试添加它。
祝好运
发布于 2014-10-08 19:40:11
打开工作区文件,而不是项目文件。Cocoapods在与xcproject文件相同的目录上自动创建xc工作区文件。
发布于 2016-10-05 17:05:29
Xcode开始显示这条消息,我几乎尽了一切努力解决它。对我来说,最后的诀窍是删除~/Library/Developer/Xcode/DerivedData/中的所有内容。
https://stackoverflow.com/questions/26263637
复制相似问题