{ "id": "103452", "key": "TIMOB-11495", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14167", "description": "2012 Sprint 21 JS", "name": "2012 Sprint 21 JS", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-18T02:14:11.000+0000", "created": "2012-10-16T01:13:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "cli", "regression", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-12-04T18:58:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "h2. Problem\r\n\r\nEvery build I do with iOS for the iOS simulator fails after a modification of any kind. This includes the first time the app is run. The app will run fine if you run it a second time. But if you make changes after that successful run, it will fail again until you attempt to run it twice, effectively doubling the length of time it takes to test applications. \r\n\r\nh2. Reproduce\r\n\r\n# Create new Titanium app (doesn't have to be Alloy, but the problem shows up there as well)\r\n# Run the app for the iOS simulator (happens on both regular and debug builds)\r\n# The app will fail with the error log listed below. Run it again and it will succeed.\r\n# To go further, make any change to the app, perhaps just changing the background color. Run it. It will fail with the same error as before. Run it again and it will succeed. Lather, rinse, repeat.\r\n\r\nh2. Error Log\r\n\r\n{code}\r\n[DEBUG] : \b\b \bNo project level plugins to load\r\n[DEBUG] : \b\b \bLoaded plugin hooks:\r\n[DEBUG] : \b\b \b/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/cli/hooks/plugins.js\r\n[DEBUG] : \b\b \b/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/cli/hooks/install.js\r\n[DEBUG] : \b\b \b/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/cli/hooks/package.js\r\n[DEBUG] : \b\b \b/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/cli/hooks/run.js\r\n[INFO] : \b\b \bBuild type: development\r\n[DEBUG] : \b\b \bTitanium iOS SDK directory: /Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone\r\n[DEBUG] : \b\b \bSetting Xcode target to Debug\r\n[DEBUG] : \b\b \bSetting Xcode build OS to iphonesimulator6.0\r\n[DEBUG] : \b\b \bXcode installation: /Applications/Xcode.app/Contents/Developer\r\n[DEBUG] : \b\b \biOS WWDR certificate: not found\r\n[DEBUG] : \b\b \bMinimum iOS version: 4.3\r\n[INFO] : \b\b \bBuilding for target: simulator\r\n[INFO] : \b\b \bBuilding using iOS SDK: 6.0\r\n[INFO] : \b\b \bBuilding for iOS Simulator: 6.0\r\n[INFO] : \b\b \bBuilding for device family: universal\r\n[INFO] : \b\b \bBuilding for iOS 6.0; using 4.3 as minimum iOS version\r\n[INFO] : \b\b \bDebugging enabled via debug host: 192.168.1.125:58444\r\n[DEBUG] : \b\b \bBuilding for the following architectures: armv7 armv7s i386\r\n[DEBUG] : \b\b \bWould be firing \"compile\" legacy plugin hook if it was supported\r\n[INFO] : \b\b \bBuilding Info.plist\r\n[INFO] : \b\b \bNo Titanium Modules required, continuing\r\n[INFO] : \b\b \bCreating symlinks for simulator build\r\n[DEBUG] : \b\b \bWalking directory /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources\r\n[DEBUG] : \b\b \bSymlinking /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources/app.js => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/app.js\r\n[DEBUG] : \b\b \bSymlinking /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources/KS_nav_ui.png => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/KS_nav_ui.png\r\n[DEBUG] : \b\b \bSymlinking /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources/KS_nav_views.png => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/KS_nav_views.png\r\n[DEBUG] : \b\b \bCopying /Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/modules/facebook/images => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/modules/facebook/images\r\n[DEBUG] : \b\b \bCopying /Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/modules/ui/images => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/modules/ui/images\r\n[DEBUG] : \b\b \bCopying /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources/iphone => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app\r\n[INFO] : \b\b \bNo module resources to copy\r\n[INFO] : \b\b \bNo CommonJS modules to copy\r\n[DEBUG] : \b\b \bCopying /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/Resources/iphone/appicon.png => /Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app/appicon.png\r\n[INFO] : \b\b \bFinished building the application in 8s 579ms\r\n[DEBUG] : \b\b \bWould be firing \"postbuild\" legacy plugin hook if it was supported\r\n[INFO] : \b\b \bRunning application in iOS Simulator\r\n[DEBUG] : \b\b \bTerminating all iOS simulators\r\n[DEBUG] : \b\b \bRemoving old log file: /Users/tlukasavage/Library/Application Support/iPhone Simulator/6.0/Applications/6C340125-30CE-4619-90B8-667E85E146DE/Documents/2fab29a2-c337-400f-8863-89582bd7d28a.log\r\n[INFO] : \b\b \bLaunching application in iOS Simulator\r\n[DEBUG] : \b\b \bSimulator command: \"/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/ios-sim\" launch \"/Users/tlukasavage/Documents/Titanium Studio Workspace/test1/build/iphone/build/Debug-iphonesimulator/test1.app\" --sdk 6.0 --family universal\r\n[ERROR] : \b\b \bAn error occurred running the iOS Simulator\r\n[DEBUG] : \b\b \bWould be firing \"finalize\" legacy plugin hook if it was supported\r\n[INFO] : \b\b \bProject built successfully in 9s 632ms\r\nACT ERR! /Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/3.0.0/iphone/iphone_sim_activate.scpt: execution error: iPhone Simulator got an error: Connection is invalid. (-609)\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: iOS fails on every modified build with new CLI", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.0.0.201210141844\r\ntitanium CLI 3.0.5\r\niOS SDK 6", "comment": { "comments": [ { "id": "223800", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I cannot reproduce this bug. Can you attach your project that you're struggling with (including build directories)? We might need to do a screenshare.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-16T16:28:56.000+0000", "updated": "2012-10-16T16:28:56.000+0000" }, { "id": "224143", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/cb1kenobi/titanium_mobile/pull/new/timob-11495\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3284", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-18T02:14:02.000+0000", "updated": "2012-10-18T02:14:02.000+0000" }, { "id": "229887", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.19", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:58:23.000+0000", "updated": "2012-12-04T18:58:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }