Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to No document can be created in Swift
Hi,when I add @obj(Document) in NSDocument Class definition, I get the following execution error message2015-11-25 12:17:41.169 Lesson 20 Grades[11222:4817041] The com.mycompany.Lesson_20_Grades type doesn't map to any NSDocumentClass.2015-11-25 12:17:41.170 Lesson 20 Grades[11222:4817041] -[NSDocumentController openUntitledDocumentOfType:andDisplay:error:] failed during state restoration. Here's the error:Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’15
Reply to Issue with CXSetTranslatingCallAction – "Couldn't communicate with a helper application" error
Hi Kevin Elliott, Here I'm adding the exact error message that I have got while requesting callkit transaction (Error?) domain: NSCocoaErrorDomain - code: 4097 { _userInfo = 0x000000012782a220 1 key/value pair { [0] = { key = 0x00000001f9af9c30 NSDebugDescription value = 0x0000000114f76d80 connection to service with pid 144 named com.apple.callkit.callcontrollerhost } } } And error's description is Couldn't communicate with a helper application. Please check and let us know if any further information needed. Thanks & Regards, Kishore
Topic: App & System Services SubTopic: General Tags:
Jul ’25
Reply to File transfer issue from iPhone to Watch after iOS 17.5 & WatchOS 10.5 update
Also having the very same problem here with my app: -[WCFileStorage persistOutgoingFileTransfer:] error serializing file transfer , transferring: YES> due to Error Domain=NSCocoaErrorDomain Code=4866 Caught exception during archival: This object may only be encoded by an NSXPCCoder. The file arrives at the phone but the didFinishFileTransfer on watch's delegate never gets called. Because of this, the files are kept in queue and keep being synced to phone app repeatedly consuming watch battery. Also happens on simulator. iOS 17.5.1 watchOS 10.5.
Topic: App & System Services SubTopic: General Tags:
Jul ’24
Reply to In PHPhotoLibrary is there a list of known errors for method performChanges?
ALAssetsLibrary returns various kind of errors which defined in ALAssetsLibrary.h.But PHPhotoLibrary doesn't return detailed errors.As you say, it just return general error as ErrorDomain=NSCocoaErrorDomain, ErrorCode=-1.I asked same kind of question to Apple TSI(Technical Support Incident) before.From their answer, at least PHPhotoLibrary doesn't return DiskSpaceError (ALAssetsLibraryWriteDiskSpaceError in case of ALAssetsLibrary)and WriteBusyError (ALAssetsLibraryWriteBusyError in case of ALAssetsLibrary)It just returns nereral error.
Aug ’16
Reply to SharePlay Developer Profile not working?
I'm trying with iOS beta 7 and the updated SharePlay Developer Profile and I'm getting the following error: Error preparing group activity: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction.} The call to prepareForActivation() is returning .cancelled without any prompt on the device.
Topic: App & System Services SubTopic: General Tags:
Aug ’21
Reply to PKProduct Errors when delivering properly signed & validated package via MDM
posting the follow up... The error here is what I also interpreted as the error, but the actual error is up higher in the stack when streaming appstored logs. 2023-01-27 05:30:43.875108-0800 0x6092b Error 0x0 1252 0 appstored: [com.apple.appstored:AppInstall] [MNF16FC110D/16FC110D-D057-42B7-9F7B-6A283991A2D0] Could not create PKProduct: Error Domain=NSCocoaErrorDomain Code=4 The file Distribution doesn't exist. UserInfo={NSFilePath=Distribution} I switched the package from component to distribution and it solved my issue.
Feb ’23
Reply to FailedToAnalyzeBuiltTargetDescription: Could not analyze the built target description for Views to create the preview.
I am experiencing the same issue on Xcode 16.1 (16B40), when merged binary is enabled, erroring (redacted my library name with <>): | ================================== | | | CouldNotParseInput | | | | ================================== | | | | | FailedParsingMachObjectFile | | | | | | MachO data could not be parsed for: <> | | | Reason: Underlying failure reading data | | | Data header bytes: [] | | | Data header ASCII: | | | | | | ================================== | | | | | | | NSError.NSCocoaErrorDomain.260: The file “<>” couldn’t be opened because there is no such file. | | | | | | | | NSCocoaErrorDomain (260): | | | | ==NSURL: <> -- file:/// | | | | ==NSFilePath: /<> | | | | | | | | ================================== | | | | | | | | | NSError | | | | | | | | | | NSError: Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory
Nov ’24
Reply to macOS beta 2 -SwiftTranscriptionSampleApp not work
I tried again your sample app with Xcode beta 2 + macOS beta 2 whiteout success. When start record, in console I see this message (note: I'm italian, so I forced language in it_IT): loadRawPromptTemplateFromModelCatalog failed with Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction.}
Jun ’25
Reply to Photos app crashes on launch in Catalina
I get the same error message on my macbook for my libraryError Domain=PHPhotosErrorDomain Code=4302 PHPhotosErrorInvalidState UserInfo={NSLocalizedDescription=PHPhotosErrorInvalidState, currentState=error, NSUnderlyingError=0x600001b2d4a0 {Error Domain=com.apple.photos.error Code=43002 (null) UserInfo={currentState=error, NSUnderlyingError=0x600001b2d530 {Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 537 named com.apple.Photos.Migration UserInfo={NSDebugDescription=connection to service on pid 537 named com.apple.Photos.Migration}}}}}And I'm completely unable to open my photo library at the moment
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’19
Reply to Authorizing Apple Pay via non-Safari browser fails to decode merchant session.
I'm experiencing the same problem in Firefox 134.0 (aarch64) on macOS 14.6.1 (Apple M1). Console 1.1, shows these messages when connected to my iPhone 14 running iOS 18.1.1: error 14:43:31.069080+0000 PassbookUIService Codable: Failed to decode Merchant Session Created: Error Domain=NSCocoaErrorDomain Code=4864 UserInfo={NSCodingPath=, NSDebugDescription=} error 14:43:31.069103+0000 PassbookUIService Session 12311: Fatal Error: Failed to decode merchant session created
Topic: Safari & Web SubTopic: General Tags:
Jan ’25
Reply to Retrieving Logs from a Customer's Device
With iOS 14 beta 4, the error message has changed from Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.OSLogService was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.OSLogService was invalidated.} to Caught error: Error Domain=OSLogErrorDomain Code=9 Client lacks entitlement to perform operation UserInfo={NSLocalizedDescription=Client lacks entitlement to perform operation, _OSLogErrorInternalCode=14} It doesn't appear that my Feedback (FB7868256) has been looked at, but, is this being fixed?
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’20
Reply to App freezes due to CoreTelephony.xpc
Im getting similar error while using CoreTelephony on unwantedCommunication Extension.I have linked CoreTelephony as linked library and this is my troublesome code.. let networkInfo = CTTelephonyNetworkInfo() let carrier = networkInfo.subscriberCellularProvider print(carrier);and my error log is: 2018-08-08 14:24:55.100318-0400 ReportSpam1Extension[4192:295308] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}Please help.
Aug ’18
Reply to Family Controls application-identifier Entitlement error while blocking an application
Hi, Any update on the above issue? I am also trying to block application in the same way but I am getting different error, Attempts remaining: 1 Failed to fetch effective value for com.apple.ManagedSettings.effective-media-settings.changed: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.ManagedSettingsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.}``` could you please guide me if I'm missing something?
Topic: Business & Education SubTopic: General Tags:
Sep ’21
Reply to ErrorType and userInfo dictionaries
How about adding a function to ErrorType enum that would construct an NSError with an underlying error?enum DocumentError: ErrorType { case CantSave func withUnderlying(error: ErrorType?) -> NSError { guard let error = error else { return self as NSError } let info = [NSUnderlyingErrorKey: error as NSError] return NSError(domain: _domain, code: _code, userInfo: info) } } let cocoaError = NSError(domain: NSCocoaErrorDomain, code: NSFileWriteFileExistsError, userInfo: nil) let error = DocumentError.CantSave.withUnderlying(cocoaError)
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’15
Reply to Error Domain=NSCocoaErrorDomain Code=4099
same for me using google maps foe iOS. maybe a google issue, Burt for sure apple does not help finding what. Google Maps SDK for iOS version: 8.4.0.0 Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
Aug ’24