2016-10-10 91 views
0

我正在Worklight上開發混合應用程序。從Xcode 7.3.1升級之後。到Xcode 8,當試圖生成XCarchive或Build並在模擬器上運行App時,我開始收到以下錯誤消息。Xcode 8:鏈接器命令失敗,退出代碼1(使用-v查看調用)

使用

MobileFirst平臺6.3.0

配置:

體系結構:標準架構(ARMv7的,arm64) - $(ARCHS_STANDARD)

有效的體系結構:armv7,armv7s,arm64

錯誤日誌在Xcode:

ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/WorklightSDK"' 
ld: warning: directory not found for option '-L"/Users/hjimenez/Documents/eclipseKepler - Build 3.1.0/ITS/apps/ITS/iphone/native/Tealeaf"' 
ld: library not found for -lWorklightStaticLibProject 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

您的項目中是否有.cpp或.mm文件? (Xcode忽略標準庫,除非它看到包含它的原因。) –

+0

不,我在項目中沒有.cpp和.mm文件。 –

+0

添加一個,即使它什麼都不做。我認爲鏈接器需要引用標準庫。 –

回答

1

我解決了該問題將下面的資源投入到 「構建階段」 選項卡:

  • UIKit.Framework
  • 的libstdC++。 6.tbd

而且是可能的,你需要從刪除以下資源 「構建階段」 選項卡,(但首先嚐試上述修正):

  • 的libC++ dylib
  • 的libstdC++ dylib
相關問題