Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19491] Remove sqlite3 module and update to latest ioslib

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-09-25T00:17:25.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.1.0
ComponentsTooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2015-09-10T14:32:18.000+0000
Updated2015-11-17T22:48:35.000+0000

Description

The sqlite3 module is a liability. It is maintained by a 3rd party and may not always be compatible with the latest version of Node.js. Since all sqlite is used for is querying Xcode teams, we can simply query the teams using the sqlite3 executable. This executable should be available on every Mac OS X machine, especially since we know Xcode is installed. ioslib 0.6.9 has been updated to remove the sqlite dependency, but it's still referenced by Titanium SDK.

Comments

  1. Chris Barber 2015-09-10

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/7161 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7162
  2. Wilson Luu 2015-10-16

    Note: If you are using SDK 5.0.2.GA and have Node.js 4.2.1 on your machine, then you will encounter this issue:
       Error: Cannot find module '/Users/Eric/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA/node_modules/sqlite3/lib/binding/node-v46-darwin-x64/node_sqlite3.node'
       
    To workaround this issue (until the fix is released), you will need to switch your Node.js version to lower than 4.X.X i.e. Node.js 0.12.X and below should still work.
  3. Wilson Luu 2015-10-28

    Closing ticket as fixed. Verified that the sqlite3 Node module is removed from SDK 5.1.0 and you can build to iOS device and simulator with Node 0.10.X, 0.12.X and 4.X.X. Tested on: Appcelerator Studio, build: 4.4.0.201510280736 Appc CLI NPM: 4.2.1 Appc CLI Core: 5.1.0-38 Arrow: 1.3.13 SDK: 5.1.0.v20151028143628 Node: 0.10.38, 0.12.7, 4.2.1 OS: El Capitan (10.11.1) Xcode: 7.1 Device: iphone 6 plus (9.1), iphone simulator (9.1)

JSON Source