Post

Replies

Boosts

Views

Activity

Reply to Build Vision Pro failed
We have previous compiled for visionOS 2.0 no problem but now using Xcode 26 (beta 2) we're getting errors in Package.swift. Updating swift-tools-version to 6.0 and the platform to .visionOS(.v2) didn't do anything an in fact the compiler suggests .v2 doesn't exist as an option. The real issue turned out to be an outdated Light component in one of our models in our Reality Composer Pro assets bundle that I only found by deleting half our models in the bundle, attempting to compile, and repeating ad nauseam.
Jul ’25
Reply to RealityView in Xcode 15.0 beta 8 gives error - 'init(make:update:attachments:)' is unavailable in visionOS
As far as I can tell this big change went undocumented but the way attachments work completely changed: Old: RealityView { content, attachments in content.add(Entity()) } attachments: { Text("Hello") .tag("h1") } New: RealityView { content, attachments in content.add(Entity()) } attachments: { Attachment(id: "h1") { Text("Hello") } } Definitely an improvement but I hope it get’s added to the change log soon! Or at least get’s a helpful warning in the next Xcode! (edited)
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’23