Post

Replies

Boosts

Views

Activity

Cloudkit schema update - where are the best practices?
Hi all, I use CoreData with cloudkit. After deployed development in production, I could sync data between test device via TestFlight. I update a new entity in Coredata (table "Appareil"), what are the best practices to update cloudkit environnement because now, I have a lot of error when I test my app and sync is not available between devices. Thanx a lot for your help. UserInfo={NSLocalizedFailureReason=Request '896032F2-F210-4AAD-96CB-C4A31478F760' was aborted because the mirroring delegate never successfully initialized due to error: <CKError 0x281ba4360: "Partial Failure" (2/1011); "Failed to modify some records"; uuid = B71C0B7E-56EB-4FA7-9F06-E5D25DC447F4; container ID = "iCloud.fr.xxxx"; partial errors: {CD_FAKE_Appareil_99A4EBDA-F1F2-474B-9928-1F0685D244FA:(com.apple.coredata.cloudkit.zone:defaultOwner) = <CKError 0x281bbd9e0: "Invalid Arguments" (12/2006); server message = "Cannot create new type CD_Appareil in production schema"; op = 9BEAC4021C3657F9; uuid = B71C0B7E-56EB-4FA7-9F06-E5D25DC447F4>... 71 "Batch Request Failed" CKError's omited ...
1
0
982
Feb ’22
NSPersistentCloudKitContainer - notification
I would like to implement notifications about NSPersistentCloudKitContainer I find this classe but I receive no notifications in my app!?! Do I need more settings to use it? thanx for your help import Combine import CoreData @available(iOS 14.0, *) class SyncMonitor { /// Where we store Combine cancellables for publishers we're listening to, e.g. NSPersistentCloudKitContainer's notifications. fileprivate var disposables = Set<AnyCancellable>() init() { NotificationCenter.default.publisher(for: NSPersistentCloudKitContainer.eventChangedNotification) .sink(receiveValue: { notification in if let cloudEvent = notification.userInfo?[NSPersistentCloudKitContainer.eventNotificationUserInfoKey] as? NSPersistentCloudKitContainer.Event { // NSPersistentCloudKitContainer sends a notification when an event starts, and another when it // ends. If it has an endDate, it means the event finished. if cloudEvent.endDate == nil { print("Starting an event...") // You could check the type, but I'm trying to keep this brief. } else { switch cloudEvent.type { case .setup: print("Setup finished!") case .import: print("An import finished!") case .export: print("An export finished!") @unknown default: assertionFailure("NSPersistentCloudKitContainer added a new event type.") } if cloudEvent.succeeded { print("And it succeeded!") } else { print("But it failed!") } if let error = cloudEvent.error { print("Error: \(error.localizedDescription)") } } } }) .store(in: &disposables) } }
1
0
1.9k
Jun ’22
UIDevice.current.identifierForVendor what are the parameters that change it?
I saw that when I work on testFlight or AppStore, UIDevice.current.identifierForVendor are not the same. I changed my apple account (personnel account to company account) -&gt; it will change UIDevice.current.identifierForVendor now I need to change my computer, to migrate on MacMini M1, with a new certificate on Xcode : will it change all UIDevice.current.identifierForVendor ??? do you know all the parameters that change this value?
0
0
590
Jun ’21
Cloudkit - coredatat - duplicate row on tableview
I have switch my database with cloudkit function. I have two iPads : after few tests, the database was synchronize between the two devices. But after checking all data, in one view, there are duplicate rows, : with the same UUID !!! This error is not present in all views, just few ones...and I do only fetch for the moment, no create data in debug the fetch show duplicate values, why I do not understand this behavior because on my database before using two ipad, I had only one Record for a element not twice??? myarray = try moc.fetch(ReferencesRequest) same record present twice in the array after fetch
0
0
708
Jan ’22
datepicker with blank square instead of Date
Hi all, I do not understand why this datepicker display a blank square and not the real date on compact mode ... in debug, the datepicker is not null but with the good value (date) when I click on, the date is available... If I change the date, the display is fine after.... why in viewwillapear, the date picker show a blank square and note the real date???
0
0
1.1k
Aug ’22
swiftUI - textfield error expected argument CGRect
a simple code for a textfield in swiftUI @State private var wTitre:String = "xxx" TextField("Entrez votre texte ici", text:$wTitre) .textFieldStyle(RoundedBorderTextFieldStyle()) This code works on a projet, but in other one, I have this message, as if textfield waiting for a frame parameter ???? Cannot convert value of type 'String' to expected argument type 'CGRect a
0
0
672
Apr ’23
Cloudkit schema update - where are the best practices?
Hi all, I use CoreData with cloudkit. After deployed development in production, I could sync data between test device via TestFlight. I update a new entity in Coredata (table "Appareil"), what are the best practices to update cloudkit environnement because now, I have a lot of error when I test my app and sync is not available between devices. Thanx a lot for your help. UserInfo={NSLocalizedFailureReason=Request '896032F2-F210-4AAD-96CB-C4A31478F760' was aborted because the mirroring delegate never successfully initialized due to error: <CKError 0x281ba4360: "Partial Failure" (2/1011); "Failed to modify some records"; uuid = B71C0B7E-56EB-4FA7-9F06-E5D25DC447F4; container ID = "iCloud.fr.xxxx"; partial errors: {CD_FAKE_Appareil_99A4EBDA-F1F2-474B-9928-1F0685D244FA:(com.apple.coredata.cloudkit.zone:defaultOwner) = <CKError 0x281bbd9e0: "Invalid Arguments" (12/2006); server message = "Cannot create new type CD_Appareil in production schema"; op = 9BEAC4021C3657F9; uuid = B71C0B7E-56EB-4FA7-9F06-E5D25DC447F4>... 71 "Batch Request Failed" CKError's omited ...
Replies
1
Boosts
0
Views
982
Activity
Feb ’22
NSPersistentCloudKitContainer - notification
I would like to implement notifications about NSPersistentCloudKitContainer I find this classe but I receive no notifications in my app!?! Do I need more settings to use it? thanx for your help import Combine import CoreData @available(iOS 14.0, *) class SyncMonitor { /// Where we store Combine cancellables for publishers we're listening to, e.g. NSPersistentCloudKitContainer's notifications. fileprivate var disposables = Set<AnyCancellable>() init() { NotificationCenter.default.publisher(for: NSPersistentCloudKitContainer.eventChangedNotification) .sink(receiveValue: { notification in if let cloudEvent = notification.userInfo?[NSPersistentCloudKitContainer.eventNotificationUserInfoKey] as? NSPersistentCloudKitContainer.Event { // NSPersistentCloudKitContainer sends a notification when an event starts, and another when it // ends. If it has an endDate, it means the event finished. if cloudEvent.endDate == nil { print("Starting an event...") // You could check the type, but I'm trying to keep this brief. } else { switch cloudEvent.type { case .setup: print("Setup finished!") case .import: print("An import finished!") case .export: print("An export finished!") @unknown default: assertionFailure("NSPersistentCloudKitContainer added a new event type.") } if cloudEvent.succeeded { print("And it succeeded!") } else { print("But it failed!") } if let error = cloudEvent.error { print("Error: \(error.localizedDescription)") } } } }) .store(in: &disposables) } }
Replies
1
Boosts
0
Views
1.9k
Activity
Jun ’22
CollectionView cell swapping after longPressure
I create a new process for the drag n drop to swap Cell. it's working but I would like to create a background at the initial Cell after moving it, instead of blank cell. Thanx for your response
Replies
1
Boosts
0
Views
918
Activity
Dec ’22
Capabilities : Tap To pay
Hello, I can see this option in my certificate on the developer.apple.com platform. The entitlements file is updated with: com.apple.developer.proximity-reader.payment.acceptance code-block I’ve created a new profile for development and App Store, but in Release mode, my profile is not recognized… What configuration might be missing?
Replies
1
Boosts
0
Views
638
Activity
Dec ’24
UIDevice.current.identifierForVendor what are the parameters that change it?
I saw that when I work on testFlight or AppStore, UIDevice.current.identifierForVendor are not the same. I changed my apple account (personnel account to company account) -&gt; it will change UIDevice.current.identifierForVendor now I need to change my computer, to migrate on MacMini M1, with a new certificate on Xcode : will it change all UIDevice.current.identifierForVendor ??? do you know all the parameters that change this value?
Replies
0
Boosts
0
Views
590
Activity
Jun ’21
Cloudkit - coredatat - duplicate row on tableview
I have switch my database with cloudkit function. I have two iPads : after few tests, the database was synchronize between the two devices. But after checking all data, in one view, there are duplicate rows, : with the same UUID !!! This error is not present in all views, just few ones...and I do only fetch for the moment, no create data in debug the fetch show duplicate values, why I do not understand this behavior because on my database before using two ipad, I had only one Record for a element not twice??? myarray = try moc.fetch(ReferencesRequest) same record present twice in the array after fetch
Replies
0
Boosts
0
Views
708
Activity
Jan ’22
containerURL(forSecurityApplicationGroupIdentifier:)
A URL indicating the location of the group's shared directory in the file system. In iOS, the value is nil when the group identifier is invalid Could you tell me all the cases when URL is nil? it seems Some client could work without any problem but some return a nil URL
Replies
0
Boosts
0
Views
1.1k
Activity
Mar ’22
Best practice - 2 applications with specific bank account
Hi All, What is the best practice if I develop 2 applications on 2 differents bank account? Best regards,
Replies
0
Boosts
0
Views
874
Activity
Jun ’22
datepicker with blank square instead of Date
Hi all, I do not understand why this datepicker display a blank square and not the real date on compact mode ... in debug, the datepicker is not null but with the good value (date) when I click on, the date is available... If I change the date, the display is fine after.... why in viewwillapear, the date picker show a blank square and note the real date???
Replies
0
Boosts
0
Views
1.1k
Activity
Aug ’22
swiftUI - textfield error expected argument CGRect
a simple code for a textfield in swiftUI @State private var wTitre:String = "xxx" TextField("Entrez votre texte ici", text:$wTitre) .textFieldStyle(RoundedBorderTextFieldStyle()) This code works on a projet, but in other one, I have this message, as if textfield waiting for a frame parameter ???? Cannot convert value of type 'String' to expected argument type 'CGRect a
Replies
0
Boosts
0
Views
672
Activity
Apr ’23
create PDF/A-3 with XML
Hi all, I create PDF from my app, but I would like to know if it's possible to create PDF/A-3 with PDFKIT and integrate XML into ?
Replies
0
Boosts
0
Views
746
Activity
Jun ’23