feat: let usePrebuiltWDA run prebuild when the given derivedDataPath has no directories, or no this.wda.retrieveDerivedDataPath present #2374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Helps appium/appium#19923
This PR lets give
prebuildWDA
flag. If the flag is true,WebDriverAgent
will run build onlyxcodebuild
command withbuild-for-testing
. Then, the WDA instance starts a xcodebuild WDA session withtest-without-building
.With
appium:derivedDataPath
, the xcodebuild sets the derived data path with it. If the path already hasBuild
directory, it will skip the prebuildWDA step to keep the backward compatibility.If no
appium:derivedDataPath
, the path will depends on xcodebuild. By the prebuildWDA flag, both cases will not require prebuild project environment.Below is an example with
prebuildWDA
. At least withprebuildWDA
(which is only for WDA instance argument), theusePrebuiltWDA
works even it is an initial time.