Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Sep 21, 2018

The <project dir>/platforms/<platform>/.../tns_modules directory should contain only the .js code of the application. However, in case nativescript plugin is installed in the node_modules directory of another package (not directly inside the project), its platforms directory is copied to tns_modules as well. This leads to error when trying to build application that has such structure with Xcode 10.
After copying the node_modules to tns_modules recursively remove all platforms directories of all nativescript plugins inside node_modules.

PR Checklist

What is the current behavior?

Build with Xcode fails when nativescript plugin is installed as dependency in node_modules (i.e. it is not installed directly in the node_modules dir of the project.

What is the new behavior?

Build succeeds

Fixes #3932

The `<project dir>/platforms/<platform>/.../tns_modules` directory should contain only the `.js` code of the application. However, in case nativescript plugin is installed in the `node_modules` directory of another package (not directly inside the project), its platforms directory is copied to `tns_modules` as well. This leads to error when trying to build application that has such structure with Xcode 10.
After copying the `node_modules` to `tns_modules` recursively remove all `platforms` directories of all nativescript plugins inside node_modules.
@rosen-vladimirov rosen-vladimirov merged commit 6310203 into master Sep 25, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-copy-frameworks branch September 25, 2018 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants