-
Notifications
You must be signed in to change notification settings - Fork 986
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
Setting WKWebViewOnly causes cordova platform add ios
to fail
#725
Comments
same problem, any solution? |
I have same problem, any solution for this? |
Same problem here. |
Same problem, with this basic repro:
fails with
|
Same problem here. |
🚀 Could it be released in a cordova-ios@5.1.1 or is 5.2.0 coming soon? |
Looks like it works if to do Response:
|
Is version 5.1.1 going to be published to npm? It's a release here on git (although package.json never reflected this version), and documented in release notes, but not on npm. |
When it has passed the mandatory vote process on the mailing list, it will be published. |
cordova platform add ios@5.1.1 solved my problem. |
Bug Report
Problem
When setting
WKWebViewOnly
totrue
as an iOS platform preference (see #715), trying to runcordova platform add ios
fails when the project does not have existing iOS as an existing platform.What is expected to happen?
The command should succeed, and
WKWebViewOnly
should control the setting ofWK_WEB_VIEW_ONLY
inCordovaLib/CordovaLib.xcodeproj/project.pbxproj
.What does actually happen?
The command fails with the following error:
Information
Our build process removes the
platforms
andplugins
directories prior to each build to ensure a clean slate for building. When adding theWKWebViewOnly
preference, this causes the build to fail.It seems like if iOS is already added as a platform when the
WKWebViewOnly
preference is added, the error does not occur.The error not occur if the
WKWebViewOnly
preference is removed.After I receive the error, I can see that the file
platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
does indeed exist. So it seems like there might be some race condition where the project is trying to be modified before it is fully created?Command or Code
I created an empty Cordova project that demonstrates the issue: https://github.com/l3ender/hello-cordova. Clone and follow steps in readme to reproduce.
If you have an existing project, you should be able to reproduce with the following:
Output from the above command:
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: