NativeScript / NativeScript/nativescript-cli

[iOS] MaterialComponents dependency clash

Offen
#4,954 3 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@KristianDD arbeitet bereits daran.

Seit 17.9.2019.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.