WidgetKit Simulator with Intent Configurations

Xcode 16.2 are unavailable to develop widget with dynamic options, no matter SiriIntent or AppIntent that I try to use.

I have try to start a complete new project, then add widget with app intent checkbox check, with zero code changed then i press command run and WidgetKit Simulator present CHSErrorDomain error 1103 always, if i try to add widget directly from desktop, dynamic options are available to select but widgets doesn't seem like load successfully, it is stuck same in the WidgetKit Simulator.

I also try to start a new project in my other MacBook but no luck, this error are presenting all the time, I'm totally stuck here, does anybody having this issue?

Answered by Engineer in 822828022

Hi,

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include your sample project and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

Alternatively, you can use previews in your SwiftUI view. To test Widgets, you can use a preview as such:

#Preview(as: .systemMedium, widget: {
    EmojiRangerWidget()
}, timeline: {
    let date = Date()
    SimpleEntry(date: date, relevance: nil, hero: .spouty)
    SimpleEntry(date: date.addingTimeInterval(60), relevance: nil, hero: .spook)
})

Rico


WWDR | DTS | Software Engineer

Hi,

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include your sample project and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

Alternatively, you can use previews in your SwiftUI view. To test Widgets, you can use a preview as such:

#Preview(as: .systemMedium, widget: {
    EmojiRangerWidget()
}, timeline: {
    let date = Date()
    SimpleEntry(date: date, relevance: nil, hero: .spouty)
    SimpleEntry(date: date.addingTimeInterval(60), relevance: nil, hero: .spook)
})

Rico


WWDR | DTS | Software Engineer

== DATE:

    Thursday, January 30, 2025 at 17:39:26 China Standard Time
    
    2025-01-30T09:39:26Z



== PREVIEW UPDATE ERROR:

    FailedToLaunchAppError: Failed to launch com.dev.MyWidgetDemo.MyWidget
    
    ==================================
    
    |  [Remote] UnknownProcessType: This platform does not support previewing widgets.
    |  
    |  No plugin is registered to launch the process type widgetExtension.



== PREVIEW UPDATE ERROR:

    FailedToLaunchAppError: Failed to launch com.dev.MyWidgetDemo.MyWidget
    
    ==================================
    
    |  [Remote] UnknownProcessType: This platform does not support previewing widgets.
    |  
    |  No plugin is registered to launch the process type widgetExtension.



== VERSION INFO:

    Tools: 16C5032a
    OS:    24D60
    PID:   7759
    Model: Mac mini
    Arch:  arm64e



== ENVIRONMENT:

    openFiles = [
        /Users/macmini/Documents/Play/MyWidgetDemo/MyWidget/MyWidget.swift
    ]
    wantsNewBuildSystem = true
    newBuildSystemAvailable = true
    activeScheme = MyWidgetExtension
    activeRunDestination = My Mac variant macos arm64
    workspaceArena = [x]
    buildArena = [x]
    buildableEntries = [
        MyWidgetExtension.appex
    ]
    runMode = Dynamic Replacement



== SELECTED RUN DESTINATION:

    macOS 15.2 | macos | arm64 | Mac mini | no proxy



== EXECUTION MODE OVERRIDES:

    Workspace JIT mode user setting: true
    Falling back to Dynamic Replacement: true



== PACKAGE RESOLUTION ERRORS:

    



== REFERENCED SOURCE PACKAGES:

    



== JIT LINKAGE:

    



