Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-11531

CLI: iOS: Modules - Cannot install modules onto iOS


    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.0.0
    • Component/s: Tooling
    • Environment:

      Titanium Studio, build:
      SDK build: 3.0.0.v20121017182843, 3.0.0.v20121018140140
      Devcies: iphone 4 (4.3.5), iphone simulator (6.0)
      xcode: 4.5


      Details: If you install an app to an iOS device with either an iOS module or CommonJS module, then the app will not be able to find the module.

      You can install an app to an Android device with either an Android module or CommonJS module
      This bug does not appear in SDK build 2.1.3

      Steps to reproduce:
      1. Download monkeyModule.zip attachment
      2. Unzip attachment and import project into TiStudio
      3. Make sure to add the ti.cloud module in tiapp.xml (TISTUD-2564)

      4. Install app to iOS device
      Actual: During installation of app, console will print out this error message:

      [ERROR] :  TypeError: Cannot read property 'Build' of undefined
          at translate (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/node_modules/node-appc/node_modules/i18n/i18n.js:226:23)
          at i18n.__ (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/node_modules/node-appc/node_modules/i18n/i18n.js:85:13)
          at Object.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121007054913/cli/commands/build.js:17:17)
          at Module.Module._compile [as _compile] (module.js:449:26)
          at Object.Module._extensions..js [as .js] (module.js:467:10)
          at Module.Module.load [as load] (module.js:356:32)
          at Function.Module._load [as _load] (module.js:312:12)
          at Module.Module.require [as require] (module.js:362:17)
          at require (module.js:378:17)
          at loadCommand (/usr/local/lib/node_modules/titanium/lib/cli.js:863:13)

      4. Launch app on iOS device
      Actual: iOS cannot find module (see no_module.png)

      Expected: Should be able to install apps with modules

      Note: To test with iOS module, in app.js, comment line 2 and uncomment line 3. Then repeat steps 4-5




            • Assignee:
              cbarber Chris Barber
              wluu Wilson Luu (Inactive)
            • Watchers:
              0 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  Sync status:
                  Last received:
                  Last sent:

                  Git Integration