iOS package path has changed, ionic run ios throws an error
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- ios, typescript
- 领域
- cli, mobile-dev
调研方向
从引用路径中的 packages/@ionic/cli/src/lib/integrations/cordova/project.ts 开始,跟踪 iOS 构建产物路径是如何传递给 native-run 的。使用 Xcode 14.3.1 通过 ionic cordova run ios --device 重现问题,然后将失败的路径 platforms/ios/build/device 与 platforms/ios/build/Debug-iphoneos 进行比较。完成的标准是该命令能够找到 IPA,并通过 native-run 启动它,且不出现路径错误。
由索引模型根据 Issue 内容生成。
描述
Description:
It appears that the latest version of XCode builds the app to a different folder (my version is 14.3.1). This causes an error when you run ionic cordova run ios because native-run is given the wrong path.
The command executed and error:
> native-run ios --app platforms/ios/build/device/Zimmo.ipa --device
[native-run] ERR_UNKNOWN: Path 'platforms/ios/build/device/Zimmo.ipa' not found
[ERROR] An error occurred while running subprocess native-run.
However, my app is now in platforms/ios/build/Debug-iphoneos folder. This works:
native-run ios --app platforms/ios/build/Debug-iphoneos/Zimmo.ipa --device
Steps to Reproduce:
- In any Cordova + Ionic project, install the latest version of XCode.
- Run
ionic cordova run ios --device
Output:
[native-run] ERR_UNKNOWN: Path 'platforms/ios/build/device/Zimmo.ipa' not found
[ERROR] An error occurred while running subprocess native-run.
My ionic info:
Ionic:
Ionic CLI : 7.1.1 (/Users/mathieu/.nvm/versions/node/v18.12.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.1.0
@angular-devkit/build-angular : 16.2.1
@angular-devkit/schematics : 16.2.1
@angular/cli : 16.2.1
@ionic/angular-toolkit : 7.0.0
Cordova:
Cordova CLI : 12.0.0 ([email protected])
Cordova Platforms : android 12.0.1, ios 7.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 21 other plugins)
Utility:
cordova-res : not installed globally
native-run (update available: 1.7.3) : 1.7.2
System:
Android SDK Tools : 26.1.1 (/Users/mathieu/Library/Android/sdk)
ios-deploy : 1.12.1
ios-sim : 8.0.2
NodeJS : v18.12.1 (/Users/mathieu/.nvm/versions/node/v18.12.1/bin/node)
npm : 8.19.2
OS : macOS Unknown
Xcode : Xcode 14.3.1 Build version 14E300c
Other Information:
I guess the problem is caused here:
https://github.com/ionic-team/ionic-cli/blob/develop/packages/%40ionic/cli/src/lib/integrations/cordova/project.ts#L15
I'm not sure if this can just be changed, this may need to become an array for backwards compatibility ? I can create a PR for this if you like.
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 681
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/ionic-cli 的其他 Issue
-
triage
难度 1/5 1 小时以内 新手友好度 65/100
ionic-team/ionic-cli#5016 ·
-
triage
难度 5/5 一周以上 新手友好度 15/100
ionic-team/ionic-cli#5131 ·
-
triage
难度 3/5 1-2 天 新手友好度 56/100
ionic-team/ionic-cli#5130 ·
-
triage
难度 3/5 1-2 天 新手友好度 72/100
ionic-team/ionic-cli#5129 ·
-
triage
难度 3/5 1-2 天 新手友好度 42/100
ionic-team/ionic-cli#5127 · 2 条评论 ·
查看 ionic-team/ionic-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
szTheory/exifcleaner#383 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
LucasSantana-Dev/Lucky#2637 ·
维护者通常 1 天内回复
-
good first issue type: bug
难度 1/5 1 小时以内 新手友好度 88/100
medusajs/medusa#17127 · 2 条评论 ·
维护者通常 1 天内回复
-
Desktop: SSH connect and forward budgets are fixed at 15 s with no override; slow links loop on boot failure可能已有人在做 @liuhao1024 今天认领。 未关闭backend/ssh comp/desktop P2 type/bug
难度 2/5 1-3 小时 新手友好度 84/100
NousResearch/hermes-agent#132508 · 3 条评论 ·
维护者通常 1 天内回复
-
Show the error reference on the error page可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 86/100
tomjn/coilbox-hub#454 ·
维护者通常 1 天内回复