forked from jenkinsci/xcode-plugin
/
XCodeBuilder.java
567 lines (505 loc) · 23.8 KB
/
XCodeBuilder.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
/*
* The MIT License
*
* Copyright (c) 2011 Ray Yamamoto Hilton
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package au.com.rayh;
import com.google.common.collect.Lists;
import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.model.BuildListener;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;
import hudson.util.FormValidation;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.plugins.tokenmacro.MacroEvaluationException;
import org.jenkinsci.plugins.tokenmacro.TokenMacro;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import javax.servlet.ServletException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* @author Ray Hilton
*/
public class XCodeBuilder extends Builder {
/**
* @since 1.0
*/
public final Boolean cleanBeforeBuild;
/**
* @since 1.3
*/
public final Boolean cleanTestReports;
/**
* @since 1.0
*/
public final String configuration;
/**
* @since 1.0
*/
public final String target;
/**
* @since 1.0
*/
public final String sdk;
/**
* @since 1.1
*/
public final String symRoot;
/**
* @since 1.2
*/
public final String configurationBuildDir;
/**
* @since 1.0
*/
public final String xcodeProjectPath;
/**
* @since 1.0
*/
public final String xcodeProjectFile;
/**
* @since 1.3
*/
public final String xcodebuildArguments;
/**
* @since 1.2
*/
public final String xcodeSchema;
/**
* @since 1.2
*/
public final String xcodeWorkspaceFile;
/**
* @since 1.0
*/
public final String embeddedProfileFile;
/**
* @since 1.0
*/
public final String cfBundleVersionValue;
/**
* @since 1.0
*/
public final String cfBundleShortVersionStringValue;
/**
* @since 1.0
*/
public final Boolean buildIpa;
/**
* @since 1.0
*/
public final Boolean unlockKeychain;
/**
* @since 1.0
*/
public final String keychainPath;
/**
* @since 1.0
*/
public final String keychainPwd;
/**
* @since 1.3.2
*/
public final String codeSigningIdentity;
// Fields in config.jelly must match the parameter names in the "DataBoundConstructor"
@DataBoundConstructor
public XCodeBuilder(Boolean buildIpa, Boolean cleanBeforeBuild, Boolean cleanTestReports, String configuration, String target, String sdk, String xcodeProjectPath, String xcodeProjectFile, String xcodebuildArguments, String embeddedProfileFile, String cfBundleVersionValue, String cfBundleShortVersionStringValue, Boolean unlockKeychain, String keychainPath, String keychainPwd, String symRoot, String xcodeWorkspaceFile, String xcodeSchema, String configurationBuildDir, String codeSigningIdentity) {
this.buildIpa = buildIpa;
this.sdk = sdk;
this.target = target;
this.cleanBeforeBuild = cleanBeforeBuild;
this.cleanTestReports = cleanTestReports;
this.configuration = configuration;
this.xcodeProjectPath = xcodeProjectPath;
this.xcodeProjectFile = xcodeProjectFile;
this.xcodebuildArguments = xcodebuildArguments;
this.xcodeWorkspaceFile = xcodeWorkspaceFile;
this.xcodeSchema = xcodeSchema;
this.embeddedProfileFile = embeddedProfileFile;
this.codeSigningIdentity = codeSigningIdentity;
this.cfBundleVersionValue = cfBundleVersionValue;
this.cfBundleShortVersionStringValue = cfBundleShortVersionStringValue;
this.unlockKeychain = unlockKeychain;
this.keychainPath = keychainPath;
this.keychainPwd = keychainPwd;
this.symRoot = symRoot;
this.configurationBuildDir = configurationBuildDir;
}
@Override
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
EnvVars envs = build.getEnvironment(listener);
FilePath projectRoot = build.getWorkspace();
// check that the configured tools exist
if (!new FilePath(projectRoot.getChannel(), getDescriptor().getXcodebuildPath()).exists()) {
listener.fatalError(Messages.XCodeBuilder_xcodebuildNotFound(getDescriptor().getXcodebuildPath()));
return false;
}
if (!new FilePath(projectRoot.getChannel(), getDescriptor().getAgvtoolPath()).exists()) {
listener.fatalError(Messages.XCodeBuilder_avgtoolNotFound(getDescriptor().getAgvtoolPath()));
return false;
}
// Set the working directory
if (!StringUtils.isEmpty(xcodeProjectPath)) {
projectRoot = projectRoot.child(xcodeProjectPath);
}
listener.getLogger().println(Messages.XCodeBuilder_workingDir(projectRoot));
// Infer as best we can the build platform
String buildPlatform = "iphoneos";
if (!StringUtils.isEmpty(sdk)) {
if (StringUtils.contains(sdk.toLowerCase(), "iphonesimulator")) {
// Building for the simulator
buildPlatform = "iphonesimulator";
}
}
// Set the build directory and the symRoot
//
String symRootValue = null;
if (!StringUtils.isEmpty(symRoot)) {
try {
// If not empty we use the Token Expansion to replace it
// https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin
symRootValue = TokenMacro.expandAll(build, listener, symRoot).trim();
} catch (MacroEvaluationException e) {
listener.error(Messages.XCodeBuilder_symRootMacroError(e.getMessage()));
return false;
}
}
String configurationBuildDirValue = null;
FilePath buildDirectory;
if (!StringUtils.isEmpty(configurationBuildDir)) {
try {
configurationBuildDirValue = TokenMacro.expandAll(build, listener, configurationBuildDir).trim();
} catch (MacroEvaluationException e) {
listener.error(Messages.XCodeBuilder_configurationBuildDirMacroError(e.getMessage()));
return false;
}
}
if (configurationBuildDirValue != null) {
// If there is a CONFIGURATION_BUILD_DIR, that overrides any use of SYMROOT. Does not require the build platform and the configuration.
buildDirectory = new FilePath(projectRoot.getChannel(), configurationBuildDirValue);
} else if (symRootValue != null) {
// If there is a SYMROOT specified, compute the build directory from that.
buildDirectory = new FilePath(projectRoot.getChannel(), symRootValue).child(configuration + "-" + buildPlatform);
} else {
// Assume its a build for the handset, not the simulator.
buildDirectory = projectRoot.child("build").child(configuration + "-" + buildPlatform);
}
// XCode Version
int returnCode = launcher.launch().envs(envs).cmds(getDescriptor().getXcodebuildPath(), "-version").stdout(listener).pwd(projectRoot).join();
if (returnCode > 0) {
listener.fatalError(Messages.XCodeBuilder_xcodeVersionNotFound());
return false; // We fail the build if XCode isn't deployed
}
ByteArrayOutputStream output = new ByteArrayOutputStream();
// Try to read CFBundleShortVersionString from project
listener.getLogger().println(Messages.XCodeBuilder_fetchingCFBundleShortVersionString());
String cfBundleShortVersionString = "";
returnCode = launcher.launch().envs(envs).cmds(getDescriptor().getAgvtoolPath(), "mvers", "-terse1").stdout(output).pwd(projectRoot).join();
// only use this version number if we found it
if (returnCode == 0)
cfBundleShortVersionString = output.toString().trim();
if (StringUtils.isEmpty(cfBundleShortVersionString))
listener.getLogger().println(Messages.XCodeBuilder_CFBundleShortVersionStringNotFound());
else
listener.getLogger().println(Messages.XCodeBuilder_CFBundleShortVersionStringFound(cfBundleShortVersionString));
listener.getLogger().println(Messages.XCodeBuilder_CFBundleShortVersionStringValue(cfBundleShortVersionString));
// Try to read CFBundleVersion from project
listener.getLogger().println(Messages.XCodeBuilder_fetchingCFBundleVersion());
String cfBundleVersion = "";
returnCode = launcher.launch().envs(envs).cmds(getDescriptor().getAgvtoolPath(), "vers", "-terse").stdout(output).pwd(projectRoot).join();
// only use this version number if we found it
if (returnCode == 0)
cfBundleVersion = output.toString().trim();
if (StringUtils.isEmpty(cfBundleVersion))
listener.getLogger().println(Messages.XCodeBuilder_CFBundleVersionNotFound());
else
listener.getLogger().println(Messages.XCodeBuilder_CFBundleVersionFound(cfBundleShortVersionString));
listener.getLogger().println(Messages.XCodeBuilder_CFBundleVersionValue(cfBundleVersion));
// Update the Marketing version (CFBundleShortVersionString)
if (!StringUtils.isEmpty(cfBundleShortVersionStringValue)) {
try {
// If not empty we use the Token Expansion to replace it
// https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin
cfBundleShortVersionString = TokenMacro.expandAll(build, listener, cfBundleShortVersionStringValue);
listener.getLogger().println(Messages.XCodeBuilder_CFBundleShortVersionStringUpdate(cfBundleShortVersionString));
returnCode = launcher.launch().envs(envs).cmds(getDescriptor().getAgvtoolPath(), "new-marketing-version", cfBundleShortVersionString).stdout(listener).pwd(projectRoot).join();
if (returnCode > 0) {
listener.fatalError(Messages.XCodeBuilder_CFBundleShortVersionStringUpdateError(cfBundleShortVersionString));
return false;
}
} catch (MacroEvaluationException e) {
listener.fatalError(Messages.XCodeBuilder_CFBundleShortVersionStringMacroError(e.getMessage()));
// Fails the build
return false;
}
}
// Update the Technical version (CFBundleVersion)
if (!StringUtils.isEmpty(cfBundleVersionValue)) {
try {
// If not empty we use the Token Expansion to replace it
// https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin
cfBundleVersion = TokenMacro.expandAll(build, listener, cfBundleVersionValue);
listener.getLogger().println(Messages.XCodeBuilder_CFBundleVersionUpdate(cfBundleVersion));
returnCode = launcher.launch().envs(envs).cmds(getDescriptor().getAgvtoolPath(), "new-version", "-all", cfBundleVersion).stdout(listener).pwd(projectRoot).join();
if (returnCode > 0) {
listener.fatalError(Messages.XCodeBuilder_CFBundleVersionUpdateError(cfBundleVersion));
return false;
}
} catch (MacroEvaluationException e) {
listener.fatalError(Messages.XCodeBuilder_CFBundleVersionMacroError(e.getMessage()));
// Fails the build
return false;
}
}
listener.getLogger().println(Messages.XCodeBuilder_CFBundleShortVersionStringUsed(cfBundleShortVersionString));
listener.getLogger().println(Messages.XCodeBuilder_CFBundleVersionUsed(cfBundleVersion));
// Clean build directories
if (cleanBeforeBuild) {
listener.getLogger().println(Messages.XCodeBuilder_cleaningBuildDir(buildDirectory.absolutize().getRemote()));
buildDirectory.deleteRecursive();
}
// remove test-reports and *.ipa
if (cleanTestReports != null && cleanTestReports) {
listener.getLogger().println(Messages.XCodeBuilder_cleaningTestReportsDir(projectRoot.child("test-reports").absolutize().getRemote()));
projectRoot.child("test-reports").deleteRecursive();
}
if (unlockKeychain) {
// Let's unlock the keychain
launcher.launch().envs(envs).cmds("/usr/bin/security", "list-keychains", "-s", keychainPath).stdout(listener).pwd(projectRoot).join();
launcher.launch().envs(envs).cmds("/usr/bin/security", "default-keychain", "-d", "user", "-s", keychainPath).stdout(listener).pwd(projectRoot).join();
if (StringUtils.isEmpty(keychainPwd))
returnCode = launcher.launch().envs(envs).cmds("/usr/bin/security", "unlock-keychain", keychainPath).stdout(listener).pwd(projectRoot).join();
else
returnCode = launcher.launch().envs(envs).cmds("/usr/bin/security", "unlock-keychain", "-p", keychainPwd, keychainPath).masks(false, false, false, true, false).stdout(listener).pwd(projectRoot).join();
if (returnCode > 0) {
listener.fatalError(Messages.XCodeBuilder_unlockKeychainFailed());
return false;
}
}
// Build
StringBuilder xcodeReport = new StringBuilder(Messages.XCodeBuilder_invokeXcodebuild());
XCodeBuildOutputParser reportGenerator = new XCodeBuildOutputParser(projectRoot, listener);
List<String> commandLine = Lists.newArrayList(getDescriptor().getXcodebuildPath());
// Prioritizing schema over target setting
if (!StringUtils.isEmpty(xcodeSchema)) {
commandLine.add("-scheme");
commandLine.add(xcodeSchema);
xcodeReport.append(", scheme: ").append(xcodeSchema);
} else if (StringUtils.isEmpty(target)) {
commandLine.add("-alltargets");
xcodeReport.append("target: ALL");
} else {
commandLine.add("-target");
commandLine.add(target);
xcodeReport.append("target: ").append(target);
}
if (!StringUtils.isEmpty(sdk)) {
commandLine.add("-sdk");
commandLine.add(sdk);
xcodeReport.append(", sdk: ").append(sdk);
} else {
xcodeReport.append(", sdk: DEFAULT");
}
// Prioritizing workspace over project setting
if (!StringUtils.isEmpty(xcodeWorkspaceFile)) {
commandLine.add("-workspace");
commandLine.add(xcodeWorkspaceFile + ".xcworkspace");
xcodeReport.append(", workspace: ").append(xcodeWorkspaceFile);
} else if (!StringUtils.isEmpty(xcodeProjectFile)) {
commandLine.add("-project");
commandLine.add(xcodeProjectFile);
xcodeReport.append(", project: ").append(xcodeProjectFile);
} else {
xcodeReport.append(", project: DEFAULT");
}
commandLine.add("-configuration");
commandLine.add(configuration);
xcodeReport.append(", configuration: ").append(configuration);
if (cleanBeforeBuild) {
commandLine.add("clean");
xcodeReport.append(", clean: YES");
} else {
xcodeReport.append(", clean: NO");
}
commandLine.add("build");
if (!StringUtils.isEmpty(symRootValue)) {
commandLine.add("SYMROOT=" + symRootValue);
xcodeReport.append(", symRoot: ").append(symRootValue);
} else {
xcodeReport.append(", symRoot: DEFAULT");
}
// CONFIGURATION_BUILD_DIR
if (!StringUtils.isEmpty(configurationBuildDirValue)) {
commandLine.add("CONFIGURATION_BUILD_DIR=" + configurationBuildDirValue);
xcodeReport.append(", configurationBuildDir: ").append(configurationBuildDirValue);
} else {
xcodeReport.append(", configurationBuildDir: DEFAULT");
}
// handle code signing identities
if (!StringUtils.isEmpty(codeSigningIdentity)) {
commandLine.add("CODE_SIGN_IDENTITY=" + codeSigningIdentity);
xcodeReport.append(", codeSignIdentity: ").append(codeSigningIdentity);
} else {
xcodeReport.append(", codeSignIdentity: DEFAULT");
}
// Additional (custom) xcodebuild arguments
if (!StringUtils.isEmpty(xcodebuildArguments)) {
String[] parts = xcodebuildArguments.split("[ ]");
for (String arg : parts) {
commandLine.add(arg);
}
}
listener.getLogger().println(xcodeReport.toString());
returnCode = launcher.launch().envs(envs).cmds(commandLine).stdout(reportGenerator.getOutputStream()).pwd(projectRoot).join();
if (reportGenerator.getExitCode() != 0) return false;
if (returnCode > 0) return false;
// Package IPA
if (buildIpa) {
if (buildDirectory.exists()) {
listener.getLogger().println(Messages.XCodeBuilder_cleaningIPA());
for (FilePath path : buildDirectory.list("*.ipa")) {
path.delete();
}
} else {
listener.getLogger().println(Messages.XCodeBuilder_NotExistingDirToCleanIPA(buildDirectory.absolutize().getRemote()));
}
listener.getLogger().println(Messages.XCodeBuilder_packagingIPA());
List<FilePath> apps = buildDirectory.list(new AppFileFilter());
for (FilePath app : apps) {
String version;
if (StringUtils.isEmpty(cfBundleShortVersionString) && StringUtils.isEmpty(cfBundleVersion))
version = Integer.toString(build.getNumber());
else if (StringUtils.isEmpty(cfBundleVersion))
version = cfBundleShortVersionString;
else
version = cfBundleVersion;
String baseName = app.getBaseName().replaceAll(" ", "_") + "-" +
configuration.replaceAll(" ", "_") + (StringUtils.isEmpty(version) ? "" : "-" + version);
FilePath ipaLocation = buildDirectory.child(baseName + ".ipa");
FilePath payload = buildDirectory.child("Payload");
payload.deleteRecursive();
payload.mkdirs();
listener.getLogger().println("Packaging " + app.getBaseName() + ".app => " + ipaLocation.absolutize().getRemote());
List<String> packageCommandLine = new ArrayList<String>();
packageCommandLine.add(getDescriptor().getXcrunPath());
packageCommandLine.add("-sdk");
if (!StringUtils.isEmpty(sdk)) {
packageCommandLine.add(sdk);
} else {
packageCommandLine.add(buildPlatform);
}
packageCommandLine.addAll(Lists.newArrayList("PackageApplication", "-v", app.absolutize().getRemote(), "-o", ipaLocation.absolutize().getRemote()));
if (!StringUtils.isEmpty(embeddedProfileFile)) {
packageCommandLine.add("--embed");
packageCommandLine.add(embeddedProfileFile);
}
returnCode = launcher.launch().envs(envs).stdout(listener).pwd(projectRoot).cmds(packageCommandLine).join();
if (returnCode > 0) {
listener.getLogger().println("Failed to build " + ipaLocation.absolutize().getRemote());
continue;
}
// also zip up the symbols, if present
returnCode = launcher.launch().envs(envs).stdout(listener).pwd(buildDirectory).cmds("zip", "-r", "-T", "-y", baseName + "-dSYM.zip", app.absolutize().getRemote() + ".dSYM").join();
if (returnCode > 0) {
listener.getLogger().println(Messages.XCodeBuilder_zipFailed(baseName));
continue;
}
payload.deleteRecursive();
}
}
return true;
}
@Override
public DescriptorImpl getDescriptor() {
return (DescriptorImpl) super.getDescriptor();
}
@Extension
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {
private String xcodebuildPath = "/usr/bin/xcodebuild";
private String agvtoolPath = "/usr/bin/agvtool";
private String xcrunPath = "/usr/bin/xcrun";
public FormValidation doCheckXcodebuildPath(@QueryParameter String value) throws IOException, ServletException {
if (StringUtils.isEmpty(value)) {
return FormValidation.error(Messages.XCodeBuilder_xcodebuildPathNotSet());
} else {
// TODO: check that the file exists (and if an agent is used ?)
}
return FormValidation.ok();
}
public FormValidation doCheckAgvtoolPath(@QueryParameter String value) throws IOException, ServletException {
if (StringUtils.isEmpty(value))
return FormValidation.error(Messages.XCodeBuilder_agvtoolPathNotSet());
else {
// TODO: check that the file exists (and if an agent is used ?)
}
return FormValidation.ok();
}
public FormValidation doCheckXcrunPath(@QueryParameter String value) throws IOException, ServletException {
if (StringUtils.isEmpty(value))
return FormValidation.error(Messages.XCodeBuilder_xcrunPathNotSet());
else {
// TODO: check that the file exists (and if an agent is used ?)
}
return FormValidation.ok();
}
public boolean isApplicable(Class<? extends AbstractProject> aClass) {
// indicates that this builder can be used with all kinds of project types
return true;
}
public String getDisplayName() {
return Messages.XCodeBuilder_xcode();
}
@Override
public boolean configure(StaplerRequest req, JSONObject formData) throws FormException {
req.bindJSON(this, formData);
save();
return super.configure(req, formData);
}
public String getAgvtoolPath() {
return agvtoolPath;
}
public String getXcodebuildPath() {
return xcodebuildPath;
}
public String getXcrunPath() {
return xcrunPath;
}
public void setXcodebuildPath(String xcodebuildPath) {
this.xcodebuildPath = xcodebuildPath;
}
public void setAgvtoolPath(String agvtoolPath) {
this.agvtoolPath = agvtoolPath;
}
public void setXcrunPath(String xcrunPath) {
this.xcrunPath = xcrunPath;
}
}
}