Code Monkey home page Code Monkey logo

Comments (8)

jgw96 avatar jgw96 commented on June 29, 2024

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.

Kobzol avatar Kobzol commented on June 29, 2024

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.

jgw96 avatar jgw96 commented on June 29, 2024

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.

ghenry22 avatar ghenry22 commented on June 29, 2024

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.

Kobzol avatar Kobzol commented on June 29, 2024

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.

manucorporat avatar manucorporat commented on June 29, 2024

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.

Kobzol avatar Kobzol commented on June 29, 2024

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.

manucorporat avatar manucorporat commented on June 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.