Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Eror Domain
Hello. I am developing a chat app. when I .get data from the server I have to get this error. I have a check in postman its works perfect but not in code please tell me how to solve this issue Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.
0
0
375
Jun ’19
NSFileProviderExtension results in console errors and no breakpoints
Greetings! I'm trying to write a simple NSFileProviderExtension in Swift in a simple Single View iOS app with the new Xcode 9 / iOS 11 beta. I used the templates in Xcode to create a Single View universal iOS app in Swift, then added a new File Provider extension using the Xcode template in Swift. Everything builds and runs, but when I try to debug the File Provider extension against the Files app on my iPad Pro device connected to Xcode, I get these errors in the console when I switch to my file provider which shows up in the Locations list in Files:2017-06-10 13:45:02.755981-0700 Files[3040:585145] [default] [ERROR] received an error while enumerating changes: Error Domain=NSCocoaErrorDomain Code=3328 The requested operation couldn’t be completed because the feature is not supported.2017-06-10 13:45:02.756438-0700 Files[3040:585145] [UI] collection(_:didEncounterError:): collection <FPItemCollection:0x1c01b2980 id:NSFileProviderRootContainerItemIdentifier> did encounter error Error Domain=NSCocoaErrorDomain
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1.9k
Jun ’17
LaunchAgent can't connect to CloudKit daemon
For this code: let status = try await container.accountStatus() Seeing this error: 2025-05-08 15:32:00.945731-0500 localhost myAgent[2661]: (myDaemon.debug.dylib) [com.myDaemon.cli:networking] Error Domain=CKErrorDomain Code=6 Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and more. Check the logs around this time to investigate the cause of this error. UserInfo={NSLocalizedDescription=Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and more. Check the logs around this time to investigate the cause of this error., CKRetryAfter=5, CKErrorDescription=Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and mo
3
0
185
May ’25
PhotoKit request AddOnly authorization error:Domain=com.apple.photos.error Code=46104
What is Error Domain=com.apple.photos.error Code=46104 mean? This error appears when I try to create an album on iOS14. case: User first gives AddOnly authorization and then gives ReadWrite authorization. After I get the ReadWrite authorization, create an album. code reference: [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCollectionChangeRequest *request = [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:albumName] albumPlaceholder = [request placeholderForCreatedAssetCollection]; } completionHandler:^(BOOL success, NSError * _Nullable error) { // success is NO, error is Error Domain=com.apple.photos.error Code=46104 }]; The supplementary log information for the above question is as follows: 2020-08-17 11:28:19.470871+0800 XXXX[4255:1139139] CoreData: XPC: Unable to connect to server with options { NSXPCStoreServerEndpointFactory = ; skipModelCheck = 1;} 2020-08-17 11:28:19.479533+0800 XXXX[4255:1139139] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain
12
0
4.3k
Aug ’20
ApplicationMusicPlayer fails play in macCatalyst 26.3 due to RemotePlayerService crash
I've filed this as FB21446798 but figured I'd post here too. In the first build of macOS 26.3, playback via ApplicationMusicPlayer is completely broken. When starting playback of anything at all, the console shows the following error: applicationController: xpc service connection interrupted Failed to obtain remoteObject: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.} Failed to prepareToPlay with error: Error Domain=MPMusicPlayerControllerErrorDomain Code=10 (null) UserInfo={NSUnderlyingError=0xc92910ff0 {Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.}}} In addition, several crash logs for RemotePlayerServ
2
0
610
Dec ’25
Failed to get device token
When we are resigning the app though MDM and publishing it, then after installation this error is coming as it is failing to retrive device token and following error is giving. Though in app settings we can see there is permission for APNS.Error Domain=NSCocoaErrorDomain Code=3000 no valid 'aps-environment' entitlement string found for application UserInfo=0x17026a840 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}Have anyone faced such problem? Please provide a resolution.
0
0
981
Feb ’16
iMessage Not working in Testflight Build
Hello Team,In my current application iMessage is not working fine on Test Flight while it was working fine with AppCentre or hockey build.Please find the Console log for Testflight build whenever I am selecting my app in iMessage.[<private>(<private>)] Hub connection error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.xxxxxx.appname.iMessageExtension UserInfo={NSDebugDescription=connection to service on pid 0 named com.xxxxxx.appname.iMessageExtension}Can you please assist on this?Thanks,
1
0
419
Jan ’20
Safari Web Extension - runtime.sendNativeMessage() failed with error 4099
Hey, I am developing Safari Web Extension and trying to communicate with the swift handler (SafariWebExtensionHandler) using runtime.sendNativeMessage api (as describe here - https://developer.apple.com/documentation/safariservices/safari_web_extensions/messaging_between_the_app_and_javascript_in_a_safari_web_extension). I'm getting the following error when calling it - calling runtime.sendNativeMessage(): Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. I have no Idea what is missing and couldn't find any meaningful error message anywhere. I do have nativeMessaging permission in my manifest.json. Assist will be appreciated.
0
0
736
Feb ’24
ReplayKit problem
When I use ReplayKit to record screen , I got this:2015-08-27 15:08:52.182 RecordScreen[1118:17373] plugin com.apple.ReplayKit.RPVideoEditorExtension interrupted2015-08-27 15:08:52.182 RecordScreen[1118:17375] Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.ReplayKit.RPVideoEditorExtension UserInfo={NSDebugDescription=connection to service named com.apple.ReplayKit.RPVideoEditorExtension}why that's happened, and how can I fix it ?Thanks a lot~
4
0
2.4k
Aug ’15
ios17 container problem occur when I replace container in xcode
it can read the files before I replace container in xcode . Has anyone encountered the same problem? and any solution? Error: Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=( Folder ), NSFilePath=/var/mobile/Containers/Data/Application/97D816A0-8B58-4E33-8455-3F19E0A9FBAA/Documents, NSUnderlyingError=0x281e650b0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}
4
0
1.7k
Nov ’23
Problem with EKEventStore
HiAm having problems creating an EKEventStore to access the calendars.To simplify the problem I created an OS X project in swift 4 with one button on the view. In the View controller I have imported EventKit. There is an @IBAction, as shown below, linked to the button. The sandbox is on with access to calendar checked.@IBAction func testEK(_ sender: Any) { let eventStore = EKEventStore.init()}When the button is clicked the following appears in the debug console area2018-11-13 19:19:56.985235+0000 EKTest[6916:407014] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134070 An error occurred in the persistent store. UserInfo={Problem=request failed, insufficient permission}2018-11-13 19:19:56.985845+0000 EKTest[6916:407014] [error] error: -addPersistentStoreWithType:NSXPCStore configuration:(null) URL:file:///Users/jimgraham/Library/Calendars/Calendar%20Cache options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; NSPersistentHi
Topic: UI Frameworks SubTopic: AppKit Tags:
4
0
4k
Nov ’18
contentsOfURL Error
I get the following error when I try and run the app on my watch:Error Domain=NSCocoaErrorDomain Code=256 The file “GetPic.php” couldn’t be opened. UserInfo={NSURL=https://website.com/GetPic.php}The actual line of code is:let URL: String = try String(contentsOfURL: NSURL(string: https://website.com/GetPic.php)!)This works fine in xcode. I updated to xCode 7.1 and am running the latest watchos version. Any ideas how to fix this?Thanks
1
0
1k
Sep ’15
Failed to parse json data?
use JSONDecoder().decodeto parse data{aaa: value, bbb: 1}it generated error:Unexpected error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 No string key for value in object around character 1. UserInfo={NSDebugDescription=No string key for value in object around character 1.}))).why?
2
0
7.3k
Aug ’18
Read and write permission error in FilterDataProvider Network Extension class
Hi, in my Extension FilterDataProvider class that is inherited from NEFilterDataProvider i am trying to insert logs into my CoreData entity, but when i insert it gives me error NSCocoaErrorDomain: -513 reason: Unable to write to file opened Readonly Any suggestions please to update the read write permission i already have tried this way but no luck let description = NSPersistentStoreDescription(url: storeURL) description.shouldInferMappingModelAutomatically = true description.shouldMigrateStoreAutomatically = true description.setOption(false as NSNumber, forKey: NSReadOnlyPersistentStoreOption) ?
4
0
696
May ’24
Cannot load iTunesLibrary on macOS Sequoia 15.1
I use the iTunes Library framework in one of my apps, starting with macOS Sequoia 15.1 i can't create the ITLibrary object anymore with the following error: Connection to amplibraryd was interrupted. clientName:iTunesLibrary(ITLibraryLoader) Error connecting to the server via proxy object Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.amp.library.framework UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} configure failed: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.amp.library.framework UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} I created a new sandboxed macOS app, added the music folder read permission and it reproduced the error: import SwiftUI import iTunesLibrary @main struct ITLibraryLoaderApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { var body: some View { Button(Load ITLibrary) { loa
3
0
1k
Nov ’24