cordova

libc++abi.dylib: terminating with uncaught exception of type NSException running emulator for Ionic 4 app

孤人 提交于 2020-04-30 08:47:29
问题 I have an Ionic 4 app that was working fine until I installed cordova firebase analytics plugin. After uninstalling that plugin I had to remove the ios and android platform then re-add. The project build successfully inside of Visual Studio Code. I then attempt to run the emulator in xCode and I get the following error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance

libc++abi.dylib: terminating with uncaught exception of type NSException running emulator for Ionic 4 app

北城余情 提交于 2020-04-30 08:46:20
问题 I have an Ionic 4 app that was working fine until I installed cordova firebase analytics plugin. After uninstalling that plugin I had to remove the ios and android platform then re-add. The project build successfully inside of Visual Studio Code. I then attempt to run the emulator in xCode and I get the following error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance

cordova build iOS App on windows os. npm run cordova-build-ios

帅比萌擦擦* 提交于 2020-04-30 06:28:40
问题 I have followed this tutorial to build applications on my windows machine. https://www.npmjs.com/package/vue-cli-plugin-cordova I installed android studio, java jdk 1.8, gradle and android sdk to build for android. Then I ran following command: npm run cordova-build-android I get my desired apk. Now I want to build an iOS-app with following command: npm run cordova-build-ios What do I have to install? Do I need to install a virtual machine, mac os and then xcode? Can I maintain my existing

Able to read downloaded on-demand resource in iOS Simulator but not on physical device

不羁岁月 提交于 2020-04-27 10:41:42
问题 I am using Apple On-Demand resources to try to load a game inside my App. The ODR retrieval works well (with a custom plugin that I developed) but then I am able to read the downloaded on-demand resource only on the simulator, I cannot do the same on a physical device ! The path of the downloaded file that I get through the Objective-C code of my custom plugin ( NSString *path= [[NSBundle mainBundle] pathForResource:@"flying-block-game" ofType:@"html" ]; ) ..is the following: Simulator [odr]

Ionic / Cordova Windows build picking up incorrect MSBUILD path

纵饮孤独 提交于 2020-04-18 05:53:05
问题 I Have had to do a few update of Visual Studio on my Windows 10 machine (after some licensing issues) I use to have Visual Studio Enterprise 2017, which I uninstalled. I now have Visual Studio Professional 2017, and Studio Enterprise 2019 (which I recently installed).I also installed Visual Studio Build Tools 2019 (2) Now, when I try to build my Ionic project via the command I have always used... ionic cordova build windows --prod --release -- --archs="x86 x64 arm" --buildConfig=platform

cordova android vue avd resource public image

左心房为你撑大大i 提交于 2020-04-18 05:48:01
问题 I followed this tutorial and coded my own android cordova app: https://www.npmjs.com/package/vue-cli-plugin-cordova I added the images for my app to the public folder. My whole folder looks like this: my-app2: |-.git |-node_modules |-public --> there are my images in the img folder, the index.css in the css folder and the index.html as main entry point |-src --> there is my Sourcecode folder which works fine |-src-cordova --> In this folder are the settings for my app (config.xml) |-tests |-

Angular/Cordova: MIME Type issue on android device

余生颓废 提交于 2020-04-16 03:42:44
问题 I have created a Cordova application which simply serves the default Angular welcome page when creating a a new project. It works fine in the browser. It works fine when run it on an emulator via Android Studio. When I run it on my android device I get a blank page and the following error is available in the console: polyfills-es2015.5728f680576ca47e99fe.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for

iOS Refused to connect because it appears in neither the connect-src directive nor the default-src directive of the Content Security Policy

本小妞迷上赌 提交于 2020-04-12 09:31:49
问题 So I made a phonegap app which uses socket.io to do stuff. I have the following Content-Security-Policy (CSP) <meta http-equiv="Content-Security-Policy" content=" default-src * data: blob: ws: wss:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * ws: wss:;"> When I start the app on safari / iOS I get the following error: Refused to connect to ws://10.0.1.63:3000/socket.io/?EIO=3&transport=websocket&sid=xTaMJwP3rVy3UnIBAAAi because it appears in neither

iOS Refused to connect because it appears in neither the connect-src directive nor the default-src directive of the Content Security Policy

北战南征 提交于 2020-04-12 09:31:48
问题 So I made a phonegap app which uses socket.io to do stuff. I have the following Content-Security-Policy (CSP) <meta http-equiv="Content-Security-Policy" content=" default-src * data: blob: ws: wss:; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * ws: wss:;"> When I start the app on safari / iOS I get the following error: Refused to connect to ws://10.0.1.63:3000/socket.io/?EIO=3&transport=websocket&sid=xTaMJwP3rVy3UnIBAAAi because it appears in neither

Windows 10 Store: You cannot submit pre-compiled .NET Native packages

烈酒焚心 提交于 2020-04-11 04:07:08
问题 I'm trying to release my application targetting Windows 10 (Universal Windows) based in Cordova to existing Windows Phone 8.1 store record. After generating app package through Store - Create App Packages I get 19 MB file named CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle . Then I upload this file to App Packages and get. CordovaApp.Windows10_1.3.2.0_x86_x64_arm.appxbundle 18.9 MB Package acceptance validation error: You cannot submit pre-compiled .NET Native packages. Please upload