I have added sqlite plugin in my project. After getting this error "DATABASE NOT CREATED SUCCESSFULLY ReferenceError: Can't find variable: sqlite3_open_v2", I am not able to proceed further.
** ARCHIVE SUCCEEDED **
2017-10-06 12:02:02.246 xcodebuild[9622:120865] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/q1/4nbrdtn975q_8y0py9918g740000gn/T/MyApp_2017-10-06_12-02-02.218.xcdistributionlogs'.
1.2.840.113635.100.1.61
1.2.840.113635.100.1.61
1.2.840.113635.100.1.61
Exported MyApp.xcarchive to: /Users/macmini/Desktop/MyApp/platforms/ios/build/device
** EXPORT SUCCEEDED **
Project successfully built.
Installing...
Successfully installed on device with identifier ‘a11aa11a111111a11a111a1a1aa11aa1a1a11a11’.
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Refreshing application...
Successfully synced application com.myApp on device a11aa11a111111a11a111a1a1aa11aa1a1a11a11.
Executing before-watch hook from /Users/macmini/Desktop/MyApp/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 2.1.6
CONSOLE LOG file:///app/app.component.js:34:16: =======launchEvent=======
CONSOLE LOG file:///app/components/db-helper.service.js:24:36: DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2
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/db-helper.service.js:24:36: DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2
CONSOLE LOG file:///app/components/db-helper.service.js:24:36: DATABASE NOT CREATED SUCCESSFULLYReferenceError: Can't find variable: sqlite3_open_v2
12:03:03 PM - Compilation complete. Watching for file changes.
Here is my modulemap file
~/MyApp/node_modules/nativescript-sqlite/platforms/ios/module.modulemap
module sqlite3 [system] {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
link "sqlite3"
link "libsqlite3"
export *
}
I have added sqlite plugin in my project. After getting this error "DATABASE NOT CREATED SUCCESSFULLY ReferenceError: Can't find variable: sqlite3_open_v2", I am not able to proceed further.
Here is my package.json file,
npm --version 3.10.10 node --version v6.10.2
Here is my console logs
Here is my modulemap file ~/MyApp/node_modules/nativescript-sqlite/platforms/ios/module.modulemap
I have tried few solutions:
None of above solution worked for me. Can anybody suggest me any workaround solution for this ?