Posts

Post not yet marked as solved
1 Replies
450 Views
CIFormat static var such as RGBA16 give concurrency warnings: Reference to static property 'RGBA16' is not concurrency-safe because it involves shared mutable state; this is an error in Swift 6 Should all these formats be static let to suppress the warnings (future errors)?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
0 Replies
296 Views
Calling reloadTimelines() on WidgetCenter.shared does not reload the timeline on my Apple Watch with watchOS 10.2 beta 2. Used to work in watchOS 10.1 and before. It does not work in iOS 17.2 beta 2 either. Do others see the same problem?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
2 Replies
677 Views
I keep getting crashes with the following error in Xcode 15 beta 7: CoreData: debug: PostSaveMaintenance: fileSize 15009192 greater than prune threshold CoreData: annotation: PostSaveMaintenance: wal_checkpoint(TRUNCATE) Is 15M bytes too much data?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
1 Replies
829 Views
Running my app with SwiftData in iOS 17 beta on iPhone leads to error: cannot open file at line 46973 of [554764a6e7] os_unix.c:46973: (2) open(/private/var/mobile/Containers/Data/Application/ED4308D5-058B-41BC-A617-A46F9754E3EC/Library/Application Support/default.store) - No such file or directory API call with unopened database connection pointer misuse at line 179760 of [554764a6e7] It seems the database file has not been created yet, since it's the first time running the app with SwiftData.
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
0 Replies
366 Views
For a watch app with a companion iOS app, if the user purchases a subscription in the iOS app, does the subscriptionStatusTask view modifier in the watch app get the subscription info? Is the user considered subscribed in the watch app?
Posted
by yvsong.
Last updated
.
Post marked as solved
7 Replies
3.7k Views
In iOS 16 beta 3, my iOS app sets some strings in the shared user defaults of the app group. The iOS widget extension reads the strings from the shared user defaults correctly, but the watchOS app and watchOS widget extension could not read them (get nil). Integers stored in the shared user defaults can be read everywhere. All targets are in the same app group. Does anyone have similar problems?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
3 Replies
1k Views
In Xcode 15 beta 3 and iOS 17 beta 3, my app with SwiftData keeps generating error: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSManagedObject 0x2811cb390> setValue:forUndefinedKey:]: the entity dataSets is not key value coding-compliant for the key "(null)".' I have a model: @Model final class Station: Sendable { ... var dataSets: [String] } The error seems to occur when saving entities of the model in SwiftData. There is no entity named "dataSets". Only a property in the above model. What's the null key in the error?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
1 Replies
394 Views
With the following in an iOS and watch app import Observation @Observable final class DataModel { var common = 0 #if os(iOS) var iProp = 0 #endif } Xcode 15 beta 5 reports error: Cannot find type '_iProp' in scope Is platform specific property forbidden in Observable objects?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
0 Replies
573 Views
Xcode 15 beta 5 removed the batch insert method for ModelContext, as verified in code, and indicated in the online doc, although Xcode documentation still shows it. How can we perform batch insertions?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
1 Replies
453 Views
Checking subscription status with the new subscriptionStatusTask on iOS 17 beta 3 works well for me, but the status is empty on watchOS 10 beta 3. Seems the same problem reported elsewhere. Does anyone see this problem too?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
3 Replies
601 Views
My app supports English and another language. The English string catalog is empty. Running the app in English in Xcode 15 beta 3, all strings are displayed in capital letters. It seems the behavior when translations are missing. Do we need to translate each English key into the same English translation, or is it a bug?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
0 Replies
483 Views
Has anyone used healthDataAccessRequest successfully in SwiftUI? How does parameter trigger work?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
1 Replies
466 Views
Is there a programming example for CameraView?
Posted
by yvsong.
Last updated
.
Post not yet marked as solved
5 Replies
1.9k Views
Converting class Model: ObservableObject { @AppStorage("prop0") var prop0 = 0 } to @Observable struct Model { @AppStorage("prop0") var prop0 = 0 } created error: Property wrapper cannot be applied to a computed property How can properties of @Observable models be saved in user defaults?
Posted
by yvsong.
Last updated
.