错误:找不到-lPods

时间:2017-10-16 14:49:42

标签: ios xcode afnetworking afnetworking-3

我用AFNetworking和伐木工人下载了这个项目,它不会编译。 以下是我收到的错误,你能指导我如何解释它,如果你知道错误是什么?

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 /箱:在/ 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 /产品/ 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 / Deri vedData / 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/SimpleLink \ 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 __entitl ements -Xlinker /Users/nader/Library/Developer/Xcode/DerivedData/SmartConfigCC31XX-axrpiaydjwsrwxhbpqketglbghrz/Build/Intermediates.noindex/SmartConfigCC31XX.build/Debug-iphonesimulator/SmartConfigCC31XX.build/SimpleLink \ provisioning.app.xcent -lFirstTimeConfig -lCocoaLumberjack - 框架SystemConfiguration -framework Security -framework AVFoundation -liconv -framework QuartzCore -framework CoreVideo -framework CoreMedia -framework CoreGraphics -framework UIKit -framework Foundation -lPods -lPods-SmartConfigCC31XX -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 \ prov isioning

ld:找不到-lPods的库 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

2 个答案:

答案 0 :(得分:0)

  1. pod install
  2. 从.xcworkspace
  3. 打开您的项目
  4. 重建

答案 1 :(得分:0)

转到: Yourproject-> Manage schemes->在Pods-YourProject上打勾

它将pods项目添加到您的项目中。

相关问题