[TIMOB-26105] Command "appc info" incorrectly reports iOS simulator information
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2019-04-16T16:16:55.000+0000 |
Affected Version/s | Release 7.0.2 |
Fix Version/s | n/a |
Components | CLI, iOS |
Labels | appc, command, engTriage, simulator |
Reporter | Mark Boyer |
Assignee | Shak Hossain |
Created | 2018-06-06T14:49:07.000+0000 |
Updated | 2019-04-16T16:16:55.000+0000 |
Description
Since installing Xcode 9.4, the command line "appc info" incorrectly reports iOS simulator information. Specifically, the 11.3 simulators are each listed twice, once with the correct UDID and once with the UDID of the of the 11.4 simulator. This causes things like the Atom appcelerator-titanium package and third party tools like the TiNy utility to not function properly.
It's possible that Xcode recreated duplicate simulators when the newer version was installed. I've seen this happen to my machine before. As a fix, I created the following script: https://gist.github.com/cb1kenobi/19dc4c547864a96bfa9027aae5631e67. Simply save it to a file and run
node <script>
. It blows away all of your simulators and recreates them. Otherwise, I have not been been able to reproduce it on my machine. Can I get a sample of the appc info output please?I ran your fix. It did a nice renaming of the simulators but the "duplicates" still appear. I have this issue on both machines that I use (at work and at home). I'm attaching the output of the "apps info" command. What I found since I reported this issue was that in the simulator.js file in the node module ioslib that ships with each SDK version, there is a section of coding (beginning at line 203 for SDK version 7.2.0.GA, that intentionally adds the entries because apparently a single runtime can be associated with multiple iOS version. So while there there have been, or is still, a reason for this, other tools such as the Atom package are at best confusing. It will show the iPhone X for 11.3 for both 11.3 and 11.4 but selecting the 11.4 version causes the UI to indicate you selected the iPhone X for 11.4 because under the covers the UDIDs are the same for both versions. I am also attaching a screen shot of Atom as well as the output from "appc info" with the single line (line 218 at 7.2.0.GA) commented out. Ok, maybe I'm missing something or maybe I don't have authority to add attachments, so I created a GitHub repo with the attachments I mention at [https://github.com/MarkBoyer/TIMOB-26105](https://github.com/MarkBoyer/TIMOB-26105).
Fixed under Xcode 10.