NativeScript / NativeScript/nativescript-cli

[iOS] MaterialComponents dependency clash

未关闭
#4,954 3 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@KristianDD 已经在做这个了。

开始于 2019年9月17日。

主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.3
  • Cross-platform modules: 6.0.6
  • Android Runtime: 6.0.1
  • iOS Runtime: 6.0.2
  • Plugin(s):

Describe the bug

The hardcoded version of the MaterialComponents/Tabs pod restricts the use of other updated components such as MaterialComponents/ProgressView. It results in an error when installing the pods:

[!] CocoaPods could not find compatible versions for pod "MaterialComponents/ProgressView+Theming":
  In Podfile:
    MaterialComponents/ProgressView+Theming

Specs satisfying the `MaterialComponents/ProgressView+Theming` dependency were found, but they required a higher minimum deployment target.
'pod install' command failed.

To Reproduce

Add a podfile to any project with the following lines:

pod 'MaterialComponents/ProgressView'
pod 'MaterialComponents/ProgressView+Theming'

Expected behavior
App compiles fine with no problems.

Sample project

Additional context

One restriction on the iOS side compared to the Android side is that on Android you are able to set variables to modify the library versions that uses, this is currently not true for the iOS side. Adding this capability may be a better long term solution.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。