Skip to content

Conversation

@acecilia
Copy link

@acecilia acecilia commented Jan 16, 2026

Solves #456

Tested on my intel mac: after running update, I was able to run install 26.2 and it installed the correct architecture

- Add 4 integration tests for XcodeList.update() that verify architecture filtering
- Tests cover ARM64 selecting Apple_silicon, ARM64 fallback to Universal, Intel selecting Universal, and Intel edge case
- Replace Date() with Date(timeIntervalSince1970: 0) for consistent test behavior
- Replace force unwraps with XCTUnwrap in test mocks
- Replace try! with try and proper error handling
- Wrap mock setup in do-catch blocks that return Promise errors
} else {
// On Intel, prefer Universal, avoid Apple_silicon
selected = variants.first { $0.url.absoluteString.contains("Universal") }
?? variants.first { !$0.url.absoluteString.contains("Apple_silicon") }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datasource does not include an arch parameter, so the only way to distinguish is by using the file name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant