{ "id": "107379", "key": "TIMOB-12822", "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": "15486", "description": "2013 Sprint 10 API", "name": "2013 Sprint 10 API", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-17T22:08:07.000+0000", "created": "2013-01-04T10:55:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.1.1", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "25865", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "100770", "key": "TIMOB-10840", "fields": { "summary": "iOS: Application exits from Simulator with iOS SDK 6.0", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "24515", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "103913", "key": "TISTUD-2873", "fields": { "summary": "iOS 6: Simulator exits when trying to launch app", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "25866", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "109667", "key": "TIMOB-12722", "fields": { "summary": "CLI: Cannot build Alloy app from clean state", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26891", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "111322", "key": "TIMOB-13103", "fields": { "summary": "CLI: Intermittent iOS Simulator failure ", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-20T17:40:39.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" } ], "description": "*Problem description*\r\nRun app, iOS simulator appears then exits with the error below.\r\n\r\n*Workaround*\r\n\"iOS Simulator -> Reset Content and Settings...\", or manually delete app from simulator.\r\n\r\n*Part log (3.0.2 GA)*\r\n{code}\r\n[ERROR] : \b\b \bAn error occurred running the iOS Simulator\r\n[ERROR] : \b\b \b[DEBUG] Sessiocould not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 \"iOS Simulator failed to install the application.\" UserInfo=0x101885f90 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}\r\n{code}\r\n\r\n*Part log (old)*\r\n{code}\r\n[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 \"Simulator session timed out.\" UserInfo=0x10013bea0 {NSLocalizedDescription=Simulator session timed out.}\r\n{code}\r\n\r\n*Full log (old)*\r\n{code}\r\nINFO] One moment, building ...\r\n[DEBUG] Detecting modules in /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/modules\r\n[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules\r\n[DEBUG] Detected module for android: ti.cloudpush 2.0.7 @ /Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.7\r\n[DEBUG] Detected module for android: ti.cloudpush 2.0.5 @ /Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.5\r\n[DEBUG] Detected module for android: ti.cloudpush 2.0.1 @ /Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.1\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.3.0 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.3.0\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.1.0 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.1.0\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.0.5 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.0.5\r\n[DEBUG] Detected module for commonjs: ti.cloud 2.0.1 @ /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.0.1\r\n[DEBUG] Looking for Titanium Module id: ti.cloud, version: 2.3.0, platform: commonjs\r\n[INFO] Titanium SDK version: 3.0.0 (12/12/12 18:49 a5894b3)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 6.0\r\n[INFO] iPhone simulated device: iphone\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/app.js to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/app.js\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/KS_nav_ui.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/KS_nav_ui.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/KS_nav_views.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/KS_nav_views.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/appicon.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/appicon.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/Default-568h@2x.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/Default-568h@2x.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/Default-Landscape.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/Default-Landscape.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/Default-Portrait.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/Default-Portrait.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/Default.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/Default.png\r\n[DEBUG] linking: /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/Resources/iphone/Default@2x.png to /Users/susancrayne/Documents/Titanium Studio Workspace/IOS6test/build/iphone/build/Debug-iphonesimulator/IOS6test.app/Default@2x.png\r\n[INFO] Minimum iOS version: 4.3 Linked iOS Version 6.0\r\n[DEBUG] executing command: /usr/bin/killall ios-sim\r\n[DEBUG] No matching processes belonging to you were found\r\n[DEBUG] executing command: /usr/bin/killall iPhone Simulator\r\n[DEBUG] No matching processes belonging to you were found\r\n[DEBUG] finding old log files\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (88.61 seconds)\r\n[INFO] Application has exited from Simulator\r\n[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 \"Simulator session timed out.\" UserInfo=0x10013bea0 {NSLocalizedDescription=Simulator session timed out.}\r\n{code}", "attachment": [ { "id": "34553", "filename": "app.js", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T10:55:39.000+0000", "size": 1339, "mimeType": "text/javascript" }, { "id": "34554", "filename": "tiapp.xml", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T11:00:06.000+0000", "size": 2554, "mimeType": "text/xml" } ], "flagged": false, "summary": "iOS: Simulator appears then exits", "creator": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.8.2\r\nTi Studio 3.0.2.201302191606\r\nTi SDK 3.0.2\r\niOS Simulator", "comment": { "comments": [ { "id": "233249", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The only way I can reliably run an app is to manually run the IOS Simulator, Reset Contents and Settings, then run the app.", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-04T11:02:13.000+0000", "updated": "2013-01-04T11:02:13.000+0000" }, { "id": "234391", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I also ran into this, so I know that feel. But it works for me now.\n\nWhat Xcode version are you using, and is there any reason you can't update your Studio to 3.0?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T10:54:23.000+0000", "updated": "2013-01-15T10:54:23.000+0000" }, { "id": "234507", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The XCode version is 4.5.2 (4G2008a). I updated Studio to \n\nTitanium Studio, build: 3.0.1.201212181159\n\nBuild: jenkins-titanium-rcp-master-350 (origin/master)\nDate: 18 December 2012, 12:04:42\n\nError message is:\n\n{code}\n[ERROR] : \b\b \b[DEBUG] Sessiocould not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 \"Simulator session timed out.\" UserInfo=0x1001adc90 {NSLocalizedDescription=Simulator session timed out.}\n{code}", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T18:02:19.000+0000", "updated": "2013-01-15T18:02:19.000+0000" }, { "id": "234509", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After cleaning the project, the simulator consistently appears and does not exit.", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-15T18:48:08.000+0000", "updated": "2013-01-15T18:48:08.000+0000" }, { "id": "242801", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-13103 - CLI: Intermittent simulator failure\r\n\r\nI cannot reproduce this issue.\r\nTested with:\r\nTitanium Studio, build: 3.1.0.201303141941\r\nTitanium SDK, build: 3.1.0.v20130318141656\r\nCLI 3.0.25\r\niPhone 6.1 simulator", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T23:12:04.000+0000", "updated": "2013-03-18T23:14:23.000+0000" }, { "id": "243070", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I ran in to this issue again with:\r\nTitanium Studio, build: 3.1.0.201303182358\r\nTitanium SDK, build: 3.1.0.v20130319125050 \r\nCLI 3.0.25\r\nTest steps:\r\n1. Created project and ran on simulator (1st attempt)- succeeded\r\n2. Changed app name in tiapp.xml, cleaned the project and tried to run as simulator (2nd attempt)- failed\r\n3. Repeated step 3-failed\r\nNote: I noticed this issue occurs consistently if the app's name changed in tiapp.xml\r\nIt does not matter if the build folder is deleted and the project is cleaned.\r\n[ERROR] : \b\b \bAn error occurred running the iOS Simulator\r\n[ERROR] : \b\b \b[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 \"iOS Simulator failed to install the application.\" UserInfo=0x7fcbbb871990 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}\r\n[ERROR] : \b\b \b\r\n[ERROR] : \b\b \bProject failed to build after 17s 790ms", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T23:35:07.000+0000", "updated": "2013-03-21T21:23:51.000+0000" }, { "id": "247565", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem is in ios-sim. It is hard-coded (!) to timeout at 30s. The following procedure unceremoniously pilfered and slightly modified from an enterprising young patch of about 12 days in age to the phone gap branch of the ios-sim fixes the problem.\r\nSteps:\r\n\r\n1. git clone https://github.com/appcelerator/ios-sim.git\r\n2. Apply this patch (I do not see an attachment button for comments in Ira):\r\n\r\n{code:title=iPhoneSimulator.m|borderStyle=solid}\r\n\r\n--- ios-sim/Source/iPhoneSimulator.m\t2013-04-15 09:52:07.000000000 -0700\r\n+++ ios-sim-patched/Source/iPhoneSimulator.m\t2013-04-15 09:55:41.000000000 -0700\r\n@@ -46,6 +46,7 @@\r\n fprintf(stderr, \" --setenv NAME=VALUE Set an environment variable\\n\");\r\n fprintf(stderr, \" --stdout The path where stdout of the simulator will be redirected to (defaults to stdout of ios-sim)\\n\");\r\n fprintf(stderr, \" --stderr The path where stderr of the simulator will be redirected to (defaults to stderr of ios-sim)\\n\");\r\n+ fprintf(stderr, \" --timeout The timeout time to wait for a response from the Simulator. Default value: 30 seconds\\n\");\r\n fprintf(stderr, \" --args <...> All following arguments will be passed on to the application\\n\");\r\n }\r\n \r\n@@ -187,6 +188,7 @@\r\n environment:(NSDictionary *)environment\r\n stdoutPath:(NSString *)stdoutPath\r\n stderrPath:(NSString *)stderrPath\r\n+\t\t\t\t timeout:(NSTimeInterval)timeout\r\n args:(NSArray *)args {\r\n DTiPhoneSimulatorApplicationSpecifier *appSpec;\r\n DTiPhoneSimulatorSessionConfig *config;\r\n@@ -263,7 +265,7 @@\r\n [session setUuid:uuid];\r\n }\r\n \r\n- if (![session requestStartWithConfig:config timeout:30 error:&error]) {\r\n+ if (![session requestStartWithConfig:config timeout:timeout error:&error]) {\r\n nsprintf(@\"Could not start simulator session: %@\", error);\r\n return EXIT_FAILURE;\r\n }\r\n@@ -311,6 +313,7 @@\r\n NSString *uuid = nil;\r\n NSString *stdoutPath = nil;\r\n NSString *stderrPath = nil;\r\n+ NSTimeInterval timeout = 30;\r\n NSMutableDictionary *environment = [NSMutableDictionary dictionary];\r\n int i = numOfArgs;\r\n for (; i < argc; i++) {\r\n@@ -368,7 +371,11 @@\r\n i++;\r\n stderrPath = [[NSString stringWithUTF8String:argv[i]] expandPath];\r\n NSLog(@\"stderrPath: %@\", stderrPath);\r\n- } else if (strcmp(argv[i], \"--args\") == 0) {\r\n+ } else if (strcmp(argv[i], \"--timeout\") == 0) {\r\n+ i++;\r\n+ timeout = [[NSString stringWithUTF8String:argv[i]] doubleValue];\r\n+ NSLog(@\"Timeout: %f second(s)\", timeout);\r\n+ } else if (strcmp(argv[i], \"--args\") == 0) {\r\n i++;\r\n break;\r\n } else if (strcmp(argv[i], \"--retina\") == 0) {\r\n@@ -397,6 +404,7 @@\r\n environment:environment\r\n stdoutPath:stdoutPath\r\n stderrPath:stderrPath\r\n+ timeout:timeout \r\n args:args];\r\n } else {\r\n if (argc == 2 && strcmp(argv[1], \"--help\") == 0) {\r\n\r\n{code}\r\n\r\n3. rake install from the ios-sim root dir which creates an \"ios-sim/build/Release/\"\r\n4. mv \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone/ios-sim\" \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone/ios-sim.old\"\r\n5. cp \"ios-sim/build/Release/ios-sim\" \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone\"\r\n6. Last but not least, for a 5 minute simulator timeout, apply the patch below to the file: \"/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone/cli/hooks/run.js\"\r\n\r\nHopefully you don't need that much time, but it sure does suck to wait 4:59 only to have the simulator exit out on you, doesn't it? I feel your pain - I've recently been forced to make Titanium run in a VM configuration that violates virtually every related TOS on a somewhat underpowered laptop.\r\n\r\n{code:title=run.js|borderStyle=solid}\r\n\r\n--- run.js 2013-04-15 09:37:28.000000000 -0700\r\n+++ run.js.new 2013-04-15 09:35:59.000000000 -0700\r\n@@ -71,7 +71,9 @@\r\n '--sdk',\r\n build.iosSimVersion,\r\n '--family',\r\n- build.iosSimType\r\n+ build.iosSimType,\r\n+ '--timeout',\r\n+ 360\r\n ],\r\n findLogTimer,\r\n simActivateTimer = setTimeout(function () {\r\n\r\n{code}\r\n\r\n\r\nRgds....Matt", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T17:11:04.000+0000", "updated": "2013-04-15T17:39:42.000+0000" }, { "id": "247578", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Nice, thanks Matt! This issue has been driving me crazy for months :)", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T17:34:17.000+0000", "updated": "2013-04-15T17:34:17.000+0000" }, { "id": "247580", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My pleasure, I just noticed that the patch I posted in was messed up in the code block of the comment - please check this one out instead - I just edited it.", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T17:41:23.000+0000", "updated": "2013-04-15T17:41:23.000+0000" }, { "id": "250579", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When I apply this patch, I get this error message: corrupt patch at line 56", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T17:12:48.000+0000", "updated": "2013-05-07T17:12:48.000+0000" }, { "id": "250790", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Susan, you tried the patch from the directory containing (above) the ios-sim directory? I'm on linux, and utilize diff to create the patch, so I patch using patch like this:\r\n\r\npatch < ios-sim.patch\r\n\r\nNot sure if our tools are different. It could also be that my version of ios-sim's iPhoneSimulator.m is different for some reason? I don't have the VM fired up at the moment so I can't take a look right now, but if our versions are different then it may be required to go through line by line and apply the patch manually, if memory serves I was on 3.0.2GA? Edit: yes just looked at my own comments - I was on 3.0.2GA, so that might be important.\r\n\r\nhere's a link to the phonegap branch of ios-sim with their solution from which I worked to apply to the appcelerator version of ios-sim:\r\n\r\nhttps://github.com/phonegap/ios-sim/commit/ef30c400c732b73451c7683df1a8088167ae3a24\r\n\r\nOh one other thing to check might be line-endings? Make sure there are no ^M's in there - if for example you pulled the patch down to windows then scp'd it over to a linux system and then applied the patch, the windows system may have applied its crlf garbage, you can use the vi %s/^M//g to remove (ctrl-v ctrl-m gives you the ^M in vi).\r\n\r\n", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T14:26:10.000+0000", "updated": "2013-05-08T14:31:41.000+0000" }, { "id": "250845", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am running 3.1.0GA. Also this direcotry is in /Users/susancrayne/Library/Application Support/Titanium/mobilesdk/osx, not in /Library/Application Support/Titanium/mobilesdk/osx. Does this mean I need to apply the patch manually? I'm pretty sure I can't install an earlier version.\r\n\r\n", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T17:58:45.000+0000", "updated": "2013-05-08T17:58:45.000+0000" }, { "id": "251008", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Our location difference shouldn't matter to patch as long as the path from that location to the source is the same. I think the best path forward just to avoid any issues is to apply manually - if there is a C developer nearby grab them for help - tell them its 5 minutes and you'll reward them with something sugary, a donut for example - we tend to be pretty simple creatures and are easily motivated by sweet things (half before the work starts, and they only get the other half when its done). \r\n\r\nOr give it a go yourself if your developers are suffering from rather extreme anti-social personality disorder - a common affliction among us. Here's how: the patch provides the line numbers and a few lines above and below for matching. Each section of change is divided by lines that look like so: \"@@ -187,6 +188,7 @@\", the first set of numbers (-187,6) means go to the first file (the original) and put your cursor on line 187, the rest of what you see is continuing for 6 lines. The second set of numbers (+188,7) means in another editor, opened with a copy of the file (this is the one that will become the newly patched file - where you make your changes), go to line 187 and take a look at the next 6 lines also (you can deduce that you're about to add a line, because 6+1=7, but you'll see that extra line in the patch prepended with the \"+\" sign, so no real need to bother with the number after the comma in each set of numbers between the \"@@..@@\" signs). So now you are in the right place in both files. Note that there are not necessarily 6 or 7 lines of change, but that's what the patch is showing you below the @@...@@ line to the next @@...@@ line. Between the \"@@...@@\" lines, the + lines are for lines that were added to the original file to get to the new file, - lines are for those that were removed from the original to get to the new one and lines with no + or - are lines aren't to be changed but just used for context around what has changed so you can get a sense of whether the change is right or not - really just a visual indicator of \"Oh yeah, I'm doing the right thing here\" or not.\r\n\r\nAnyway hope that helps!", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T15:55:39.000+0000", "updated": "2013-05-09T16:24:39.000+0000" }, { "id": "251014", "author": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the info. I've done development in C; I can apply the patch.", "updateAuthor": { "name": "susancrayne@yahoo.com", "key": "susancrayne@yahoo.com", "displayName": "Susan Crayne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T16:23:36.000+0000", "updated": "2013-05-09T16:23:36.000+0000" }, { "id": "251016", "author": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Great! Well I can't seem to get a JIRA comment to look right to save my life so if you get a ton of emails, I apologize for all of the edits!!", "updateAuthor": { "name": "mmullens", "key": "mmullens", "displayName": "Matt Mullens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T16:26:41.000+0000", "updated": "2013-05-09T16:26:41.000+0000" }, { "id": "252835", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nAppcelerator Studio, build: 3.1.1.201305181057\nSDK, build: 3.1.1.v20130517185716\niOS 6.0 simulator(retina/non_retina), 6.1, 5.1\nTest steps:\nCreate a project\nRun as iOS 6.0 simulator (either retina or non_retina), 6.1;5.1\nActual result:\nSimulator launches successfully", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T17:40:16.000+0000", "updated": "2013-05-20T17:40:16.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }