Commit 9afdfc7
committed
Fix xcodemake argument corruption from overly broad string replacement
The executeXcodemakeCommand function was using .replace() to remove project
directory paths from arguments, which would corrupt any argument containing
the project directory path as a substring (not just as a prefix).
Changed to use .startsWith() and .substring() to only remove the project
directory when it appears as a path prefix, matching the approach already
used in doesMakeLogFileExist.
Fixes XCODEBUILD-MCP-12S91 parent f5037ce commit 9afdfc7
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
0 commit comments