Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhoneGap Build Issues with 1.4.0+ #477

Closed
jfi opened this issue May 11, 2016 · 13 comments
Closed

PhoneGap Build Issues with 1.4.0+ #477

jfi opened this issue May 11, 2016 · 13 comments

Comments

@jfi
Copy link

jfi commented May 11, 2016

Hi @brodybits, thanks for your work on this plugin. We've been using it in an app with PhoneGap Build which was working fine until today, when I got the following error and it refused to build:

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage" via npm Installing "cordova-sqlite-storage" at "1.4.1" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':Error: Uh oh! "/private/tmp/gimlet/70256508913260/2067507/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found! at Object.module.exports.common.copyFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:38:40) at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:69:16) at installHelper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:55:16) at module.exports.source-file.install (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:147:13) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:662:27 at Object.ActionStack.process (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25) at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:262:20) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:602:6) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:391:24 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) Uh oh! "/private/tmp/gimlet/70256508913260/2067507/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found!

I was asking for the latest version with a source of npm.

I understand from #466 that you aren't supporting PhoneGap Build as it stands. For anyone who comes across this, I have managed to build successfully by locking the plugin in the config.xml:

<plugin name="cordova-sqlite-storage" source="npm" spec="~0.8.5"/>

The following versions seem to work - at least, they build successfully, I haven't been able to test beyond that:

  • 0.8.5
  • 1.2.0
  • 1.2.1

1.4.0 and 1.4.0 cause the above error.

@brodycj
Copy link
Contributor

brodycj commented May 11, 2016

Thanks @jfi for reporting your findings. This plugin is now using abefore_plugin_install hook in plugin.xml to fetch sqlite3 dependencies via npm and PhoneGap Build (PGB) evidently does not support this.

Older versions will not be supported and may miss important updates, such as fixing the wrong default iOS database location.

I can think of two possible ways forward to supporting this plugin with PGB:

  1. If anyone wants to raise an issue at https://github.com/phonegap/build/issues with an objective that you should be able to install this plugin run the self test functions, PGB should be able to solve this.
  2. If anyone wants to purchase a few hours of support from me I would be happy to re-enroll with PGB and work with PGB to get this working. You may contact me at brodybits@litehelpers.net or sales@litehelpers.net if you are interested.

@jfi
Copy link
Author

jfi commented May 11, 2016

@brodybits Thanks, dropped you an email about option 2. 👍

@derksacklowski
Copy link

Are there any news on this topic as i'm unable to use the current version of the plugin with cordova/ionic-cli. The build process fails, showing the exact same error message.

Cheers

@brodycj
Copy link
Contributor

brodycj commented May 24, 2016

@derksacklowski can you please confirm that you get this error message when using Cordova from a local installation of the Ionic CLI?

If so then please raise a new issue since I want to treat this separately from the issue with PhoneGap Build.

@derksacklowski
Copy link

Nevermind, i had a problem with my local node installation.

@daniel-lang
Copy link

Is there a way to get the current version (1.4.1) running with PhoneGap Build? What is the current situation of this issue?

@Dineshrajaa
Copy link

I am also facing the same issue working fine with ~0.8.5 version will be fine if we get support for 1.4.3 too.

@brodycj
Copy link
Contributor

brodycj commented Jun 27, 2016

The version at https://github.com/litehelpers/Cordova-sqlite-evcore-extbuild-free supports PhoneGap Build and is available under GPL and commercial license options. For commercial license please contact: sales@litehelpers.net

@brodycj
Copy link
Contributor

brodycj commented Sep 1, 2016

#529 has discussion whether or not to keep cordova-sqlite-ext in a separate version. Another idea under consideration would be to include the sqlite3 dependencies in cordova-sqlite-ext as a long term solution to support PhoneGap Build, Intel XDK, etc.

@lyntechsupport
Copy link

Any updates on this @brodybits

" If anyone wants to purchase a few hours of support from me I would be happy to re-enroll with PGB and work with PGB to get this working. You may contact me at brodybits@litehelpers.net or sales@litehelpers.net if you are interested.

@jfi
jfi commented on May 12

@brodybits Thanks, dropped you an email about option 2. 👍
"

will it now support phonegap?
or are we having to use ext?

@brodycj
Copy link
Contributor

brodycj commented Nov 17, 2016

The following versions work on PhoneGap Build:

This is already documented. Maybe it is not clear enough.

At the moment https://github.com/litehelpers/Cordova-sqlite-legacy-build-support does contain all features that are in this version. But this may change in the future (sqlite3 update, for example).

@lyntechsupport
Copy link

So our only option is 500 dollar licence or a legacy version??

On 17 Nov 2016 17:34, "Chris Brody" notifications@github.com wrote:

The following versions work on PhoneGap Build:

This is already documented. Maybe it is not clear enough.

At the moment https://github.com/litehelpers/Cordova-sqlite-
legacy-build-support does contain all features that are in this version.
But this may change in the future (sqlite3 update, for example).


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#477 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVzSHUxqElrogwDTcBX5Jk3ukckqqe0Xks5q-_V_gaJpZM4IcEOu
.

@brodycj
Copy link
Contributor

brodycj commented Nov 17, 2016

Those are the options at the moment if you use PhoneGap Build and do not want to follow the GPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants