NativeScript / NativeScript/nativescript-cli
Custom plugin link issue in Xcode
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
From @smartsanja2013 on March 30, 2018 4:31
I have created a native ios plugin and exported as .tgz
Now I have added the plugin using this command
tns plugin add ./mywork/third-party-package/nativescript-mylib-1.0.0.tgz
But when building the Xcode project, I am getting following error
ld: library not found for -lMYLIB
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But, In xcode project, I can see mylib.a already being added in to Linked Frameworks and Binaries
In order to build the Xcode project,
Every time I need to delete the mylib.a from Framworks folder in xcode and need to add again manually (with the "copy items if needed" option selected)
Is there any workaround to solve this problem?
Copied from original issue: NativeScript/NativeScript#5601
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先重現 tns plugin add ./mywork/third-party-package/nativescript-mylib-1.0.0.tgz 流程並建置 Xcode 專案。檢查封裝的 mylib.a 如何新增至 Linked Frameworks and Binaries;當專案能夠連結 -lMYLIB,而不必在選取「copy items if needed」的情況下手動刪除並重新新增程式庫時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- ios
- 領域
- cli, mobile
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100