Skip to content

fix: Prepare for iOS with cloud builds fails on non macOS #3511

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
Apr 3, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

In cloud builds, when we try to prepare the project for iOS, sometimes we fail as the cleanDestinationApp does not pass correct arguments to ensurePlatformInstalled method.
When we have cloud builds, the last argument should declare that the native prepartion should be skipped. When we do not pass it, the logic determines that the platform is not fully added and tries to add it again.
The whole platforms/ios directory is deleted and then we try preparing the project again. At some point the code fails as there are missing files in the platforms/ios (we have deleted them).

Pass the correct arguments, so the prepare will skip the native part in the mentioned case.

PR Checklist

What is the current behavior?

Trying to build application for iOS with webpack in Sidekick leads to error.

What is the new behavior?

Correct arguments are passed and the application can be build with Sidekick.

In cloud builds, when we try to prepare the project for iOS, sometimes we fail as the `cleanDestinationApp` does not pass correct arguments to `ensurePlatformInstalled` method.
When we have cloud builds, the last argument should declare that the native prepartion should be skipped. When we do not pass it, the logic determines that the platform is not fully added and tries to add it again.
The whole `platforms/ios` directory is deleted and then we try preparing the project again. At some point the code fails as there are missing files in the `platforms/ios` (we have deleted them).

Pass the correct arguments, so the prepare will skip the native part in the mentioned case.
@rosen-vladimirov rosen-vladimirov added this to the 4.0.0 milestone Apr 3, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this Apr 3, 2018
@rosen-vladimirov rosen-vladimirov requested a review from Fatme April 3, 2018 07:13
@rosen-vladimirov rosen-vladimirov merged commit 51ba9d2 into release Apr 3, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-prepare-ios branch April 3, 2018 08:29
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.

2 participants