Open jgw96 opened 8 years ago
Hello, thanks for opening an issue with us! What command are you running when you get this error? It looks like you are using the wkwebview plugin, am i correct?
From @snehoo on September 28, 2016 18:39
Yes using wkwebview plugin.
ionic prepare ios, then executed the xcode project via xCode and then Build and Run on iOS device.
everything ok till i upgraded to Sierra and xCode 8. Thanks
If possible, could you try with a project that is not using the WkWebView plugin and see if you get the same error? Thanks!
From @snehoo on September 28, 2016 19:2
YEP! i guess that was it 🙏
From @snehoo on September 28, 2016 20:4
yes same one
Got the same Issues. Are there any news or solutions out there?
@snehoo @weissadrian Can you guys try to remove the platforms/ and plugins/ folder and recreate the Cordova project from scratch:
rm -rf platforms
rm -rf plugins
cordova platform add ios@4.2.0
ionic build
then, manually open the Xcode project and run it.
Thanks for the advice but it makes no difference. Tried it several times before. As soon as the wkwebview ist involved you get a runtime error. Happens since Xcode 8 / iOS10 :/
I had a similar error to this on another plugin. Have you tried building on another iPhone? If it works on another phone like it did for me then factory reset the phone with the error then restore then rebuild with Xcode and the error disappeared.
Same exact problem.
Ps. For Ionic 2 though. Tried using the ionic 2 conference project.
Getting the same problem when running the ionic 2 conference project on ios 10
I can't reproduce it. iPhone 6. iOS10. ionic 2 conference app.
Run on Iphone SE Ios 10.0.2
Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a
I struggled with this crash for hours before i finally figured out that Safari was responsible. It was due to the option Develop>Device>Automatically show web inspector for JSContext. If it doesn't work try quit Safari completely.
@fathyb thanks that fixed it
Ran into this same issue with a native implementation of WKWebview, unrelated to the cordova plugin. Started happening right after upgrading to Sierra (already had Xcode 8 and running iOS10 on device on El Capitan).
Thanks @fathyb, your fix worked!
From @snehoo on September 28, 2016 18:26
Everything was running fine then suddenly this, oh yeah upgraded to Sierra before this bug and now using xCode 8.0.
looked everywhere, tried restarting everything.
Copied from original issue: driftyco/ionic#8259