Project: titanium
Issue TIMOB-19447: Launching titanium app from latest fails on OS X
h5. Description: Script Error Couldn't find module: ti.cloud for architecture: x86_64 When creating a project from the Appcelerator CLI and building to simulator, the app throws a runtime error as shown. NOTE: This only occurs when creating a project from the Appc CLI. Creating a project using Studio with or without services runs as expected. h5. Steps to reproduce: 1) Using Appc CLI, create a new Titanium project 2) Use "appc run" command to launch, choose iOS simulator h5. Result: Runtime error on device h5. Expected Result: Application runs as expected h5. Note: A diff on the projects prior to run (created in studio versus appc CLI) shows only the following additional lines included in the alloy.js in the project created by Appc CLI: {code}// added during app creation. this will automatically login to // ACS for your application and then fire an event (see below) // when connected or errored. if you do not use ACS in your // application as a client, you should remove this block (function(){ var ACS = require('ti.cloud'), env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development', username = Ti.App.Properties.getString('acs-username-'+env), password = Ti.App.Properties.getString('acs-password-'+env); // if not configured, just return if (!env || !username || !password) { return; } /** * Appcelerator Cloud (ACS) Admin User Login Logic * * fires login.success with the user as argument on success * fires login.failed with the result as argument on error */ ACS.Users.login({	login:username,	password:password, }, function(result){	if (env==='development') {	Ti.API.info('ACS Login Results for environment `'+env+'`:');	Ti.API.info(result);	}	if (result && result.success && result.users && result.users.length){	Ti.App.fireEvent('login.success',result.users[0],env);	} else {	Ti.App.fireEvent('login.failed',result,env);	} }); })(); {code}
Story points: 8