Comments (8)
Hello! Thanks for opening an issue with us! Would you mind posting the whole error here? Also, can you update your Ionic cli by running npm install -g ionic
? It looks you may be running a slightly older version. Finally, could you try with cordova plugin add instead of Ionic plugin add? Thanks!
from cordova-plugin-wkwebview-engine.
That's the whole error, on repeated runs it prints this:
skipping existing file: CDVWKWebViewEngine.h
skipping existing file: CDVWKWebViewEngine.m
skipping existing file: CDVWKWebViewUIDelegate.h
skipping existing file: CDVWKWebViewUIDelegate.m
skipping existing file: xhr.js
skipping existing file: ios-wkwebview-exec.js
skipping existing file: .gitignore
skipping existing file: CDVWKWebViewEngineTest.m
skipping existing file: Info.plist
skipping existing file: project.pbxproj
skipping existing file: contents.xcworkspacedata
skipping existing file: CDVWKWebViewEngineTest.xccheckout
skipping existing file: CDVWKWebViewEngineLib.xcscheme
skipping existing file: CDVWKWebViewEngineLibTests.xcscheme
skipping existing file: contents.xcworkspacedata
skipping existing file: CDVWKWebViewEngineTest.xccheckout
skipping existing file: CordovaLib.xcscheme
skipping existing file: README.md
skipping existing file: package.json
skipping existing file: plugin.xml
skipping existing file: tests.js
Error: Unexpected token } in JSON at position 3185
The plugin folder appears, so the installation doesn't fail completely.
cordova plugin add
gives the same result.
Installing ionic-cli 2.0.0 doesn't work (there's already an issue about that on the cli repo ionic-team/ionic-cli#1288), but it's just 2.0.0-beta.37 relabeled, if I'm not mistaken, so that shouldn't be the problem.
from cordova-plugin-wkwebview-engine.
Interesting, thanks for the info. @manucorporat any ideas on the above? @Kobzol Out of curiosity what version of xcode are you running? Also, on the cli issue, do you normally use sudo
to install global npm packages?
from cordova-plugin-wkwebview-engine.
In case it helps troubleshooting:
install works ok for me with no errors, I am using the latest ionic@beta as of today. ionic info for reference, I also updated to the latest version of the ios platform before installing.
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.11.1
Xcode version: Xcode 7.3.1 Build version 7D1014
from cordova-plugin-wkwebview-engine.
My Xcode version is 7.3.1 Build version 7D1014. I'm indeed using sudo
to install global npm packages.
from cordova-plugin-wkwebview-engine.
Hi @Kobzol! can you post your package.json
, platforms/platforms.json
, plugins/ios.json
, fetch.json
?
Cordova CLI always prints terrible error messages.
Can you also try to recreate the whole cordova project? ie. remove platforms/
and plugins/
After that you would have to:
cordova platform add ios
and manually add the plugins in case you did not use --save
previously.
also, you should: ionic build
< this will compile the TS to JS etc. etc.
from cordova-plugin-wkwebview-engine.
When I removed the platforms
and plugins
directories and manually run cordova platform add ios
, the plugin installation worked. I already tried it before without success, but I used ionic state restore
instead of manually adding the platform, that was the only difference AFAIK. But that command is already deprecated and it works now, so this is resolved, thank you for your help :-)
from cordova-plugin-wkwebview-engine.
@Kobzol glad it worked!
With cordova, removing everything is the best solution most of the times haha
from cordova-plugin-wkwebview-engine.
Related Issues (20)
- Cordova WKWebVIew plugin does not work on simulator HOT 17
- Does Ionic Team supports the plugin? HOT 1
- errors building 1.1.4-dev HOT 1
- Scroll starts ~10px off HOT 2
- Backport "navigation by gestures" (or rebase project on upstream master) HOT 1
- Latest Commit breaks 10 of your production builds - nothing short of a catastrophy HOT 3
- config.xml for wkwebview only working for https link not for spec version HOT 1
- White screen when doing some task for long time. [ProcessSuspension] HOT 2
- iPhone X iOS11 window size
- iOS 11 crash/white screen when in background HOT 4
- Failed to load webpage with error: The network connection was lost. HOT 3
- html5 audio play from cache in iOS 11
- Http failure response for (unknown url): 0 Unknown Error HOT 1
- Gamepad Api's (IOS 11)
- Error if I put app to pause while it is still bootstrapping
- image showing problem PluginKit code 13 HOT 3
- some code is hidden in safari debugger
- app can't load cookies after first install
- Keyboard Overlaying Input Fields
- Cookies from an iframe are not stored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-wkwebview-engine.