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

时间:2020-12-23 10:46:07

These are error about it

这些都是错误的

 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)
Who can help me ,thx

3 个解决方案

#1


1  

You can relink those things "Build settings->Linking->Other Linker Flags"

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

  1. AFNetworking
  2. AFNetworking
  3. MGSwipeTableCell
  4. MGSwipeTableCell
  5. MJRefresh
  6. MJRefresh
  7. iRate
  8. 发怒的

Is it your project? Sometime , the code people shared in Internet could lack of some lib.

这是你的项目吗?有时候,人们在互联网上共享的代码可能缺少一些lib。

#2


1  

You can relink those things "Build settings->Linking->Other Linker Flags" Add:$(inherited)

你可以重新链接那些东西“Build settings-> Linking-> Other Linker Flags”Add:$(inherited)

#3


0  

Go to edit scheme as shown below.

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

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

Then uncheck all other targets except your main target under build tab.

然后取消选中构建选项卡下除主目标之外的所有其他目标。

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

#1


1  

You can relink those things "Build settings->Linking->Other Linker Flags"

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

  1. AFNetworking
  2. AFNetworking
  3. MGSwipeTableCell
  4. MGSwipeTableCell
  5. MJRefresh
  6. MJRefresh
  7. iRate
  8. 发怒的

Is it your project? Sometime , the code people shared in Internet could lack of some lib.

这是你的项目吗?有时候,人们在互联网上共享的代码可能缺少一些lib。

#2


1  

You can relink those things "Build settings->Linking->Other Linker Flags" Add:$(inherited)

你可以重新链接那些东西“Build settings-> Linking-> Other Linker Flags”Add:$(inherited)

#3


0  

Go to edit scheme as shown below.

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

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

Then uncheck all other targets except your main target under build tab.

然后取消选中构建选项卡下除主目标之外的所有其他目标。

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