Posts

Post not yet marked as solved
2 Replies
776 Views
Since updating from Xcode 14 to Xcode 15, I've had to manually select all the changed files. Is there a preference setting or a way to automate this process, like before? I need to manually click on 'Stage Change' next to the 'M' in the 'Changes' view. Thank you very much for your heeeeelp!
Posted
by docgg.
Last updated
.
Post not yet marked as solved
0 Replies
437 Views
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 ?
Posted
by docgg.
Last updated
.
Post not yet marked as solved
0 Replies
386 Views
a simple code for a textfield in swiftUI @State private var wTitre:String = "***" 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
Posted
by docgg.
Last updated
.
Post not yet marked as solved
1 Replies
582 Views
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
Posted
by docgg.
Last updated
.
Post not yet marked as solved
4 Replies
2.9k Views
Since I update Xcode (13 -> 14) and install iOs 16 on iPhone, I have this fatal error when I try to launch VNDocumentCameraViewController I do not understand why and where the error is? before the update, the scanner worked and I haven't got this message NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]' let scannerViewController = VNDocumentCameraViewController() scannerViewController.delegate = self present(scannerViewController, animated: true) code-block
Posted
by docgg.
Last updated
.
Post not yet marked as solved
3 Replies
1.2k Views
With iOS 16, I have a fatal error when I launch VNDocumentCameraViewController let myScanViewController = VNDocumentCameraViewController() myScanViewController.delegate = self self.present(myScanViewController, animated: false) On my project, this function worked file with older operating system (like iOS 14, iOS 15) info.plist --> NSCameraUsageDescription is present with description Before the camera view appear, I'v got a fatal error and I do not know where to check or add a breakpoint to know where it try to add a nil object Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: [__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
Posted
by docgg.
Last updated
.
Post not yet marked as solved
0 Replies
782 Views
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???
Posted
by docgg.
Last updated
.
Post not yet marked as solved
2 Replies
1k Views
Last year, I changed my iMac i7 (2015) to a new Mac mini M1 with SD disk. I saw the difference, it was incredible fast...but now after one year of working on my project, I get freeze screen and automatic reboot I have 16Go RAM...and often more than 10Go for xcode ! I work with storyboard and I have more than 100 VC. Do I need to change parameter on Xcode to optimize or I must have now min 32 RAM. What is the best requirement for important project?
Posted
by docgg.
Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
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) } }
Posted
by docgg.
Last updated
.
Post not yet marked as solved
4 Replies
1.1k Views
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.
Posted
by docgg.
Last updated
.
Post not yet marked as solved
1 Replies
1.8k Views
I update my iPhone and iPad on iOS 15.4....and need to update Xcode in 13.3....but on APPStore when I upload it, at the end, nothing happen just stay in loop ! know how to fix it?
Posted
by docgg.
Last updated
.
Post not yet marked as solved
0 Replies
879 Views
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
Posted
by docgg.
Last updated
.
Post not yet marked as solved
0 Replies
742 Views
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 ...
Posted
by docgg.
Last updated
.
Post not yet marked as solved
1 Replies
815 Views
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????
Posted
by docgg.
Last updated
.