Xcode 15 beta 6: is xrOS no longer considered as iOS?

In Xcode 15 beta 6, I found that when building visionOS apps, #if os(iOS) is no longer considered part of the project. This behavior is different from beta 1 to beta 5.

Is this intentional? This change has caused third-party dependencies that use #if os(iOS) and have not yet explicitly supported visionOS to fail to compile. Is there a way to switch back to the old behavior? After all, requiring all third-party dependencies to explicitly support visionOS is quite difficult.

Answered by Graphics and Games Engineer in 761495022

I have an update: this change is expected.

Hmm, this definitely sounds unexpected. Could you file a bug report on feedback assistant and include a small sample project that reproduces the issue?

Accepted Answer

I have an update: this change is expected.

Update: The worst case is not that the third-party library fails to compile on visionOS, but that it compiles successfully and behaves incorrectly.

Xcode 15 beta 6: is xrOS no longer considered as iOS?
 
 
Q