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
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
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
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
master PR: https://github.com/appcelerator/titanium_mobile/pull/12873