2016-10-01 151 views
1

這些錯誤吧
錯誤「連接器的命令,退出代碼爲1(使用-v看看調用)失敗」

 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

+0

你看到在構建階段的所有.h文件 - >編譯源代碼。如果沒有,然後手動添加該文件。或重新鏈接所有庫 –

回答

1

您可以重新鏈接那些事 「構建設置 - > Linking->其它鏈接器標記」

  1. AFNetworking
  2. MGSwipeTableCell
  3. MJRefresh
  4. 憤怒

這是你的項目嗎?有時候,在互聯網上共享的代碼可能缺少一些庫。

+0

沒有這些選項,這些是容器 – RichardSleet

0

轉到如下圖所示編輯方案。

enter image description here

然後取消所有其他目標除了生成選項卡下,您的主要目標。

enter image description here

+0

我刪除了關於測試和UItest,但它不起作用 – RichardSleet

1

您可以重新鏈接那些事「構建設置 - > Linking->其它鏈接器標記」 地址:$(繼承)

+0

選擇您的目標項目:構建設置 - >鏈接 - >其他鏈接器標誌添加:$(繼承) –

相關問題