Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to An error occurring during Core Data persistent store migration in iOS 13
The same thing is happening to me, migrating at iOS 12 was right at real device and Simulator but at iOS 13 fail with the next log result:SQLite error code:1, 'duplicate column name: ZNAME_OF_THE_COLUMN .... Error Domain = NSCocoaErrorDomain Code = 134110 An error occurred during persistent storage migration.I check the xxxx.sqlite database file in the emulator path before and after the migration and there were no columns with those new same names. To know the route of the *.sqlite in the emulator you have to put a breakpoint and when it is stopped put in the console po NSHomeDirectory(). Then go to Finder window, tap the keys Control + Command + G and paste the route. Yo can handle it (for example) with DB Browser for SQLite program, it´s free.After a long search I have seen what has happened to some people but I have not seen any solution.Mine was:Select the actual *.xcdatamodel.Select Editor > Add Model Version.Provide a version name based on the previous model (like XxxxxxV2.xcdatamodel).Click
Mar ’20
Purge On-Demand Resources programmatically
I have a Swift app that includes On-Demand Resources, I haven't found any official solution to purge/remove ODR programmatically.But I found a workaround to purge the ODR pragmatically bylet request = NSBundleResourceRequest(tags: [resource.tag]) let dispatchGroup = DispatchGroup() dispatchGroup.enter() request.conditionallyBeginAccessingResources { [weak self] resourcesAvailable in defer { dispatchGroup.leave() } guard resourcesAvailable else { return } do { try self?.fileArchiveProvider.removeFile(at: resource.absoluteOriginURL.deleteLastPathComponents(components: 2)) } catch { print( (error)) } } dispatchGroup.wait() request.endAccessingResources()The code above works well with the simulator, but it doesn't work with real device. On real device, it throws exception: Error Domain=NSCocoaErrorDomain Code=513 “com.flashgordon.asset-pack-5d28ed3b881fb0e1f33c7f139b8ea675.assetpack” couldn’t be removed because you don’t have permission to access it. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/
1
0
1.8k
Mar ’20
CloudKit integration seeding, conflicted objects log
Hello,I have an issue in an app which is yet unreleased.The app uses Core Data, and I recently added CloudKit integration.Whenever I start the app data get automatically downloaded by CloudKit and I get this log: <NSCloudKitMirroringDelegate: 0x600001da61b0> - Never successfully initialized and cannot execute request '<NSCloudKitMirroringImportRequest: 0x6000024c88a0> D3FB21AB-94ED-40B7-859B-6CBEE6149473' due to error: Error Domain=NSCocoaErrorDomain Code=134404 (null) UserInfo={NSDetailedErrors=( Error Domain=NSCocoaErrorDomain Code=133021 (null) UserInfo={NSExceptionOmitCallstacks=true, conflictList=(n NSConstraintConflict (0x600003f40e00) for constraint (n namen): database: 0x8143748c0004e8e1 <x-coredata://272191BB-7D10-41DD-8E4B-56F4ECE4AB9F/Ingredient/p195>, conflictedObjects: (n 0x8143748c181ce8e1 <x-coredata://272191BB-7D10-41DD-8E4B-56F4ECE4AB9F/Ingredient/p1733>n),n NSConstraintConflict (0x600003f42fc0) for constraint (n namen): database: 0x8143748c029ce8e1 &
3
0
1.4k
Mar ’20
UIActivityViewController "Save to Files" action issue, while saving an image
Hi, all.We use UIActivityViewController save to file action to save images to file system. On the latest iOS version (13.3) some images could no be saved. SRT: - show UIActivityViewController in a regular way;- after tapping “Save to file“ on UIActivityViewController next message prints to console, while other action “Save Image“, etc. work fine.[assertion] Error acquiring assertion: <NSError: 0x281cc5650; domain: RBSAssertionErrorDomain; code: 2; reason: Specified target process does not exist>[com.apple.CloudDocsUI.AddToiCloudDrive(1.0)] Connection to plugin interrupted while in use.[ShareSheet] Cannot connect to view controller in com.apple.CloudDocsUI.AddToiCloudDrive - Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 483 named com.apple.CloudDocsUI.AddToiCloudDrive.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service on pid 483 named com.ap
0
0
1.8k
Mar ’20
Disfunctional Archivers
MacOS 10.15.3Has any progress been made on these new archivers to make them actually work for non-secure archiving? i'm still using the deprecated methods because the new NSKeyedUnarchiver using NO for secure coding doesn't work. This is in a core data managed object awakeFromFetch. I've put in a compiler switch to flip between these types of archived data blocks for testing. NSError *error; self.primitivePropsData = [NSKeyedArchiver archivedDataWithRootObject:[NSDictionary dictionaryWithDictionary:theProps] requiringSecureCoding:NO error:&error]; if(error != nil) NSLog(@%@, error.description); NSError *error; archivedDict = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSDictionary class] fromData:propsData error:&error]; if(error != nil) NSLog(@%@, error.description);It complains of getting an NSValue:2020-03-19 13:47:57.502593-0500 iQPresenter[16029:9943402] Error Domain=NSCocoaErrorDomain Code=4864 value for key 'NS.objects' was of unexpected class 'NSValue'. Allowed classes are '{( NSDicti
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
865
Mar ’20
Crash with my app in iOS 13.4 using SwiftUI
My app crashes with iOS 13.4 I tried everything but nothing happen.it works with ios 13.xx below ios 13.4this output for LLBD here is the llbd output:* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8) frame #0: 0x00007fff2fc5a2c0 AttributeGraph`AG::Graph::allocate_value(AG::Node&) + 42 frame #1: 0x00007fff2fc5261b AttributeGraph`AG::Graph::value_set(unsigned int, AGTypeID, void const*) + 133 frame #2: 0x00007fff2c5fe63f SwiftUI`closure #1 (__C.AGGraphRef) -> () in SwiftUI.(BridgedTableViewState in _BFB370BA5F1BADDC9D83021565761A49).commit(to: Swift.Optional<attributegraph.weakattribute<swiftui.(bridgedtableviewstate in= _bfb370ba5f1baddc9d83021565761a49)=>>, in: SwiftUI.ViewGraph) -> () + 31 frame #3: 0x00007fff2c534cec SwiftUI`SwiftUI.CustomGraphMutation.apply(to: __C.AGGraphRef) -> () + 12 frame #4: 0x00007fff2c534e4a SwiftUI`closure #1 () -> () in SwiftUI.(AsyncTransaction in _D63C4EB7F2B205694B6515509E76E98B).apply(in: __C.AGGraphRe
1
0
1.3k
Mar ’20
Reply to Assuming the SIM card is a JavaCard containing a custom applet, is it possible for an app on the phone to send APDU commands to the SIM?
Hello, With iOS13 SDK, CryptoTokenKit is now a Mac and iPhone technology. We can communicate with a smard card thanks to TKSmartCard. I would like to know if we absolutly need a smart card reader for iPhone or if the built-in SIM card reader can communicate with the SIM which is a smart Card?I tried to use the TKSmartCardSlotManager on iOS13 but I have an error message: SmartCard[3354:688268] [smartcard] ctk: connecting to slot registration server (<NSXPCConnection: 0x283c40bd0> connection to service on pid 0 named com.apple.ctkd.slot-client) failed, error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated.}
Topic: Privacy & Security SubTopic: General Tags:
Mar ’20
Crash with my app in iOS 13.4 using SwiftUI
My app crashes with iOS 13.4 I tried everything but nothing happen.it works with ios 13.xx below ios 13.4here is the console output :2020-03-20 13:14:48.207967+1100 UTG - Up To Game Pro[34539:1410138] FBSDKLog: Unable to find a valid UIWindow 2020-03-20 13:14:48.208020+1100 UTG - Up To Game Pro[34539:1412059] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.} 2020-03-20 13:14:48.210178+1100 UTG - Up To Game Pro[34539:1412077] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated
0
0
2.1k
Mar ’20
Reply to NSXPCConnection multiple instances.
Hi eskimo,I am trying to build this solution you suggested, but am a bit unclear as to what you mean by:That child ‘checks in’ with the main service.The child creates an anonymous XPC listener (+[NSXPCListener anonymousListener]), gets an endpoint for that listener (endpoint) and passes that endpoint to the service.Is this by letting the launched endpoint task connect to the broker task via NSXPCConnection(serviceName:)?It does not seem to be able to connect to the broker XPC service, I think because its a child task and doesn't have permission to talk to it? Because of this, I can't pass the endpoint back to the main application.Any idea what might be wrong?The error I am getting back in the endpoint task is:Received error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.xxx.yyy.broker was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.xxx.yyy.broker was invalidated.}The broker is running when this error occurs and the ma
Mar ’20
NSURLSession background upload completes with NSPOSIXErrorDomain Code=1 when data protection is set to completeUnlessOpen
Our app is using background NSURLSession to upload images. The app has data protection set to NSFileProtectionCompleteUnlessOpen.If the device is locked when an upload completes, the didCompleteWithError is executed with the following error(I've removed the NSErrorFailingURLStringKey and NSErrorFailingURLKey.):Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted UserInfo={_NSURLErrorRelatedURLSessionTaskErrorKey=( BackgroundUploadTask <4476D3BD-541B-4050-BFC6-0B8C6A174FE9>.<20>, LocalDownloadTask <4476D3BD-541B-4050-BFC6-0B8C6A174FE9>.<20> ), _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundUploadTask <4476D3BD-541B-4050-BFC6-0B8C6A174FE9>.<20>}.Although the reqeust finishes with the above error, the file is uploaded successfuly, the request's status code is 200 and the image is saved on the server side.We looked at the device console log and just before the didCompleteWithError is called we saw this line from nsurlsessiond (I've replaced the bundle id with <
6
0
1.7k
Apr ’20
Reply to first call evaluatePolicy fails after logon
I represent the issue only after the logout-login sequence during the first policy call. After restart or power on, there is no issue at all.The full error in my case is:error = Error Domain=com.apple.LocalAuthentication Code=-1000 UI activation timed out. UserInfo={NSLocalizedDescription=UI activation timed out.}Some logs:com.apple.LocalAuthentication default 20:04:32.912683+0300 touchIDDemo Creating LAContext new cid:1com.apple.LocalAuthentication default 20:04:32.912785+0300 touchIDDemo runningInSystemContext = 0com.apple.LocalAuthentication default 20:04:32.913090+0300 touchIDDemo runningInOsxRecovery = 0com.apple.LocalAuthentication default 20:04:32.921514+0300 coreauthd Context[11:3112] createdcom.apple.LocalAuthentication default 20:04:32.921539+0300 coreauthd ContextProxy[18:11] created for Context[11:3112] pid:2824 uid:501com.apple.LocalAuthentication default 20:04:32.921648+0300 touchIDDemo LAContext[2824:1] created new cid:1com.apple.LocalAuthentication default 20:04:32.921709+0300 touchIDDemo eval
Topic: Privacy & Security SubTopic: General Tags:
Apr ’20
Security scoped Bookmarks iOS - Swift
Hey, I am trying to save the url which I get from my didPickDocumentAt as a security scoped bookmarkThis is my code:Here just the declaration of the UIDocumentPickerViewControllerlet documentPicker = UIDocumentPickerViewController(documentTypes: [kUTTypePlainText as String], in: .open) documentPicker.delegate = self if #available(iOS 11.0, *) { documentPicker.allowsMultipleSelection = false } else { // Fallback on earlier versions } present(documentPicker, animated: true, completion: nil)Now didPickDocumentAt - there I am saving my bookmark data from my selected file on the smb server. Data.bookmarkAdmin is just the variable in which I store the bookmark.func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) { print(url) do { let shouldStoppAccessing = url.startAccessingSecurityScopedResource() defer { if shouldStoppAccessing { url.stopAccessingSecurityScopedResource() } } let bookmarkData: Foundation.Data = try url.bookmarkData() Data.bookmarkAdmin = bookmarkData print(
10
0
3.9k
Apr ’20
NSCloudKitMirroringExportRequest issues
I'm attempting to create a Swift/SwiftUI app that will run on iOS/iPadOS that uses CloudKit to syncronize data between devices. I have created the App in Xcode.In the Apps Signing & Capabilities tab, I have:- Ensured that the Bundle Identifier is valid- Added the iCloud capability - Created the Container and checked it - Validated that the Container was created in the CloudKit Dashbaord- Added the Backgrouind Modes capability - Checked the Remote notifications optionI have modified/validated AppDelegate.swift:- Validated that it is using NSPersistentCloudKitContainer- Added container.viewContext.automaticallyMergesChangesFromParent to true- Added container.viewContext.mergePolicy to NSMergeByPropertyObjectTrumpMergePolicyWhen I load the App, I get a series of errors reported related to CloudKit NSCloudKitMirroringExportRequest. These errors are shown below. I am able to create records, but can see they are only stored locally and do not get synced to the CloudKit Dashboard - interestingly enough, the sche
21
0
14k
Apr ’20
How to load an audio file in the Playground?
I want to load a local file in the playground. Started by adding it to the resources directory of navigator.To make sure I get the correct full path, I did a drag and drop to the source-code and got the complete string path.This doesn't seem to be the correct way of doing it. The error I got is:Playground execution terminated: An error was thrown and was not caught:Error Domain=NSCocoaErrorDomain Code=264 The file “click.wav” couldn’t be opened because the text encoding of its contents can’t be determined. UserInfo={NSFilePath=/foobar/click.wav}Here's the source:let url = URL(fileURLWithPath: /foobar/click.wav)Have in mind that for brevity used `foobar` in the file path.The library I'd like to pass the variable expects a `URL`!
1
0
580
May ’20
Reply to NSSecureUnarchiveFromData is now necessary for transformable attributes but does not work with Core Data CloudKit?
I agree that this seems to be a CloudKit-only bug.Take the Apple sample code at https://developer.apple.com/documentation/coredata/handling_different_data_types_in_core_dataModify as needed to use CloudKit and it breaks with this error:Fatal error: ###persistentContainer: Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=CloudKit integration requires that the value transformers for transformable attributes are available via +[NSValueTransformer valueTransformerForName:], return instances of NSData, and allow reverse transformation:Book: tintColor - Claims to return instances of UIColor}: file /Users/conrodi/Downloads/HandlingDifferentDataTypesInCoreData/CoreDataAttributes/AppDelegate.swift, line 22I've seen the same problem in other CloudKit projects. I think CloudKit is broken for Transformable Core Data attributes.
May ’20