Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Xcode #Playground fails

I'm watching the session video "What's new in Xcode 26" and when I try out the new #Playground macro (in the context of a local package in my project) I see only this activity indicator for about 10-15 minutes:

Eventually I do see this error:

Despite the error, my local package does not import SwiftUI and has no dependencies other than Foundation.

I checked the Xcode 26 release notes and I don't see this issue mentioned.

A clean build of my project takes 55 seconds. Is it expected behavior that #Playground would require 10+ minutes to spin up?

Is there anything I can to do make the new #Playground macro work correctly?

Thank you.

Answered by Developer Tools Engineer in 844345022

as a workaround could you try to see if adding a import SwiftUI avoids the issue you are seeing here?

Accepted Answer

as a workaround could you try to see if adding a import SwiftUI avoids the issue you are seeing here?

Workaround version that includes import SwiftUI:

Xcode #Playground fails
 
 
Q