Post

Replies

Boosts

Views

Activity

Reply to Invalid code signing entitlements with app group on macOS
@DTS Engineer Thank you for the detailed instructions. I followed each step carefully and achieved the "same" results as outlined in your guide (with different identifiers, of course). Specifically, I generated a new provision profile UUID and group identifiers starting with “group.” And in the provision profile file with the new UUID, there is key "com.apple.security.application-groups" with same value as set in Xcode. However, after uploading the archive to the App Store via Xcode Organizer, I am still encountering the same error as before. ... This value should be a string or an array of strings, where each string is the “group” value or your Team ID, followed by a dot (“.”), followed by the group name. If you're using the “group” prefix, verify that the provisioning profile used to sign the app contains the com.apple.security.application-groups entitlement and its associated value(s). ... Additionally, when testing the widget using WidgetKit Simulator on macOS, I receive error message continually when show the timeline. The operation couldn't be completed. (CHSErrorDomain error 1103.) Could you kindly advise on a solution for this as well?
Topic: Code Signing SubTopic: Entitlements Tags:
Feb ’25
Reply to CKSyncEngine & SwiftData
The ModelConfiguration is what you are looking for. I do not get chance to try it, but the WWDC video shows the way like: let people = ModelConfiguration(..., cloudKitContainerIdentifier: "com.xxx.xxx") let container = try ModelContainer(for: ..., people) I understand that SwiftData is a set of swift classes. However, I have some concerns about using them directly in the UI, as shown in the videos and the examples. This may lead to some problems: Performance issue. For instance, if a record contains some images, how can I handle them efficiently with SwiftData? I don't want to load all the image data in memory, but rather cache them in files and load the URL in the view model. Complicated logic. Using SwiftData models in the UI may be convenient for coding, but sometimes the logic may become too complex. We may need to create other view models based on the basic models. But SwiftData is not a lightweight variable, and I don't know how to track the changes of the SwiftData models in other custom @Observeable models. I have no more CoreData experience, would you please help to suggest the way to use SwiftData for my preceding concerns?
Jun ’23
Reply to CKSyncEngine & SwiftData
One of the benefits of SwiftData is that it allows us to access CloudKit containers directly without having to deal with CKRecord and other low-level details. However, I am wondering which solution is better for an app that has a complex view model. Is SwiftData suitable for handling complex data structures and relationships? Or should we use the the traditional way to code the view models with CKSyncEngine for sync?
Jun ’23
Reply to 🔥 Xcode 26 RC – visionOS App Icon Created with Icon Composer Appears Empty
I found the way: using the same Icon Name for app created with Icon Composer and the old asset for visionOS app icon.
Replies
Boosts
Views
Activity
Sep ’25
Reply to focusable modifier does not work on Ventura
Close this post as no reply
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to .commandsRemoved() does not work for the first scene.
Close this post after a long time.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to NSView and Events
No solution
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to iPadOS 26 Menu Bar Questions
Feedback ID: FB18792279
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’25
Reply to Tint color for default toolbar items in iOS 26
It seems that the “.tint” modifier does not work for “Menu” either, even if .menuType(.button) is specified.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to Invalid code signing entitlements with app group on macOS
@DTS Engineer Thank you for the detailed instructions. I followed each step carefully and achieved the "same" results as outlined in your guide (with different identifiers, of course). Specifically, I generated a new provision profile UUID and group identifiers starting with “group.” And in the provision profile file with the new UUID, there is key "com.apple.security.application-groups" with same value as set in Xcode. However, after uploading the archive to the App Store via Xcode Organizer, I am still encountering the same error as before. ... This value should be a string or an array of strings, where each string is the “group” value or your Team ID, followed by a dot (“.”), followed by the group name. If you're using the “group” prefix, verify that the provisioning profile used to sign the app contains the com.apple.security.application-groups entitlement and its associated value(s). ... Additionally, when testing the widget using WidgetKit Simulator on macOS, I receive error message continually when show the timeline. The operation couldn't be completed. (CHSErrorDomain error 1103.) Could you kindly advise on a solution for this as well?
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to CKSyncEngine & SwiftData
The ModelConfiguration is what you are looking for. I do not get chance to try it, but the WWDC video shows the way like: let people = ModelConfiguration(..., cloudKitContainerIdentifier: "com.xxx.xxx") let container = try ModelContainer(for: ..., people) I understand that SwiftData is a set of swift classes. However, I have some concerns about using them directly in the UI, as shown in the videos and the examples. This may lead to some problems: Performance issue. For instance, if a record contains some images, how can I handle them efficiently with SwiftData? I don't want to load all the image data in memory, but rather cache them in files and load the URL in the view model. Complicated logic. Using SwiftData models in the UI may be convenient for coding, but sometimes the logic may become too complex. We may need to create other view models based on the basic models. But SwiftData is not a lightweight variable, and I don't know how to track the changes of the SwiftData models in other custom @Observeable models. I have no more CoreData experience, would you please help to suggest the way to use SwiftData for my preceding concerns?
Replies
Boosts
Views
Activity
Jun ’23
Reply to CKSyncEngine & SwiftData
One of the benefits of SwiftData is that it allows us to access CloudKit containers directly without having to deal with CKRecord and other low-level details. However, I am wondering which solution is better for an app that has a complex view model. Is SwiftData suitable for handling complex data structures and relationships? Or should we use the the traditional way to code the view models with CKSyncEngine for sync?
Replies
Boosts
Views
Activity
Jun ’23
Reply to SwiftUI/PlatformDocument_Mac.swift:13: Fatal error: Expected subclass override
Same problem here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22