Failed to build the scheme (When trying to use Canvas

Hi,

I am running Xcode Beta Version 15.0 beta 3 (15A5195k)

With my test Apps I am now getting the error Failed to Build the Scheme when trying to use the Canvas.

The Apps all compile and run both in the Simulator and on an external device such as my iPhone,

Error details below..

Any ideas would be helpful.

Thanks.. Craig.

== DATE:

Friday, 7 July 2023 at 9:13:45 pm Australian Eastern Standard Time

2023-07-07T11:13:45Z

== PREVIEW UPDATE ERROR:

SchemeBuildError: Failed to build the scheme ”Ham Net”

linker command failed with exit code 1 (use -v to see invocation)

Link Ham Net (arm64):
ld: Undefined symbols:
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.myFavourite.init : Swift.Bool, referenced from:
      Ham_Net.HamNetItems.myFavourite.init : Swift.Bool in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.netFrequency.init : Swift.String, referenced from:
      Ham_Net.HamNetItems.netFrequency.init : Swift.String in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.netController.init : Swift.String, referenced from:
      Ham_Net.HamNetItems.netController.init : Swift.String in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.selectDayIndex.init : Swift.Int, referenced from:
      Ham_Net.HamNetItems.selectDayIndex.init : Swift.Int in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.name.init : Swift.String, referenced from:
      Ham_Net.HamNetItems.name.init : Swift.String in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.hours.init : Swift.Int, referenced from:
      Ham_Net.HamNetItems.hours.init : Swift.Int in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.comment.init : Swift.String, referenced from:
      Ham_Net.HamNetItems.comment.init : Swift.String in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.minutes.init : Swift.Int, referenced from:
      Ham_Net.HamNetItems.minutes.init : Swift.Int in AddNetView.o
  unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.dateAdded.init : Foundation.Date, referenced from:
      Ham_Net.HamNetItems.dateAdded.init : Foundation.Date in AddNetView.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

== VERSION INFO:

Tools: 15A5195k
OS:    22G5059d
PID:   8922
Model: MacBook Air
Arch:  arm64e

I have the same problem after installing beta 3. You can't even preview the standard app template...

Same problem, I can not run no Present or previous Xcode program now.

Same problem here. Unable to build standard template in the preview canvas :

`ld: Undefined symbols: unsafeMutableAddressor of self #1 : Crash.Item in Crash.Item.timestamp.init : Foundation.Date, referenced from: Crash.Item.timestamp.init : Foundation.Date in Item.o clang: error: linker command failed with exit code 1 (use -v to see invocation)

Xcode 15 beta 4 Release Notes :

Previewing view code in a SwiftData app results in a linker failure for the canvas despite that code compiling successfully for device and simulator. (111657477) Workaround: Run your app in the simulator to test your UI instead of using Previews.

Failed to build the scheme (When trying to use Canvas
 
 
Q