错误“链接器命令失败,退出代码为1(使用-v查看调用)”

时间:2016-10-01 03:09:11

标签: ios objective-c xcode linker

这些是关于它的错误  

 ld: warning: directory not found for option '-L/Users/luckyxmobile/Library/Developer/Xcode/DerivedData/Family_Health_Tracker-blmdlgtkbfuvvxdcozttgzspcguc/Build/Products/Debug-iphonesimulator/AFNetworking'
ld: warning: directory not found for option '-L/Users/luckyxmobile/Library/Developer/Xcode/DerivedData/Family_Health_Tracker-blmdlgtkbfuvvxdcozttgzspcguc/Build/Products/Debug-iphonesimulator/MGSwipeTableCell'
ld: warning: directory not found for option '-L/Users/luckyxmobile/Library/Developer/Xcode/DerivedData/Family_Health_Tracker-blmdlgtkbfuvvxdcozttgzspcguc/Build/Products/Debug-iphonesimulator/MJRefresh'
ld: warning: directory not found for option '-L/Users/luckyxmobile/Library/Developer/Xcode/DerivedData/Family_Health_Tracker-blmdlgtkbfuvvxdcozttgzspcguc/Build/Products/Debug-iphonesimulator/iRate'
ld: warning: directory not found for option '-L/Users/luckyxmobile/Documents/code/Family Health Tracker-master/Pods/UMengAnalytics-NO-IDFA/umsdk_IOS_analytics_no-idfa_v3.6.7/UMAnalytics_Sdk_3.6.7'
ld: library not found for -lMGSwipeTableCell
clang: error: linker command failed with exit code 1 (use -v to see invocation)
谁可以帮助我,thx

3 个答案:

答案 0 :(得分:1)

你可以重新链接那些东西“Build settings-> Linking-> Other Linker Flags”

  1. AFNetworking
  2. MGSwipeTableCell
  3. MJRefresh
  4. 愤怒
  5. 这是你的项目吗?有时,人们在互联网上共享的代码可能缺少一些lib。

答案 1 :(得分:1)

你可以重新链接那些东西“构建设置 - >链接 - >其他链接器标志” 添加:$(继承)

答案 2 :(得分:0)

转到编辑方案,如下所示。

enter image description here

然后取消选中构建标签下主目标以外的所有其他目标。

enter image description here