Closed
Description
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:
- https://github.com/NativeScript/NativeScript/tree/master/nativescript-core/platforms/ios
- https://github.com/NativeScript/NativeScript/tree/master/tns-core-modules-widgets/ios
- https://github.com/NativeScript/NativeScript/tree/master/tns-platform-declarations/ios
Example of a plugin:
- https://github.com/tjvantoll/nativescript-IQKeyboardManager/tree/master/src/platforms/ios
- https://github.com/EddyVerbruggen/nativescript-plugin-firebase/tree/master/src/platforms/ios
To Reproduce
- Create a new project on a case sensitive drive
- run
tns platform add ios
- run
tns prepare ios
Plugin Podfiles are not added.
Expected behavior
Plugin Podfile
should be included