简体   繁体   English

错误:找不到-lPods的库

[英]error: library not found for -lPods

I downloaded this project with AFNetworking and lumberjack, and it won't compile. 我使用AFNetworking和伐木工人下载了该项目,但无法编译。 The following is the error I received, can you guide me as to how to interpret it and if you know the error what is it ? 以下是我收到的错误,您可以指导我如何解释它,如果您知道该错误是什么,您可以指导我吗?

Ld /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator/SimpleLink\\ provisioning.app/SimpleLink\\ provisioning normal x86_64 cd /Users/nader/Documents/iOS/source 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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -L/Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator -L/Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator/AFNetworking ld /用户/ nader /库/开发人员/ Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build / Products / Debug-iphonesimulator / SimpleLink \\ Provisioning.app/SimpleLink \\供应普通x86_64 cd /用户/ nader / Documents / OS_MENT / MENT_ONE_MENT = 7.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:/ bin:/ usr / sbin:/ sbin“ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -L / Users / nader / Library / Developer / Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build / Products / Debug-iphonesimulator / nader / Library / Developer / Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build / Products / Debug-iphonesimulator / AFNetworking -L/Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator/CocoaLumberjack -L/Users/nader/Documents/iOS/source/SmartConfigCC31XX -L/Users/nader/Documents/iOS/source/build/Debug-iphoneos -F/Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator -F/Users/nader/Documents/iOS/source -filelist /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/Objects-normal/x86_64/SimpleLink\\ provisioning.LinkFileList -mios-simulator-version-min=7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/Objects-normal/x86_64/SimpleL -L /用户/ nader /库/开发人员/ Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build /产品/ Debug-iphonesimulator / CocoaLumberjack -L /用户/ nader / Documents / iOS / source / SmartConfigCC31XX -L / Users / nader / iOS / source / build / Debug-iphoneos -F / Users / nader / Library / Developer / Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build / Products / Debug-iphonesimulator -F / Users / nader / Documents / iOS / source -filelist /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/Objects-normal/x86_64/SimpleLink-Listing-Provisioning。 -version-min = 7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug/iphonesimulator。 -正常/ x86_64 / SimpleL ink\\ provisioning_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lAFNetworking -lCocoaLumberjack -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -ObjC -lAFNetworking -lCocoaLumberjack -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/SimpleLink\\ provisioning.app.xcent -lFirstTimeConfig -lCocoaLumberjack -framework SystemConfiguration -framework Security -framework AVFoundation -liconv -framework QuartzCore -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework UIKit -framework Foundation -lPods -lPods-SmartConfi ink \\ Provisioning_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lAFNetworking -lCocoaLumberjack -framework CoreGraphics -framework MobileCoreServices -framework -ConfigurationOframe -lAFNetworking -lCocoaLumberjack-框架CoreGraphics-框架MobileCoreServices-框架安全-框架SystemConfiguration -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker / Users / nader / Library / Library / Developer / Xcode / DerivedData / SmartConfigCC31XX-axrpiaybpws。 /SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/SimpleLink \\ Provisioning.app.xcent -lFirstTimeConfig -lCocoaLumberjack -framework SystemConfiguration -framework Security -framework AVFoundation -liconv -framework QuartzCore -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework UIKit -framework Foundation -lPods -lPods-SmartConfi gCC31XX -Xlinker -dependency_info -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/Objects-normal/x86_64/SimpleLink\\ provisioning_dependency_info.dat -o /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Products/Debug-iphonesimulator/SimpleLink\\ provisioning.app/SimpleLink\\ provisioning gCC31XX -Xlinker -dependency_info -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfig_Normal-imple-64X Provisioning_dependency_info.dat -o / Users / nader / Library / Developer / Xcode / DerivedData / SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz / Build / Products / Debug-iphonesimulator / SimpleLink \\ Provisioning.app/SimpleLink \\ Provisioning

ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:找不到-lPods clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)

  1. pod install 吊舱安装
  2. open your project from .xcworkspace 从.xcworkspace打开您的项目
  3. rebuild 重建

Go to : Yourproject -> Manage schemes -> tick on Pods-YourProject 转到:Yourproject-> Manage schemes->在Pods-YourProject上打勾

It will add the pods project to your project. 它将pods项目添加到您的项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM