When I try generate package for Mobile, give this error:
Log
[2018-08-01T13:02:17.306Z] [INFO] Start processing job request...[2018-08-01T13:02:17.311Z] [INFO] Start generating application...[2018-08-01T13:02:17.311Z] [INFO] Nativizer version: 1.1.x[2018-08-01T13:02:17.312Z] [INFO] Template version: 3.1.0[2018-08-01T13:02:17.312Z] [INFO] Creating a temporary folder for the application...[2018-08-01T13:02:17.314Z] [INFO] Creating the required directory structure for your cordova application...[2018-08-01T13:02:24.450Z] [INFO] Getting application resources...[2018-08-01T13:02:24.468Z] [INFO] Processing application resources...[2018-08-01T13:02:24.802Z] [INFO] Generating application assets...[2018-08-01T13:02:28.662Z] [INFO] Applying configurations in the config.xml file...[2018-08-01T13:02:28.676Z] [INFO] Applying advanced configurations in the config.xml file...[2018-08-01T13:02:28.677Z] [INFO] Applying custom application icons...[2018-08-01T13:02:28.677Z] [INFO] Applying custom application splashscreens...[2018-08-01T13:02:28.677Z] [INFO] Applying application preferences...[2018-08-01T13:02:28.685Z] [INFO] Writing your cordova preferences...[2018-08-01T13:02:28.687Z] [INFO] Applying application accessList...[2018-08-01T13:02:28.688Z] [INFO] Adding target platform...[2018-08-01T13:06:04.386Z] [INFO] Applying plugins in the config.xml file...[2018-08-01T13:06:04.386Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-camera#2.3.2-OS[2018-08-01T13:06:04.386Z] [INFO] Plugin Action: add[2018-08-01T13:06:31.462Z] [INFO] Plugin Id: https://github.com/OutSystems/cordova-plugin-geolocation.git#2.4.1[2018-08-01T13:06:31.462Z] [INFO] Plugin Action: add[2018-08-01T13:06:44.877Z] [INFO] Plugin Id: https://github.com/kelter-antunes/cordova-plugin-launch-navigator.git[2018-08-01T13:06:44.878Z] [INFO] Plugin Action: add[2018-08-01T13:07:00.270Z] [INFO] Plugin Id: https://github.com/OutSystems/csZBar.git#v1.3.3.OS[2018-08-01T13:07:00.270Z] [INFO] Plugin Action: add[2018-08-01T13:07:17.956Z] [INFO] Plugin Id: https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin#4.2.0[2018-08-01T13:07:17.956Z] [INFO] Plugin Action: add[2018-08-01T13:07:30.153Z] [INFO] Plugin Id: https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps[2018-08-01T13:07:30.153Z] [INFO] Plugin Action: add[2018-08-01T13:07:37.151Z] [ERROR]You have been opted out of telemetry. To change this, run: cordova telemetry on.No scripts found for hook "before_plugin_add".Calling plugman.fetch on plugin "https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps"savingRunning command: npm install https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps --production --saveCommand finished with error code 1: npm install,https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps,--production,--saveError: Failed to fetch plugin https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps via registry.Probably this is either a connection problem, or plugin spec is incorrect.Check your connection and plugin name/version/URL.Error: npm: Command failed with exit code 1 Error output:npm ERR! code ENOPACKAGEJSONnpm ERR! package.json Non-registry package missing package.json: git+https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps.git.npm ERR! package.json npm can't find a package.json file in your current directory.npm ERR! A complete log of this run can be found in:npm ERR! /Users/mabs02/.npm/_logs/2018-08-01T13_07_37_066Z-debug.log[2018-08-01T13:07:37.151Z] [ERROR] Build failed with the following error: Error fetching Cordova plugin: https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps.[2018-08-01T13:07:37.152Z] [INFO] Zipping application source...[2018-08-01T13:08:19.648Z] [INFO] Application was not successfully generated![2018-08-01T13:08:19.648Z] [INFO] Execution time: 363014ms
Hello Marcel,
Thanks for the heads up! The problem should be fixed now. It was related to a change in the way we build native applications.
Rodrigo Coutinho wrote:
Not work
Rodrigo, still getting error from this plugin man
I've just tested and it worked fine... would you mind sending the log file, just to make sure the error is the same?
Thanks
We're getting the same error.
Our only solution is to remove this plugin.
Daniel Brooks wrote:
Can you please send me the log? You can find it in Service Center.
Thank you
Mobile Apps Generation?
There's no place to export and nothing to drill down to there.
There was no error logged in the main Error Log and the General Log just shows the deployment scripts kicking off but no error/issue regarding Cordova or mobile generation.
Where would OutSystems would tell me something useful?
You should find that information on the application page you're trying to generate in Service Center. Something like this:
Ok, thanks.
Still no more information though.
After I removed the CheckGPS plugin, Apple was able to compile, but Android will not and it gives me a blank error for what Cordova plugin is failing.
Is it possible that the entire project got corrupted?
Any chance you can send me the application via private message, including the plugins it is using?
Sorry Rodrigo, I'm unable to do that.
Hi,I also got the same problem but the build log is not the same.Please see the attached file for reference.
Cheers,JohnB
John Guiller wrote:
John, where did you find those logs? I don't have access to our on-site OutSystems server but I can point someone to those logs if I know where they are.
Thanks!
Hi Daniel,I got them in the Service Center > Factory; similar to the image above.
I think, for you to be able to download the build log is that you have to elevate your access though not sure of it.Hopefully, there will be a fix for this one soon.Cheers,JohnB
Thanks, we must not have your version.
We're running Version 10.0.603.0.
Thanks,
Daniel Brooks
Hi,Good day.
Are there any updates to this issue?
Hello John. Sorry for the late reply, I was on vacations.
Looking at the log you sent, seems like there is a conflict between the dependencies of 2 plugins. One is installing cordova-plugin-geolocation.git version 2.4.1, while cordova-plugin-fastrde-checkgps depends on version 1.0.1.
Could you please let me know which other plugins are you using?
Hi Rodrigo,Good day.I am using geolocation to get the geocodes of the mobile device while the checkgps is for checking if gps is enabled or not. So basically, we use first checkgps to determine if GPS is enabled or not before determining or calculating the geocodes.Since Geolocation doesn't have the feature to check if GPS is enabled or not, we use the CheckGPS one hence we are using both in the app.
I've updated the plugin to be compatible with geolocation. I just tested a build on my platform and it seems to be good. Can you please try to build the native app now?
Hi Rodrigo,BIG thanks for the updates you made just now.It went successful on my end.