GitToTheHub commented on code in PR #1596:
URL: https://github.com/apache/cordova-ios/pull/1596#discussion_r2645234594


##########
lib/simctlHelper.js:
##########
@@ -229,16 +229,40 @@ function getDeviceFromDeviceTypeId (deviceTypeId = null) {
         runtimeRaw = null
     ] = deviceTypeId?.split(',') ?? [];
 
+    // Extract the segment after the SimDeviceType prefix (if present)
+    const prefix = 'com.apple.CoreSimulator.SimDeviceType.';
+    const rawWithoutPrefix = (deviceTypeRaw || 
'').trim().replace(/^com\.apple\.CoreSimulator\.SimDeviceType\./, '');
+
+    // If the target is a Simulator UDID (UUID), support selecting by UDID 
directly

Review Comment:
   Ok, it was only a nice to have feature which arosed while I was searching 
for the error. Copilot recommended me to use a UUID to run the app, but it 
didn't work because Cordova had no functionality for it and I created it than :D



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to