Post

Replies

Boosts

Views

Activity

Reply to View shown by App Intent with ShowsSnippetView doesn't adapt to dark mode
I tried it around the time I originally posted this thread, and that sample code project displays the dialog correctly, but it's not analogous to what I'm discussing here, because it uses IntentDialog. The repo I posted with the reproduction only uses a snippet view without a dialog. The dialog adds a top section with additional information. I just want to display the snippet. Also, when I wrap a snippet in an IntentDialog, sometimes I get the same behavior where the snippet doesn't adapt to dark mode. When I tried to build Apple's sample code project again just now, I got this error: Invalid value of WKCompanionAppBundleIdentifier key in WatchKit 2.0 app's Info.plist: com.example.apple-samplecode.AppIntentsSampleApp (expected com.example.apple-samplecode.AppIntentsSampleApp<redacted>)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to View shown by App Intent with ShowsSnippetView doesn't adapt to dark mode
Sorry, I forgot to make the repo public. It's now public. You're wrong about specifying .foregroundColor(.secondary). I tried that and it does not change the fact that the snippet view is not displaying properly in dark mode. Please read again what I wrote: The colorScheme environment variable is even showing light when the device is set to dark mode, so this is a bug in iOS. Please try the reproduction in the repo to see it for yourself.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to View shown by App Intent with ShowsSnippetView doesn't adapt to dark mode
@DTS Engineer , I don't see anything in that view that is different from what I already have: struct ResponseSnippetView: View { let text: String var body: some View { VStack(alignment: .leading, spacing: 8) { Text(.init(text)) } .padding() .frame(maxWidth: .infinity, alignment: .leading) } } As I mentioned, the text appears black in dark mode, not white as in the screenshot you posted. The colorScheme value inside the view corresponds to light mode even when the device is in dark mode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25
Reply to SwiftUI: Command SwiftCompile failed with a nonzero exit code
@Scionwest2, I had the same problem: Moving a @ViewBuilder element of my view into a separate View struct fixed the compiler crash that happened during archiving. This was happening on Xcode 16.3 (16E140). I think this part of my code didn't change after I updated to the latest Xcode, so it seems to be an issue with the build tools in the latest Xcode. Cc @DTS Engineer
Apr ’25
Reply to Invalid code signing entitlements with app group on macOS
Now I'm getting this error when I try to run my app from Xcode on an iOS device: Unable to Install “” Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.PIDzl9/extracted/.app : 0xe8008015 (A valid provisioning profile for this executable was not found.) Please ensure sure that your app is signed by a valid provisioning profile. If this issue persists, please attach the following when sending a report to Apple: - A sysdiagnose from this Mac - A sysdiagnose from the device failing installation - An IPA of the app failing installation
Topic: Code Signing SubTopic: Entitlements Tags:
Feb ’25
Reply to Invalid code signing entitlements with app group on macOS
These are the steps that I seem to have resolved it for me: I created a provisioning profile in my developer account, used this provisioning profile instead of the automatic signing (although it couldn't find a corresponding certificate), and then switched back to automatic signing in Xcode. I was prompted several times to enter my password, including during the archiving/uploading process, and then it finally worked when I submitted the build to App Store Connect.
Topic: Code Signing SubTopic: Entitlements Tags:
Feb ’25