TabletopKit sample code won't build on Xcode 16 beta 4

The TabletopKit sample app builds fine with Xcode 16 beta 1. https://developer.apple.com/documentation/tabletopkit/tabletopkitsample

I updated to the new beta 4 and downloaded an updated version of the Tabletopkit sample code but am now getting this error.

Tabeletopkit Sample 1 issue
SwiftUI.ToolbarContent:3:51 
Main actor-isolated static method '_makeContent(content:inputs:resolved:)' cannot be used to satisfy nonisolated protocol requirement
Add '@preconcurrency' to the 'ToolbarContent' conformance to defer isolation checking to run time
'_makeContent(content:inputs:resolved:)' declared here

If I go back to beta 1 it still builds OK. I tried its suggestion but it still won't build. Is there a workaround? I didn't see it listed.

Answered by Vision Pro Engineer in 796960022

Hey @kevingr,

This is a known issue with custom ToolbarContent in Beta 4 with Swift 6. You can either use Beta 3 or remove the GameToolbar from the sample code for the time being.

Hope this helps,

Michael

Hey @kevingr,

This is a known issue with custom ToolbarContent in Beta 4 with Swift 6. You can either use Beta 3 or remove the GameToolbar from the sample code for the time being.

Hope this helps,

Michael

Thanks. Beta 3 does work. I tried Beta 5 and it fixes that problem, but now a new problem shows up that I can't find much about:

Tabletopkit Sample/GroupActivityManager.swift:26:28 
Main actor-isolated value of type '() async -> Void' passed as a strongly transferred parameter; later accesses could race
TabletopKit sample code won't build on Xcode 16 beta 4
 
 
Q