NathanaelA / nativescript-sqlite

SQLite Bindng for NativeScript
MIT License
160 stars 53 forks source link

DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2 #46

Closed SandipFichadiya closed 7 years ago

SandipFichadiya commented 7 years ago

when I am trying to run the application i am getting following error in console.

** ARCHIVE SUCCEEDED **

2017-05-03 21:23:03.369 xcodebuild[72110:1494723] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_s/6l5z2bd97lv0wl9ztv1dmfph0000gn/T/MobileApp_2017-05-03_21-23-03.366.xcdistributionlogs'.
1.2.840.113635.100.1.61
Exported MobileApp.xcarchive to:  /Users/myUser/Desktop/MobileApp/platforms/ios/build/device
** EXPORT SUCCEEDED **

Project successfully built.
Installing...
Successfully installed on device with identifier '1f121212120a123a1aa01a12345abc1d1b1b1f1b'.
Executing before-livesync hook from  /Users/myUser/Desktop/MobileApp/hooks/before-livesync/nativescript-angular-sync.js
Transferring project files...
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Successfully transferred all files.
Refreshing application...
Successfully synced application org.nativescript.MyProject on device 1f121212120a123a1aa01a12345abc1d1b1b1f1b.

Executing before-watch hook from  /Users/myUser/Desktop/MobileApp/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 2.1.6
CONSOLE LOG file:///app/tns_modules/nativescript-globalevents/globalevents.js:98:16: Handler onNavigatingTo navigatingTo
CONSOLE LOG file:///app/tns_modules/@angular/core/bundles/core.umd.js:111:20: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
CONSOLE LOG file:///app/components/dbhelper/db-manager.service.js:23:36: DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2
9:26:21 PM - Compilation complete. Watching for file changes.

CONSOLE LOG file:///app/components/dbhelper/db-manager.service.js:23:36: DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2

Any help? Thanks in advance

NathanaelA commented 7 years ago

You need to rebuild the application.
tns platform clean ios then tns build ios and it should work.