Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12422] iOS build using deploy-type parameter does not exclude/include modules

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-01-27T01:00:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02
Components360, CLI, iOS
Labelsqe-port
ReporterNam Le
AssigneeChris Barber
Created2013-01-25T00:59:29.000+0000
Updated2014-06-19T12:44:11.000+0000

Description

The deploy-type parameter is enabled for iOS, but it doesn't perform as expected. Steps: 1. Create titanium project 2. Add ti.cloud module 3. Update the app.js with the following code:
var module = require('ti.cloud');
4. Set deploy-type in the tiapp.xml for ti.cloud to be "development" 5. Perform a build using deploy-type="test"
/usr/local/bin/titanium --no-colors --no-prompt build --platform ipad --sdk 3.1.0.v20121220122601 --log-level info --target simulator --ios-version 5.1 --device-family ipad --deploy-type development --debug-host 10.0.14.194:62565
Expected results: App launch should fail because the ti.cloud module was not loaded since it wasn't present Actual results: ti.cloud module is present, app loads

Comments

  1. Chris Barber 2013-01-26

    node-appc master pull request: https://github.com/appcelerator/node-appc/pull/25
  2. Chris Barber 2013-01-26

    To test, in the tiapp.xml, include ti.cloud for deploy-type test:
       <modules>
           <module platform="commonjs" deploy-type="test">ti.cloud</module>
       </modules>
       
    Require ti.cloud in app.js:
       console.log(require('ti.cloud'));
       
    Build for simulator and deploy-type test:
       titanium build -p ios
       
    The build will succeed and app will run and it will print ti.cloud, however that's WRONG! It should error saying it can't find ti.cloud for deploy-type development.
  3. Paras Mishra 2013-01-29

    Result came as expected. Error occurred as '[ERROR] Script Error = Couldn't find module: ti.cloud. ' on the terminal Application got the error as Couldn't find module: ti.cloud and fails Verified on: SDK version: 3.0.2.v20130126230207 CLI version : 3.0.24 OS : MAC OSX 10.7.5 XCode : 4.5.1

JSON Source