Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28498] iOS: Hang between sim selection and launch or app install when building to iOS 15 simulator

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2021-06-28T16:28:41.000+0000
Affected Version/sRelease 10.1.0, Release 10.0.1
Fix Version/sRelease 10.1.0
ComponentsCLI, iOS
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2021-06-28T13:48:44.000+0000
Updated2021-09-10T10:56:11.000+0000

Description

Description

When building to an iOS 15 simulator there is a hang occuring between the simulator selection and the simulator launching/app installing. This is because of [this code](https://github.com/appcelerator/ioslib/blob/1_7_X/lib/simulator.js#L919-L935) in ioslib that will walk the reported dataDir property for a simulator, this directory contains symlinks which is causing the CLI to get caught in an infinite loop, we should either not walk the entire directory or not follow symlinks

Steps to reproduce

1. Build to an iOS sim using Xcode 13 beta 2

Actual

Build process hangs

Expected

Build process should not hang

Comments

  1. Ewan Harris 2021-06-28

    Changing the code to no longer follow symlinks makes this no longer occur and happen in a similar time to the existing sim search to app launch when using Xcode 12. I do wonder if we could just not do all that work in the first place though
  2. Ewan Harris 2021-06-28

    Edited description to correct the assertion that Xcode 12/Xcode 13 return different values, they return the same value. It just appears that that directory now contains symlinks which cause the CLI to get stuck in an infinite loop, the iOS 15 directory contains about 3k more files (11,600 vs 8,700) and is around 2GB larger (3.7GB vs 1.6GB) although that probably differs on a machine/usage basis
  3. Ewan Harris 2021-06-28

    ioslib PR: https://github.com/appcelerator/ioslib/pull/210 ioslib PR 2, because I liked it so much: https://github.com/appcelerator/ioslib/pull/211
  4. Ewan Harris 2021-06-28

    master PR: https://github.com/appcelerator/titanium_mobile/pull/12873

JSON Source