Skip to content

applyPluginsCocoaPods fails on case sensitive volumes #5159

Closed
@leevigraham

Description

@leevigraham

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.2.2
  • Cross-platform modules: 6.2.1
  • Android Runtime: 6.2.0
  • iOS Runtime: 6.2.0
  • Plugin(s):
Dependencies:
┌──────────────────┬─────────┐
│ Plugin           │ Version │
│ nativescript-vue │ ^2.4.0  │
│ tns-core-modules │ ^6.2.1  │
└──────────────────┴─────────┘
Dev Dependencies:
┌────────────────────────────────────┬─────────┐
│ Plugin                             │ Version │
│ @babel/core                        │ ^7.0.0  │
│ @babel/preset-env                  │ ^7.0.0  │
│ babel-loader                       │ ^8.0.2  │
│ nativescript-dev-webpack           │ ^1.0.0  │
│ nativescript-vue-template-compiler │ ^2.0.0  │
│ nativescript-worker-loader         │ ~0.9.0  │
│ node-sass                          │ ^4.9.2  │
│ vue-loader                         │ ^15.4.0 │
└────────────────────────────────────┴─────────┘

Describe the bug
File: NativeScript/nativescript-cli/blob/master/lib/services/ios-project-service.ts
Method: applyPluginsCocoaPods
Line https://github.com/NativeScript/nativescript-cli/blob/master/lib/services/ios-project-service.ts#L833

This method checks for the pluginPlatformsFolderPath using the normalizedPlatformName which is iOS

In reality the folder names are lowercase:

Example of a plugin:

To Reproduce

  1. Create a new project on a case sensitive drive
  2. run tns platform add ios
  3. run tns prepare ios

Plugin Podfiles are not added.

Expected behavior

Plugin Podfile should be included

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions