{ "id": "174019", "key": "TIMOB-27338", "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": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" }, { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-24T13:26:08.000+0000", "created": "2019-08-15T10:09:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20856", "name": "Release 8.0.3", "archived": true, "released": false }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [ { "id": "57841", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "174126", "key": "TIMOB-27397", "fields": { "summary": "Cannot target iOS 12.x simulator when using SDK 8.2.0.RC", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57860", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "174256", "key": "TIMOB-27470", "fields": { "summary": "iOS: App icon does not display for 8.2.1 nightly build", "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": "57858", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174244", "key": "TIMOB-27463", "fields": { "summary": "iOS: Project fails to choose correct simulator by default, picks up global iOS 9.3 sim incompatible with Xcode 11", "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 } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2019-10-24T19:43:16.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When running concurrent iOS builds on simulators the following error is seen in Studio:\r\n{code:java}\r\n[ERROR] : Invalid \"--device-id\" value \"8B89634B-0E8B-4286-8839-7CEE6A035700\"\r\n{code}\r\nThe cli also shows this error:\r\n{code:java}\r\n[ERROR] Invalid iOS simulator \"8B89634B-0E8B-4286-8839-7CEE6A035700\"\r\n{code}\r\n\r\n*Test Steps*\r\n# Create a titanium project \r\n# Run the project in APPC studio or through the CLI (e.g. {{appc run -p ios -C 8B89634B-0E8B-4286-8839-7CEE6A035700 -I 13.0}})\r\n# Re-run the project without closing the Simulator\r\n\r\n*Actual result*\r\nAbove error is shown\r\n\r\n*Expected result*\r\nAbove error should not be shown and application should launch on the simulator \r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Invalid iOS simulator error is shown when doing concurrent builds with iOS 13", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.14.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 8.11.3\r\n npm Version = 5.6.0\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.14\r\n Core Package = 7.1.1-master.2\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\n node-appc Version = 0.2.49\r\n", "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 }, { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 }, { "id": 1161, "state": "closed", "name": "2019 Sprint 18", "startDate": "2019-08-26T21:46:26.269Z", "endDate": "2019-09-08T21:46:00.000Z", "completeDate": "2019-09-09T20:39:58.761Z", "originBoardId": 114 }, { "id": 1163, "state": "closed", "name": "2019 Sprint 19", "startDate": "2019-09-09T20:43:13.091Z", "endDate": "2019-09-22T20:43:00.000Z", "completeDate": "2019-09-23T15:37:35.874Z", "originBoardId": 114 }, { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 }, { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450493", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "note: I can only reproduce this when using xcode beta 5 after updating from xcode beta 4. It's reproducible in ti as well as appc so moving to TIMOB", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-15T13:28:46.000+0000", "updated": "2019-08-15T13:28:46.000+0000" }, { "id": "450500", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce with 12.4 sims as well. It looks like if you have Xcode 11 command line tools selected and you try to run a concurrent 12.4 sim you get the above error. If you have command line tools selected for Xcode 10 and you try to run a concurrent 13.0 sim you get that error as well.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-15T16:42:02.000+0000", "updated": "2019-08-15T16:42:02.000+0000" }, { "id": "450522", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "From some looking I think this is purely down to the response we're getting from {{simctl list --json}} not including a booted simulator that is using a runtime from another xcode (so xcode 10 simctl and iOS 13, xcode 11 simctl and iOS 12.4).\r\n\r\nSeeing as how that is how we source the simulator listing I'm not sure how we can fix this without changing how we source the simulator to run simctl from _every_ xcode available and the collate the results. I tested this and it appears to fix detection, but then cause issues further down the line when we try to boot the sim. [~cbarber] any thoughts on whether doing that is the right thing to do?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-16T11:18:45.000+0000", "updated": "2019-08-16T11:18:45.000+0000" }, { "id": "450549", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I added support for Xcode 11 sims in several ioslib releases recently, the last one is 1.7.11 which [isn't|https://github.com/appcelerator/titanium_mobile/blob/master/package.json#L72] currently used on master. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-08-17T15:50:21.000+0000", "updated": "2019-08-17T15:50:21.000+0000" }, { "id": "450560", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel], i think 1.7.11 was just a fix for the team id stuff right? That shouldn't have an impact on sim detection. I think once xcode 11 is released this will be a non-issue except for the rare circumstance someone is switching between xcode versions during development, although I totally expect it to arise while people are testing xcode 11/iOS 13/SDK 8.2.0", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-19T09:06:01.000+0000", "updated": "2019-08-19T09:06:01.000+0000" }, { "id": "450708", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~eharris] Beta 6 is out. Perhaps it's been fixed?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-08-22T05:40:41.000+0000", "updated": "2019-08-22T05:40:41.000+0000" }, { "id": "450731", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Still occurs on beta 6", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-22T15:54:28.000+0000", "updated": "2019-08-22T15:54:28.000+0000" }, { "id": "450977", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] so the theory is that when XCode 11 is released, we shouldn't see this issue? Should I move the fixVersion to 8.2.1 for now as a placeholder, and we'll check again after XCode 11/ iOS 13 release?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-30T02:35:14.000+0000", "updated": "2019-08-30T02:35:14.000+0000" }, { "id": "450982", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~amukherjee], yes that's the theory. But mainly because when xcode 11 is GA'd people wont be running xcode 10/xcode 11 side by side.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-08-30T09:56:28.000+0000", "updated": "2019-08-30T09:56:28.000+0000" }, { "id": "451104", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Keeping it in resolved state until the final release of Xcode 11.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-04T22:34:35.000+0000", "updated": "2019-09-04T22:34:35.000+0000" }, { "id": "451108", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The method of detecting the iOS simulators differs between the CLI and Studio. Appc/Titanium CLI uses ioslib@1.x in the SDK. Studio calls the daemon which uses ioslib@2.x.\r\n\r\nioslib@1.x will detect the iOS simulators by calling {{simctl list --json}}.\r\n\r\nioslib@2.x will detect the iOS simulators by walking the simulator devices directory.\r\n\r\nIt is entirely possible that an iOS simulator device directory exists yet for some reason {{simctl}} doesn't list it. I've seen this happen depending on the selected Xcode version.\r\n\r\nFurthermore, I discovered bugs in ioslib@1.7 while fixing TIMOB-27360 where simulator availability checks were not being done in {{findSimulators()}}, a function that is only called at the beginning of the build to determine the simulator to launch.\r\n\r\nMy hunch is to completely nuke all of your simulators and recreate them. The easiest way to do this is install ioslib@2 or ioslib@3, then run {{node bin/ioslib reset-sims}}. Otherwise you can try my old reset-sims script which may work: https://gist.github.com/cb1kenobi/19dc4c547864a96bfa9027aae5631e67.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-05T05:15:49.000+0000", "updated": "2019-09-05T05:15:49.000+0000" }, { "id": "451469", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I've fixed a bunch of bugs in ioslib@1.7 and the SDK that seem to fix all simulator related issues.\r\n\r\nioslib 1_7_X PR: https://github.com/appcelerator/ioslib/pull/98\r\nTi SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11228\r\n\r\nTo test, build an app for the iOS Simulator, then rerun the build without closing the simulators.\r\n\r\nAdditional testing:\r\n* iOS SDK 12.2 (Xcode 10) + iOS Simulator 12.2 (Xcode 10)\r\n* iOS SDK 12.2 (Xcode 10) + iOS Simulator 13.0 (Xcode 11)\r\n* iOS SDK 12.2 (Xcode 10) + auto selected 12.2 iOS Simulator\r\n* iOS SDK 13.0 (Xcode 11) + iOS Simulator 12.2 (Xcode 10)\r\n* iOS SDK 13.0 (Xcode 11) + iOS Simulator 13.0 (Xcode 11)\r\n* iOS SDK 13.0 (Xcode 10) + auto selected 13.0 iOS Simulator\r\n* Same as above but with a watch app (both explicit watch sim UDID and auto selected)\r\nNote: selected Xcode shouldn't matter", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-18T06:11:47.000+0000", "updated": "2019-09-23T17:19:40.000+0000" }, { "id": "451573", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11228\r\nTi SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11235", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-23T17:26:15.000+0000", "updated": "2019-09-23T17:26:15.000+0000" }, { "id": "451880", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Concurrent builds on iOS simulator work fine.\r\nWaiting on Jenkins build to pass.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-07T20:38:02.000+0000", "updated": "2019-10-07T20:38:02.000+0000" }, { "id": "451931", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR's Merged", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-09T17:29:38.000+0000", "updated": "2019-10-09T17:29:38.000+0000" }, { "id": "451961", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Verified on build 8.2.1.v20191009074714. Ticket closed.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2019-10-10T15:45:28.000+0000", "updated": "2019-10-10T15:45:28.000+0000" }, { "id": "452063", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Turns out the Ti SDK PR was bugged.\r\n\r\nTi SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11281\r\nTi SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11282", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-15T14:45:20.000+0000", "updated": "2019-10-15T14:45:20.000+0000" }, { "id": "452082", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-15T22:24:47.000+0000", "updated": "2019-10-15T22:24:47.000+0000" }, { "id": "452156", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-21T15:35:41.000+0000", "updated": "2019-10-21T15:35:41.000+0000" }, { "id": "452166", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to 8_2_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-10-21T18:53:42.000+0000", "updated": "2019-10-21T18:53:42.000+0000" }, { "id": "452233", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version {{8.2.1.v20191023131524}} and SDK version {{8.3.0.v20191023125529}}\r\n\r\nTest and other information can be found at:\r\nTi SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11281\r\nTi SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11282", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-24T13:26:02.000+0000", "updated": "2019-10-24T13:26:02.000+0000" }, { "id": "452248", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Found another ioslib issue surrounding the Xcode version semver lookup that was causing Xcode 10 to short circuit Xcode 11's lookup.\r\n\r\nioslib PR: https://github.com/appcelerator/ioslib/pull/105.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-24T19:27:33.000+0000", "updated": "2019-10-24T19:27:33.000+0000" }, { "id": "452249", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/11296\r\nTi SDK 8_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/11297", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-24T19:43:16.000+0000", "updated": "2019-10-24T19:43:16.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }