Skip to content

Commit 99a6d68

Browse files
committed
ci(jenkins): auto-pin DEVELOPER_DIR to Xcode 15.x if present; keep FearlessKeys text exclusion
Signed-off-by: William Richter <[email protected]>
1 parent c23ac4f commit 99a6d68

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Jenkinsfile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,21 @@ def appPipeline = new org.ios.AppPipeline(
2323
uploadToNexusFor: ['master','develop','staging']
2424
)
2525

26-
def xcode154 = "/Applications/Xcode_15.4.app/Contents/Developer"
2726
def envList = []
2827
try {
29-
if (new File(xcode154).exists()) {
30-
envList << "DEVELOPER_DIR=${xcode154}"
28+
def candidates = [
29+
'/Applications/Xcode_15.4.app/Contents/Developer',
30+
'/Applications/Xcode_15.3.app/Contents/Developer',
31+
'/Applications/Xcode_15.2.app/Contents/Developer',
32+
'/Applications/Xcode_15.1.app/Contents/Developer',
33+
'/Applications/Xcode_15.0.app/Contents/Developer'
34+
]
35+
def picked = candidates.find { new File(it).exists() }
36+
if (picked) {
37+
envList << "DEVELOPER_DIR=${picked}"
38+
echo "Pinning DEVELOPER_DIR to ${picked} for SPM/IrohaCrypto compatibility."
3139
} else {
32-
echo "Xcode 15.4 not found at ${xcode154}; using default Xcode."
40+
echo 'No Xcode 15.x found under /Applications. Using default Xcode (may fail with IrohaCrypto on 18.x).'
3341
}
3442
} catch (Throwable t) {
3543
echo "Skipping Xcode pin check due to: ${t.message}"

0 commit comments

Comments
 (0)