File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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"
2726def envList = []
2827try {
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} "
You can’t perform that action at this time.
0 commit comments