== SESSION GROUP 875:

    workspace identifier: WorkspaceIdentifier(identifier: 3F0134D3-2E9C-4E70-8C59-BEF8929713E3)
    providers: [
        Preview Provider | Registry-MyWidget.swift#1[preview] [Editor(690)]
    ]
    translation units: [
        /Users/macmini/Documents/Play/MyWidgetDemo/MyWidget/MyWidget.swift
    ]
    attributes: [
        Editor(690):     []
    ]
    session: 880
    request sessions: [
        Registry[Registry-MyWidget.swift#1[preview] (line 69)]: not completed
    ]



== UPDATE SESSION 880:

    Start Date: Thursday, January 30, 2025 at 17:39:14 China Standard Time
    Timing {
        Elapsed Time: 0.8214420080184937s
        bb202c116482a432,759922754.480366,0.8214420080184937s,,PreviewUpdateSession,id:880
        9458e467af815800,759922754.511848,0.00034308433532714844s,,MakeBuildGraph,
        e62da632c2901208,759922754.514023,0.7691110372543335s,,WorkspaceBuild,
        904ee961469308e0,759922755.298568,0.21591401100158691s,,ThunkBuild,MyWidget.swift
        b83a696b98055e4d,759922755.298603,0.002920985221862793s,,AgentLaunch,
    }
    Preview Preflight {
        UpdaterStore {
            updaterLimit: none
            expectedAbandonedIdentifiers: [856, 795, 765, 652, 825, 891]
        }
        My Mac {
            dvtDevice: My Mac
            buildNumber: 15.3 (24D60)
            arch: arm64e
        }
        host bundle: 
        com.dev.MyWidgetDemo {
            url: file:///Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug/MyWidgetDemo.app
            version: 885
            signingInformation: 
            Code Signing {
                identifier: com.dev.MyWidgetDemo
                identity: 2D89E3CEC7E2967E8173B834B22EECD493FEFC8F
                hasGetTaskAllow: false
                isSandboxed: true
            }
            attributes: [
                AgentRunModeKey: Dynamic Replacement,
                LaunchConfigArgumentsPreviewAttributesKey: ["-NSDocumentRevisionsDebugMode", "YES"],
                AppExtensionIdentifierPreviewAttributeKey: Optional(PreviewsPlatforms.AppExtension(bundleIdentifier: "com.dev.MyWidgetDemo.MyWidget", displayName: "MyWidgetExtension", kind: PreviewsPlatforms.AppExtension.Kind.widget, signingInformation: Optional(Code Signing {
                    identifier: com.dev.MyWidgetDemo.MyWidget
                    identity: 2D89E3CEC7E2967E8173B834B22EECD493FEFC8F
                    hasGetTaskAllow: false
                    isSandboxed: true
                }))),
                LaunchConfigEnvironmentVariablesPreviewAttributesKey: ["TERM": "dumb", "DYLD_FRAMEWORK_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "DYLD_LIBRARY_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_TRANSLATE_PRINT_MODE": "0x80", "_XCWidgetKind": "", "_XCWidgetDefaultView": "timeline", "_XCWidgetFamily": "systemMedium", "PACKAGE_RESOURCE_BUNDLE_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "__XPC_DYLD_LIBRARY_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "CFLOG_FORCE_DISABLE_STDERR": "1", "OS_ACTIVITY_TOOLS_PRIVACY": "YES", "SQLITE_ENABLE_THREAD_ASSERTIONS": "1", "DYLD_INSERT_LIBRARIES": "/Applications/Xcode.app/Contents/Developer/usr/lib/libLogRedirect.dylib", "__XCODE_BUILT_PRODUCTS_DIR_PATHS": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_DT_HOOK_PREFIX": "OSLOG-B7F88DC0-B9C4-4432-87C9-103F6FC7E21A", "OS_ACTIVITY_TOOLS_OVERSIZE": "YES", "IDE_DISABLED_OS_ACTIVITY_DT_MODE": "1", "__XPC_DYLD_FRAMEWORK_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_DT_HOOK_MODE": "0x07"],
                AgentCompanionAppBundleIdentifierKey: nil,
                AgentRoleKey: Previews,
            ]
        }
        builtTargetDescriptions: empty
    }
    Preview Provider {
        UpdaterStore {
            updaterLimit: none
            expectedAbandonedIdentifiers: [856, 795, 765, 652, 825, 891]
        }
        My Mac {
            dvtDevice: My Mac
            buildNumber: 15.3 (24D60)
            arch: arm64e
        }
        host bundle: 
        com.dev.MyWidgetDemo {
            url: file:///Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug/MyWidgetDemo.app
            version: 885
            signingInformation: 
            Code Signing {
                identifier: com.dev.MyWidgetDemo
                identity: 2D89E3CEC7E2967E8173B834B22EECD493FEFC8F
                hasGetTaskAllow: false
                isSandboxed: true
            }
            attributes: [
                AgentRunModeKey: Dynamic Replacement,
                LaunchConfigArgumentsPreviewAttributesKey: ["-NSDocumentRevisionsDebugMode", "YES"],
                AppExtensionIdentifierPreviewAttributeKey: Optional(PreviewsPlatforms.AppExtension(bundleIdentifier: "com.dev.MyWidgetDemo.MyWidget", displayName: "MyWidgetExtension", kind: PreviewsPlatforms.AppExtension.Kind.widget, signingInformation: Optional(Code Signing {
                    identifier: com.dev.MyWidgetDemo.MyWidget
                    identity: 2D89E3CEC7E2967E8173B834B22EECD493FEFC8F
                    hasGetTaskAllow: false
                    isSandboxed: true
                }))),
                LaunchConfigEnvironmentVariablesPreviewAttributesKey: ["TERM": "dumb", "DYLD_FRAMEWORK_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "DYLD_LIBRARY_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_TRANSLATE_PRINT_MODE": "0x80", "_XCWidgetKind": "", "_XCWidgetDefaultView": "timeline", "_XCWidgetFamily": "systemMedium", "PACKAGE_RESOURCE_BUNDLE_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "__XPC_DYLD_LIBRARY_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "CFLOG_FORCE_DISABLE_STDERR": "1", "OS_ACTIVITY_TOOLS_PRIVACY": "YES", "SQLITE_ENABLE_THREAD_ASSERTIONS": "1", "DYLD_INSERT_LIBRARIES": "/Applications/Xcode.app/Contents/Developer/usr/lib/libLogRedirect.dylib", "__XCODE_BUILT_PRODUCTS_DIR_PATHS": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_DT_HOOK_PREFIX": "OSLOG-B7F88DC0-B9C4-4432-87C9-103F6FC7E21A", "OS_ACTIVITY_TOOLS_OVERSIZE": "YES", "IDE_DISABLED_OS_ACTIVITY_DT_MODE": "1", "__XPC_DYLD_FRAMEWORK_PATH": "/Users/macmini/Library/Developer/Xcode/DerivedData/MyWidgetDemo-gomjpikmrusncffclkaktpvhzxor/Build/Intermediates.noindex/Previews/macos/MyWidgetExtension/Products/Debug", "OS_LOG_DT_HOOK_MODE": "0x07"],
                AgentCompanionAppBundleIdentifierKey: nil,
                AgentRoleKey: Previews,
            ]
        }
        builtTargetDescriptions: empty
    }
    Build Graph {
        MyWidgetDemo.app (#4)
           MyWidgetExtension.appex (#3)
              sourceFile(file:///Users/macmini/Documents/Play/MyWidgetDemo/MyWidget/MyWidget.swift -> MyWidget.swift) (#1)
              MyWidget.swift (#2)
    }
    Update Plan {
        macOS [arm64 macosx15.2 macos] (Mac mini, 00008132-000139E91139001C-macosx15.2-arm64-macos), [], thinning enabled, thunking enabled) {
            Destination: My Mac dvtdevice-local-computer:localhost | default device for macos [
                MyWidgetExtension appExtension - Previews {
                    execution point packs [
                        [source: MyWidget.swift, role: Previews] (in MyWidgetExtension)
                    ]
                    translation units [
                        MyWidget.swift (in MyWidgetExtension.appex)
                    ]
                    modules [
                        MyWidgetExtension.appex
                    ]
                    jit link description [
                        MyWidgetExtension.appex
                    ]
                }
            ]
        }
    }



== POWER STATE LOGS:

    2025/1/30, 17:38 Received power source state: Externally Powered
    2025/1/30, 17:38 No device power state user override user default value.Current power state: Full Power
WidgetKit Simulator with Intent Configurations
 
 
Q