Skip to content

fix: removed native code should be cleaned from native project #5225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

rosen-vladimirov
Copy link
Contributor

Currently in case you have native source code, it is added to the pbxproject's references. In case you remove the source code's directory, the files relations are not cleaned from the pbxproject, which makes the build fail. To fix this, instead of skipping the native code refrence for this folder, just call the method to add such pbxgroup and the nativescript-dev-xcode will cleanup the required resources.
Also fix the warning for modulemaps, it must be shown only when you have .h files and you do not have module.modulemap file at the root of the source code directory.

PR Checklist

Fixes/Implements/Closes #[Issue Number].

Currently in case you have native source code, it is added to the pbxproject's references. In case you remove the source code's directory, the files relations are not cleaned from the pbxproject, which makes the build fail. To fix this, instead of skipping the native code refrence for this folder, just call the method to add such pbxgroup and the nativescript-dev-xcode will cleanup the required resources.
Also fix the warning for modulemaps, it must be shown only when you have `.h` files and you do not have module.modulemap file at the root of the source code directory.
@rosen-vladimirov rosen-vladimirov self-assigned this Jan 22, 2020
@cla-bot cla-bot bot added the cla: yes label Jan 22, 2020
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

@dtopuzov
Copy link
Contributor

test cli-smoke ios-runtime-tests-xcode11

@rosen-vladimirov rosen-vladimirov merged commit 25a4046 into master Jan 22, 2020
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-prepare-native-sources branch January 22, 2020 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants