Fix running tests on iOS 26 Simulator on macOS Sequia#2
Closed
atdrendel wants to merge 7 commits intofix-tests-on-macos-15from
Closed
Fix running tests on iOS 26 Simulator on macOS Sequia#2atdrendel wants to merge 7 commits intofix-tests-on-macos-15from
atdrendel wants to merge 7 commits intofix-tests-on-macos-15from
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request fixes availability guards in test files to properly support running tests on iOS 26 Simulator. The changes add iOS 26.0 and visionOS 26.0 to availability checks that previously only specified macOS 26.0, which was causing test failures when running on iOS simulators.
Changes:
- Updated availability guards from
@available(macOS 26.0, *)to@available(macOS 26.0, iOS 26.0, visionOS 26.0, *)across all SystemLanguageModel tests - Modified availability checks in compatibility test files to include iOS and visionOS platforms
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 20 comments.
| File | Description |
|---|---|
| Tests/AnyLanguageModelTests/SystemLanguageModelTests.swift | Updated 16 availability guards to include iOS 26.0 and visionOS 26.0 for all test methods and the availability check closure |
| Tests/AnyLanguageModelTests/APICompatibilityFoundationModelsTests.swift | Updated availability guards in FoundationModels compatibility tests to include iOS and visionOS |
| Tests/AnyLanguageModelTests/APICompatibilityAnyLanguageModelTests.swift | Updated availability guards in AnyLanguageModel compatibility tests to include iOS and visionOS |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* Implement prewarm for MLXLanguageModel * Reduce prewarm to just loadContext
atdrendel
commented
Feb 3, 2026
Author
atdrendel
commented
Feb 3, 2026
Author
b561673 to
bfe77f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


This pull request builds on my changes in mattt/AnyLanguageModel#100.
Before making these changes, running the tests on my iOS 26.2 Simulator running on macOS 15 (Xcode 26.2) resulted in a bunch of failed tests.
After fixing the availability guards, tests were skipped correctly and the entire test suite passed.