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


##########
lib/build.js:
##########
@@ -154,6 +154,12 @@ module.exports.run = function (buildOpts) {
     }
 
     const projectPath = this.root;
+    // When target includes a runtime (e.g., "iPhone-16-Pro, 18.5"), capture 
it for xcodebuild destination
+    const targetRuntime = (function extractRuntime (target) {
+        if (!target || !target.includes(',')) return null;
+        const parts = target.split(',');
+        return (parts[1] || '').trim() || null;
+    })(buildOpts.target);

Review Comment:
   Nice :)



-- 
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