搜尋

首頁  >  問答  >  主體

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 天前852

全部回覆(2)我來回復

  • 为情所困

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

    工程裡面是不是有podfile 文件,需要你安裝上

    回覆
    0
  • 为情所困

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

    第三方的套件沒有安裝,如果有podfile的話pod install一下

    回覆
    0
  • 取消回覆