2016-08-31 19 views
0

我有一個使用zbar和SDK的QR碼閱讀器項目鏈接錯誤,但是當我嘗試運行它,我得到這個錯誤:當我嘗試運行我的Xcode項目,它顯示了我上傳的圖像

ld: warning: directory not found for option '-L/Users/rweber/work/cornell_qr_reader/TestFlightSDK2.1.4'

enter image description here

如何解決此錯誤?

+1

[Xcode的鏈接錯誤的可能重複:LD:庫未找到對於-twsapi](http://stackoverflow.com/questions/24267730/xcode-linker-error-ld-library-not-found-for-twsapi) – NSNoob

+0

[鏈接器命令可能重複失敗,退出代碼1(使用 - v以查看調用)產品名稱在xcode](http://stackoverflow.com/questions/29182257/linker-command-failed-with-exit-code-1-use-v-to-see-invocation-after-changing) –

+0

我們如何可以找到它複製或不復制的天氣bcz這個項目是由其他開發者 – vamsi

回答

0

我認爲你沒有正確地把你的第三方庫放在你的xcode包中。您的圖書館沒有正確複製我認爲或庫中缺少一些文件,因爲警告顯示directory not found

在xcode中拖放庫時,會彈出一個對話框,必須檢查copy item if neededadd to targets。並且create group也應該被檢查。

參照this post它可能會有所幫助。

0

對我來說,它的工作

  1. 點擊您的項目在左側邊欄

  2. 點擊 '生成設置'

  3. 轉到 '其他鏈接器標記'

  4. 點擊'發佈'

  5. ${TARGET_BUILD_DIR}/libCordova.a

    更改 「-force_load」 值${BUILT_PRODUCTS_DIR}/libCordova.a

我希望它爲你工作

+0

在我的編譯設置中啓動的,其他鏈接器標誌沒有路徑爲空,並且在此之後沒有這樣的$ {BUILT_PRODUCTS_DIR} /libCordova.a文件 – vamsi

+0

你有xcode的版本嗎? – seggy

+0

比你可以按照這個http://stackoverflow.com/questions/29182257/linker-command-failed-with-exit-code-1-use-v-to-see-invocation-after-changing – seggy

相關問題