{ "id": "149778", "key": "AC-240", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-09T07:07:34.000+0000", "created": "2015-07-17T21:42:54.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-09T07:07:34.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "I have a titanium mobile project. I am trying to run it from the command line. I do:\r\n\r\n```\r\n$ npm install titanium -g\r\n$ titanium sdk install 3.5.0.GA\r\n$ titanium build --platform=iphone\r\n```\r\n\r\nand I get this error:\r\n\r\n```\r\n[INFO] Deploy type: development\r\n[INFO] Building for target: simulator\r\n[INFO] Building using iOS SDK: 8.2\r\n[INFO] Building for iOS Simulator: iPhone 4s\r\n[DEBUG] UDID: F0598C60-FAF3-414E-8333-E4124DDC177A\r\n[DEBUG] Simulator type: iphone\r\n[DEBUG] Simulator version: 8.2\r\n[INFO] Building for device family: universal\r\n[DEBUG] Setting Xcode target to Debug\r\n[DEBUG] Setting Xcode build OS to iphonesimulator8.2\r\n[DEBUG] Xcode installation: /Applications/Xcode.app/Contents/Developer\r\n[DEBUG] iOS WWDR certificate: installed\r\n[INFO] Minimum iOS version: 7.0\r\n[INFO] Debugging disabled\r\n[INFO] Profiler disabled\r\n[INFO] Forcing rebuild: /Users/connorleech/Proteus/app-ti-pasteboardWriter/build/iphone/build-manifest.json does not exist\r\n[INFO] Initiating prepare phase\r\n[INFO] Found Alloy app in /Users/connorleech/Proteus/app-ti-pasteboardWriter/app\r\n[INFO] Executing Alloy compile: /usr/local/bin/node compile /Users/connorleech/Proteus/app-ti-pasteboardWriter/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator\r\n[DEBUG] module.js:340\r\n[DEBUG] throw err;\r\n[DEBUG] ^\r\n[ERROR] : Cannot find module '/Users/connorleech/Proteus/app-ti-pasteboardWriter/undefined'\r\n[DEBUG] at Function.Module._resolveFilename (module.js:338:15)\r\n[DEBUG] at Function.Module._load (module.js:280:25)\r\n[DEBUG] at Function.Module.runMain (module.js:497:10)\r\n[DEBUG] at startup (node.js:119:16)\r\n[DEBUG] at node.js:906:3\r\n[ERROR] Alloy compiler failed\r\n```\r\n\r\nI want to run the app in my iOS simulator. Running it on an ipad simulator would be best. What am I doing wrong?", "attachment": [], "flagged": false, "summary": "Alloy compiler failed (cannot find module /undefined) ", "creator": { "name": "jasonshark", "key": "jasonshark", "displayName": "Connor Leech", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jasonshark", "key": "jasonshark", "displayName": "Connor Leech", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "362648", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nTested this issue. This is not a bug for latest Appcelerator version. Not sure if this is still an issue for you. It doesn't appear to be based on our latest tests.\r\n\r\nPlease follow the steps below and let me know.\r\n\r\n*Open terminal and run below commands :*\r\n \r\n1. Check if Java JDK is installed: *java --version* (if not installed you can download it from [here |http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html] )\r\n 2. Ensure that you have Node.JS installed: *node --version* (if not installed then you can download it from [here| https://web.appcelerator.com/product/cli])\r\n3. Install the Appcelerator CLI: *npm install appcelerator -g*\r\n4. appc setup\r\nLogin to Studio from terminal using below command and then open your Studio:\r\nappc login\r\n*If the problem still persist then:*\r\n*Uninstall SDK:*\r\nappc ti sdk uninstall (SDK version)\r\n*Install SDK:*\r\nappc ti sdk install latest or\r\nappc ti sdk install (SDK version)\r\n5. Create a alloy project\r\n6. Open terminal: Type *appc run -p ios*\r\n\r\n*Test Result:*\r\nAlloy compiler is working as expected and project also running without any error.\r\n\r\n*Simulator Logs:*\r\n{code}\r\n[INFO] Alloy compiler completed successfully\r\n[INFO] JavaScript files need to be encrypted\r\n[INFO] Cleaning old build directory\r\n[INFO] Performing full rebuild\r\n[INFO] Copying Xcode iOS files\r\n[INFO] Creating Xcode project directory: /Users/gsl5/Documents/Appcelerator_Studio_Workspace/ac240alloy/build/i\r\nphone/ac240alloy.xcodeproj\r\n[INFO] Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj\r\n[INFO] Writing Xcode module configuration: module.xcconfig\r\n[INFO] Updating Xcode project configuration: project.xcconfig\r\n[INFO] Forcing rebuild: ApplicationDefaults.m has changed since last build\r\n[INFO] Writing application defaults: /Users/gsl5/Documents/Appcelerator_Studio_Workspace/ac240alloy/build/iphon\r\ne/Classes/ApplicationDefaults.m\r\n[INFO] Initiating Xcode pre-compile phase\r\n[INFO] Processing JavaScript files\r\n[INFO] Encrypting JavaScript files: /Users/gsl5/Library/Application Support/Titanium/mobilesdk/osx/4.1.0.GA/iph\r\none/titanium_prep \"com.gsl.ac240alloy\" \"/Users/gsl5/Documents/Appcelerator_Studio_Workspace/ac240alloy/build/iph\r\none/assets”\r\n[INFO] Processing Titanium namespace resources\r\n[INFO] Invoking xcodebuild\r\n[INFO] Finished building the application in 2m 3s 187ms\r\n[INFO] Launching iOS Simulator\r\n[INFO] Project built successfully in 4m 48s 830ms\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-09-09T11:41:20.000+0000", "updated": "2015-11-09T07:06:58.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }