Skip to content

Fix running tests on iOS 26 Simulator on macOS Sequia#2

Closed
atdrendel wants to merge 7 commits intofix-tests-on-macos-15from
fix-simulator-tests-on-xcode-26
Closed

Fix running tests on iOS 26 Simulator on macOS Sequia#2
atdrendel wants to merge 7 commits intofix-tests-on-macos-15from
fix-simulator-tests-on-xcode-26

Conversation

@atdrendel
Copy link

@atdrendel atdrendel commented Feb 2, 2026

This pull request builds on my changes in mattt/AnyLanguageModel#100.

  • Fix issues building on macOS 15 (Xcode 26.2) targeting the iOS 26.2 Simulator
  • Fix issues building for watchOS

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.

AnyLanguageModel - macOS Sequoia - iOS 26 2 Simulator - Xcode 26 2 - Before Changes

After fixing the availability guards, tests were skipped correctly and the entire test suite passed.

AnyLanguageModel - macOS Sequoia - iOS 26 2 Simulator - Xcode 26 2 - After Changes

Copilot AI review requested due to automatic review settings February 2, 2026 16:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

atdrendel and others added 2 commits February 3, 2026 01:58
* Implement prewarm for MLXLanguageModel

* Reduce prewarm to just loadContext
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
Copy link
Author

Choose a reason for hiding this comment

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

These products are all explicitly imported in GenerableMacro.swift.

Image

Copy link
Author

Choose a reason for hiding this comment

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

Core Image is not available on watchOS.

Image

@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@shareup shareup deleted a comment from Copilot AI Feb 3, 2026
@atdrendel atdrendel force-pushed the fix-simulator-tests-on-xcode-26 branch from b561673 to bfe77f2 Compare February 3, 2026 22:04
@atdrendel atdrendel closed this Feb 4, 2026
@atdrendel atdrendel deleted the fix-simulator-tests-on-xcode-26 branch February 4, 2026 14:06
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.

2 participants