Xcode 15 Beta 3 (15A5195k) HelloWorld failed to build

This is the HelloWorld project from https://developer.apple.com/documentation/visionos/world

In ViewModel.swift, there are tons of:

Expansion of macro 'ObservationTracked' produced an unexpected 'init' accessor

I got this even after "Clean Build Folder"

Hi All,

Xcode 15.0 beta 5 working better than previous versions. Hello World as published by Apple compiles and runs on Apple Vision Pro simulator. Same for the Multiplatform template test. Hello World still crashes here when I choose the View Globe or View Orbits or View Outer Space buttons. Error is:

     } catch {
        fatalError("Failed to load a model asset.")
    }

Xcode 15.0 beta 5 (15A5209g) macOS Sonoma 14.0 Beta (23A5301g) Mac mini 2018 16gB RAM (Intel processor)

Regards, Johel

Running Hello World in Xcode 15 beta 5 on a M1 Max still crashes and adding @ObervationIgnored just increases the errors. Ultimately I just refactored ViewModel to @ObservableObject and converted all instances to @ObservedObjects. It required a number of other tweaks too, but those were the primary changes.

Hi All,

There is a new version of HelloWord at https://developer.apple.com/documentation/visionOS/World

All those problems listed before are from the first version from June 16 2023. The new version is from July 14 2023. It compiles with no problems and runs at the simulator also with no problems.

Download it and enjoy.

BTW, that's a fantastic app!

Xcode 15.0 beta 5 (15A5209g) macOS Sonoma 14.0 Beta (23A5301g) Mac mini 2018 16gB RAM (Intel processor)

Regards, Johel

Xcode 15.0 beta 6 now breaks this again with the same error. Beta 5 worked fine. Apple has now deleted all release notes from beta 1 - 5, and no longer allows you to download any other version other then Xcode 15.0 beta 6. Good one apple...

Xcode 15 Beta 3 (15A5195k) HelloWorld failed to build
 
 
Q