Post

Replies

Boosts

Views

Activity

local Core data and evolution in a distributed system
I develop a app with core data, to create invoices for individual use. I use Int64 ID (with increment) as primary key Today, I would like to expand possibility with the same database on several iPads... BUT I can't stay with Int64 ID because first iPad create index n°1 and second iPad create invoice n°1 too ! What is the best practice to change for a distributed system : create a new id with uuid string? thanx a lot
3
0
731
Jun ’21
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) -> 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
Collection view, cell size, image size
What is the best practice to have UIimage into cell that set the same width and same height on CollectionView cell size -> 200*200 Estimate size -> None On cell Uimage on cell leading, trailing,bottom,top ---> to cell even if I force the height and width, image do not set the same size of the cell the height is different???? I try with the delegate UICollectionViewDelegateFlowLayout to force size to 200*200 but no effect of UIimage inside What can I do to have the same size on Uiimage into cell ?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
722
Jul ’21
Coredata and CloudKit not synchronized
1/ Signing & capabilities background mode - > remote notification cloud -> cloudkit @ container created 2/ coredata ->used with cloudkit & all attributes are optionals 3/ appDelegate NSPersistentCloudKitContainer viewContext.automaticallyMergesChangesFromParent = true AND it's not working on my two devices (iPhone & iPad) under iOs 15.0.2 What did I forget?
2
0
866
Oct ’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
iPad App existing, now want to add MacOs App
Hi All, I have an application for iPad and iPhone, and now I would you to extend it with macOs Environnement. What is the best practice to use my iOS app on MacOs? I change my project with I can Run the App on my MacMini with Xcode but when I archive my project on TestFlight, there is a message that tell me that is not available for macOS only iOS !!! How could I archive with MacOs???
5
0
1.1k
Jan ’22
CoreData CloudKit Sync not working between iOs and MacOS
Hi All, I work on a cross platform app, iOS/macOS. All devises on iOS could synchronize data from Coredata : I create a client, I see him an all iOS devices. But when I test on macOs (with TestFlight) the Mac app could not get any information from iOs devices. On Mac, cloud drive is working because I could download and upload documents and share it between all devices, so the account is working but with my App on MacOS, there is no synchronisation. idea????
2
0
1.2k
Sep ’25
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
My app folder document not appear in Files (iPad)
Hi All, Why on Files I do not see my App Folder? I check on debug and all my files exists in the document folder but on my iPad, I do not see my folder in Files? thanx a lot
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’21
local Core data and evolution in a distributed system
I develop a app with core data, to create invoices for individual use. I use Int64 ID (with increment) as primary key Today, I would like to expand possibility with the same database on several iPads... BUT I can't stay with Int64 ID because first iPad create index n°1 and second iPad create invoice n°1 too ! What is the best practice to change for a distributed system : create a new id with uuid string? thanx a lot
Replies
3
Boosts
0
Views
731
Activity
Jun ’21
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
tableview with multiple selection but without delete button
is there any way to hide "-" and keep only selection? When I switch the tableview in mode isediting and allowsMultipleSelection, there is a delete button instead of selection choice
Replies
3
Boosts
0
Views
1.3k
Activity
Jul ’21
Collection view, cell size, image size
What is the best practice to have UIimage into cell that set the same width and same height on CollectionView cell size -&gt; 200*200 Estimate size -&gt; None On cell Uimage on cell leading, trailing,bottom,top ---&gt; to cell even if I force the height and width, image do not set the same size of the cell the height is different???? I try with the delegate UICollectionViewDelegateFlowLayout to force size to 200*200 but no effect of UIimage inside What can I do to have the same size on Uiimage into cell ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
722
Activity
Jul ’21
Coredata and CloudKit not synchronized
1/ Signing & capabilities background mode - > remote notification cloud -> cloudkit @ container created 2/ coredata ->used with cloudkit & all attributes are optionals 3/ appDelegate NSPersistentCloudKitContainer viewContext.automaticallyMergesChangesFromParent = true AND it's not working on my two devices (iPhone & iPad) under iOs 15.0.2 What did I forget?
Replies
2
Boosts
0
Views
866
Activity
Oct ’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
iPad App existing, now want to add MacOs App
Hi All, I have an application for iPad and iPhone, and now I would you to extend it with macOs Environnement. What is the best practice to use my iOS app on MacOs? I change my project with I can Run the App on my MacMini with Xcode but when I archive my project on TestFlight, there is a message that tell me that is not available for macOS only iOS !!! How could I archive with MacOs???
Replies
5
Boosts
0
Views
1.1k
Activity
Jan ’22
CoreData CloudKit Sync not working between iOs and MacOS
Hi All, I work on a cross platform app, iOS/macOS. All devises on iOS could synchronize data from Coredata : I create a client, I see him an all iOS devices. But when I test on macOs (with TestFlight) the Mac app could not get any information from iOs devices. On Mac, cloud drive is working because I could download and upload documents and share it between all devices, so the account is working but with my App on MacOS, there is no synchronisation. idea????
Replies
2
Boosts
0
Views
1.2k
Activity
Sep ’25
Cloudkit sync only on opening App
Hi all, I implement NSPersistentCloudKitContainer in AppDelegate, all settings (push notification, background mode, icloud, container etc...) With two devices (iPad), the synchronisation works well but ONLY when I open App.... I do not understand why...I missed a setting somewhere????
Replies
1
Boosts
0
Views
1.1k
Activity
Feb ’22
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
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
csv file with Unicode character like \U0082
Hi All, How to transform or decode file with unicode? In debug, I see the text like this "r\U0082duc." , and I need to show text with accent --> réduc.
Replies
4
Boosts
0
Views
1.5k
Activity
Jun ’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