NativeScript / NativeScript/nativescript-cli
Feature Request: Show warning during iOS build with missing .xcconfig
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Yes
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 4.2.0-2018-07-12-11970 (next)
Project is using4.1.0
Please tell us how to recreate the issue in as much detail as possible.
At some time in previous release, maybe NS 2 or 3x projects provided a build.xcconfig file which specifies:
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
for the app icons during a build which works great. However, if this file is deleted (happened on a project today and took hours to figure out why the icons weren't showing when installing the app), then the app icon is not set during a build and no warnings/info is provided.
This could be a potential time saver for others in the future if the file is not found. I don't know all the implications of that file during xcode builds so I won't pretend to 😄 - it would have saved me several hours tracking down the file was deleted months ago from the project repository and that I had to set the icons in xcode on the build settings page after opening the workspace.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 CLI 中的 iOS 构建处理,并搜索对 build.xcconfig 或 ASSETCATALOG_COMPILER 设置的引用。在缺少该文件的情况下复现一次构建,然后确定警告应出现的位置,并验证在文件存在时构建不会发生变化且警告会显示。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, javascript
- 领域
- build-system, cli, mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100