From 6fe483909ca32032e9c21515785d2fdbf545a951 Mon Sep 17 00:00:00 2001 From: "jose.pereda" Date: Tue, 3 Aug 2021 12:43:23 +0200 Subject: [PATCH] Use iOS target for iOS-simulator --- .../java/com/gluonhq/attach/AttachArtifactResolver.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gluonhq/attach/AttachArtifactResolver.java b/src/main/java/com/gluonhq/attach/AttachArtifactResolver.java index c6a2326..a85f447 100644 --- a/src/main/java/com/gluonhq/attach/AttachArtifactResolver.java +++ b/src/main/java/com/gluonhq/attach/AttachArtifactResolver.java @@ -54,10 +54,12 @@ public static Map findArtifactsForTarget(List depe .map(d -> { if (UTIL_ARTIFACT.equals(d.getArtifactId())) { if (Constants.PROFILE_ANDROID.equals(target) || - Constants.PROFILE_IOS.equals(target)|| + Constants.PROFILE_IOS.equals(target) || Constants.PROFILE_IOS_SIM.equals(target)) { + String utilTarget = Constants.PROFILE_IOS_SIM.equals(target) ? + Constants.PROFILE_IOS : target; return new DefaultArtifact(d.getGroupId(), d.getArtifactId(), - target, d.getType(), d.getVersion()); + utilTarget, d.getType(), d.getVersion()); } return null; }