addFramework uses incorrect path for Swift libraries
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, nodejs
- 领域
- mobile
调研方向
从 addFramework 入口点开始,将其对 PBXFileReference 路径的处理与 issue 中链接的实验性补丁进行比较。重现 libswiftAVFoundation.tbd 示例,并确认 Swift 库使用 usr/lib/swift,而其他 framework 保留其预期路径。
由索引模型根据 Issue 内容生成。
描述
The default path used in the PBXFileReference for frameworks with .tbd extensions is /usr/lib. However, I believe that Swift libraries with the same extension needs to have the path /usr/lib/swift.
For example, if you use addFramework to add libswiftAVFoundation.tbd it produces the following PBXFileReference in the project file:
27874A9BBF2444AABA64E8E0 /* libswiftAVFoundation.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftAVFoundation.tbd; path = usr/lib/libswiftAVFoundation.tbd; sourceTree = SDKROOT; };
This will ultimately result in a Crash on iOS versions 12.1 or lower, before the Swift runtime was bundled with the OS.
If you add the library manually in Xcode, the project file has the following `PBXFileReference' added:
5DBEA893249434B30034407A /* libswiftAVFoundation.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftAVFoundation.tbd; path = usr/lib/swift/libswiftAVFoundation.tbd; sourceTree = SDKROOT; };
Note the path difference:
cordova-node-xcode: usr/lib/libswiftAVFoundation.tbd
Xcode: usr/lib/swift/libswiftAVFoundation.tbd
I have an experimental patch here to work around this.
Assuming I'm on the right track here, I'll submit a pull request but I'm hoping that the maintainers can recommend if the approach I used is acceptable or if there's a more effective way to select the correct default path for these libraries than introducing another option.
- 主要语言
- JavaScript
- 星标
- 218
- 派生
- 102
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cordova-node-xcode 的其他 Issue
-
Add & Improve JSDocs可能重新可做 @erisu 于 109 天前认领,目前没有进行中的 PR。 未关闭enhancement
apache/cordova-node-xcode#171 · 已指派 1 人 ·
-
🔖 New release未关闭
难度 3/5 1-2 天 新手友好度 35/100
apache/cordova-node-xcode#162 · 4 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 28/100
apache/cordova-node-xcode#139 · 2 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
apache/cordova-node-xcode#138 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
apache/cordova-node-xcode#137 · 2 个 reaction ·
查看 apache/cordova-node-xcode 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
druxt/umami.demo.druxtjs.org#527 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
NuSkooler/enigma-bbs#907 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100
-
good first issue
难度 2/5 1-3 小时 新手友好度 70/100
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复