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)
您的項目中是否有.cpp或.mm文件? (Xcode忽略標準庫,除非它看到包含它的原因。) –
不,我在項目中沒有.cpp和.mm文件。 –
添加一個,即使它什麼都不做。我認爲鏈接器需要引用標準庫。 –