[TIMOB-12422] iOS build using deploy-type parameter does not exclude/include modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-27T01:00:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2013 Sprint 02 JS, 2013 Sprint 02 |
Components | 360, CLI, iOS |
Labels | qe-port |
Reporter | Nam Le |
Assignee | Chris Barber |
Created | 2013-01-25T00:59:29.000+0000 |
Updated | 2014-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
node-appc master pull request: https://github.com/appcelerator/node-appc/pull/25
To test, in the tiapp.xml, include ti.cloud for deploy-type test:
Require ti.cloud in app.js:
Build for simulator and deploy-type test:
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.
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