Swift Playground 4.6 - App Fails to Run with import AppIntent

Hi everyone,

I’ve been developing an app using Swift Playgrounds, and it was working fine in version 4.5.
However, after updating to Swift Playground 4.6, the app no longer runs.

After some testing, I found that the issue occurs when import AppIntent is included.
Here’s a simple example:

import SwiftUI
//import AppIntents // <- If this line is included, Preview and Run fail.

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("Hello, world!")
        }
    }
}

Has anyone else encountered this issue?

Thanks!

Hello,

I am able to reproduce this issue with Swift Playground 4.6.3 on Mac. Would you be able to file a report in Feedback Assistant (feedbackassistant.apple.com) so we can track this problem internally?

Thank you!

Swift Playground 4.6 - App Fails to Run with import AppIntent
 
 
Q