Esri / arcgis-maps-sdk-swift-toolkit

Mapping components that will simplify your Swift app development with the ArcGIS Maps SDK for Swift.
https://developers.arcgis.com/swift
Apache License 2.0
29 stars 9 forks source link

Fix unit tests for visionOS #904

Closed zkline101 closed 1 month ago

zkline101 commented 1 month ago

Since the toolkit package supports visionOS that means I can't stop someone from running the unit tests against visionOS even though most of the tests use components that aren't supported yet for visionOS.

So if someone tries to run the unit tests against visionOS they will see build errors for components that unavailable for visionOS. This fixes those and the tests that can be run I left alone and they succeed.

I wish marking a test class as @available(visionOS, unavailable) would prevent that class from being run on visionOS but it does not so I just hide those test classes behind #if !os(visionOS).