Post

Replies

Boosts

Views

Activity

Reply to Conditional compile for Vision OS?
Hello, So I think there has been a kind of misunderstanding. I assume @technomage was talking about an app that runs in compatibility mode, so it's not specifically compiled for visionOS. Under these circumstances it is probably expected behaviour to pretend not to be run on visionOS to not break old code that is checking for iOS vs other. I had the chance to test on a real device now and as long as I don't add visionOS as a supported architecture the app will always run in compatibility mode and pretend to be iOS. Since compiling everything for visionOS is not an option right now with multiple dependencies being incompatible we have to resort to a workaround as suggested by https://medium.com/@timonus/low-hanging-fruit-for-ios-apps-running-on-visionos-08a85db0fb31 (I did not test this) or https://stackoverflow.com/a/77962734 (works)
Jul ’24