Commit 07c0b76
fix(build): Check xcarchive/IPA extension before ByteView::open
ByteView::open() calls File::open() internally, which fails with a
generic I/O error on directories. Since .xcarchive is a directory
bundle, the previous validation in validate_is_supported_build() was
unreachable — users on non-Apple Silicon got a confusing "Is a
directory" error instead of the intended helpful message.
Move the extension check before ByteView::open() so the clear error
message is shown.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 805ed87 commit 07c0b76
1 file changed
Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
212 | 226 | | |
213 | 227 | | |
214 | 228 | | |
| |||
543 | 557 | | |
544 | 558 | | |
545 | 559 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | 560 | | |
558 | 561 | | |
559 | 562 | | |
| |||
0 commit comments