My preview doesn't load, and when starting the scheme, the widget doesn't link with my application
Details: XCode 15.0 IOS 17
Hardware: Macbook Pro M2
My preview doesn't load, and when starting the scheme, the widget doesn't link with my application
Details: XCode 15.0 IOS 17
Hardware: Macbook Pro M2
We're going to need more info on this. What is the error in the preview view on the right? That little stethoscope symbol will give you more info.
Diagnostic:
== DATE:
Tuesday, 31 October 2023 at 11:46:29 Brasilia Standard Time
2023-10-31T14:46:29Z
== PREVIEW UPDATE ERROR:
FailedToLaunchAppError: Failed to launch fullcond.app.condominos.widget
==================================
| RemoteHumanReadableError: Failed to launch widget extension
|
| ==================================
|
| | RemoteHumanReadableError
| |
| | NSError: Error Domain=CHSErrorDomain Code=1300 "(null)"
== VERSION INFO:
Tools: 15A240d
OS: 23A344
PID: 623
Model: MacBook Pro
Arch: arm64e
== ENVIRONMENT:
openFiles = [
/Users/gustavo/Documents/Work/fullcond_app_condominos/ios/widget/widget.swift
]
wantsNewBuildSystem = true
newBuildSystemAvailable = true
activeScheme = widgetExtension
activeRunDestination = iPhone 15 Plus variant iphonesimulator arm64
workspaceArena = [x]
buildArena = [x]
buildableEntries = [
widgetExtension.appex
]
runMode = Dynamic Replacement
== SELECTED RUN DESTINATION:
name = iPhone 15 Plus
eligible = true
sdk = Optional(<DVTSDK:0x125b32eb0:'iphonesimulator17.0':Simulator - iOS 17.0:<DVTFilePath:0x600000d7e4c0:'/Users/gustavo/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk'>>)
variant = Optional("iphonesimulator")
device = Optional(<DVTiPhoneSimulator: 0x112550500> {
SimDevice: iPhone 15 Plus (6CCE0589-63C4-4D04-B070-6C68D2633B91, iOS 17.0, Booted)
})
Hi,
Sorry to hear you are having problems getting widget previews working. This error can often indicate a crash in your widget extension when it launches, or a problem with the simulator. If you look into the folder ~/Library/Logs/DiagnosticReports
, do you see any crash reports for your widget?
If not, the best next step will be to file a feedback with diagnostics so we can take a look.
Steps to generate helpful diagnostics:
previews-diagnostics-0123456789.zip
)Below are some log files: