search

Home  >  Q&A  >  body text

objective-c - 下载了别人的源码,出现ld:library not found for -lXXX 的问题

ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/AFNetworking'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/MJExtension'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/MJRefresh'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/Masonry'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/SDWebImage'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/SVProgressHUD'
ld: warning: directory not found for option '-L/Users/chenkuntao/Library/Developer/Xcode/DerivedData/XCFApp-cvwcrddriawvgjbdwjhslghjmekh/Build/Products/Debug-iphonesimulator/pop'
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何解决报错

为情所困为情所困2757 days ago855

reply all(2)I'll reply

  • 为情所困

    为情所困2017-05-02 09:27:27

    Is there a podfile file in the project? You need to install it

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:27:27

    The third-party package is not installed. If there is a podfile, pod install it

    reply
    0
  • Cancelreply