Search results for

NSCocoaErrorDomain Error Code 4

170,024 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS Development: Create file failed(return domain:NSCocoaErrorDomain,code:512)
I'm also experiencing a similar issue. One user (out of thousands) is getting a 512 error – NSFileWriteUnknownError when the iOS app attempts to write a file to the caches directory or the documents directory.The user is on iOS 13.3, and logging the error shows Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. UserInfo={NSUserStringVariant=Folder}
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’20
Reply to Issues getting SwiftData to work with DocumentGroup
DocumentGroup is still broken for me even on the RC beta build. I see the following error: Failed to initialize CloudKit metadata: Error Domain=NSCocoaErrorDomain Code=134407 Request 'FB45661A-3619-4593-A7D1-2E164C9C2667' was cancelled because the store was removed from the coordinator. This doesn't appear on WindowGroup.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23
Reply to swiftUI apps with SwiftData and CloudKit crashes on iOS but works on MacOS
on MacOS 14.5, the app on Mac also crash with the same error Unresolved error loading container Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=Unable to find a configuration named 'default' in the specified managed object model.} I think there is something todo with MacOS 14.5 and iOS 17.5.....
Jun ’24
Reply to Keep app "alive" when going from Login to user context.
Hello! I crated the support incident and today as I was trying again and I realized my app was sandbox. After dealing with that this is what I have: let service = daemonConnection.remoteObjectProxyWithErrorHandler { err in print(Received error: (err.localizedDescription)) } as? MyServiceProtocol which prints: Received error: Couldn’t communicate with a helper application. or Received error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.serviceName UserInfo={NSDebugDescription=connection to service named com.serviceName }
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’22
Reply to Error Domain=NSCocoaErrorDomain Code=518 "The file couldn’t be saved because the specified URL type isn’t supported."
Your issue is that URL(string:) expects a valid URL with a scheme (like file://), but you're passing a file path directly. It is similar to the following error:ErrorDomain = NsCocoaErrorDomain & ErrorCode = 4 Instead, you should use URL(fileURLWithPath:) for file paths. Here's the fixed code: var tempString = String() for Rezept in alleRezepte { tempString += (Rezept.name), (Rezept.description), (Rezept.nutrients), (Rezept.whatToDo)n } if let dirs = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first { let path = dirs.appending(/rezepte.csv) let url = URL(fileURLWithPath: path) do { try tempString.write(to: url, atomically: true, encoding: .utf8) print(Daten gesichert) } catch { print(Error saving file: (error)) } }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’24
Reply to Got a serious NSURLSession background session bug
I'm seeing the same issue with my app. When I restart downloading of a content that previously failed, it sometimes fails with Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory UserInfo={NSErrorFailingURLKey=xxx, NSErrorFailingURLStringKey=xxx}. It will sometimes recover after trying several times. Sometimes I had to reinstall the app to recover from this issue. I see an other error in console that could be related to this issue.Error removing item at url:file:///private/var/mobile/Containers/Data/Application/E58771BB-D7DE-5B6E-547FE8B44E25/Library/Caches/com.apple.nsurlsessiond/Downloads/XXXX/,error:Error Domain=NSCocoaErrorDomain code=4 couldn't be removed.UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/E58771BB-D7DE-5B6E-547FE8B44E2/Library/Caches/com.apple.nsurlsessiond/Downloads/XXX,NSUserStringVariant=(Remove), NSUnderlyingError=0X153e32f90{Error Domain=NSPOSIXErrorDomain code=2 No such file or di
Nov ’17
Reply to Error Domain=NSCocoaErrorDomain Code=4099
The issue exists in Xcode 13.4, iOS 15.5. App crashes after launch with following error SecTaskLoadEntitlements failed error=22 cs_flags=20000200, pid=10574 SecTaskCopyDebugDescription: ProjectName . . . [Client] 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.} [Client] Synchronous remote object proxy returned error: 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.coretel
May ’22
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 issue Xcode 13.3.1, IOS 15.3 [8086:326074] [Client] 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.}
May ’22
Compile errors after conversion to Swift 4
I followed the instructions for converting some existing code to Swift 4. I chose the Match Swift 3 Behavior option because the code I am trying to convert is not my code, and I didn't want to have to try to fix anything manually.In spite of this, there were more than a dozen compiler errors after the conversion process ran.Did I do something wrong, or is this just normal?
5
0
1.3k
Jan ’18
Reply to PHPicker fails to load RAW images
I'm also seeing a similar behavior when trying to load the file representation using public.item UTI for Live Photos that were just taken or were selected and probably downloaded from icloud. If I try again the same images on a second or third time they seem to be loading just fine. If I use public.image it works just fine, note that it is on iOS 17 public beta. Exception: Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type public.item UserInfo={NSLocalizedDescription=Cannot load representation of type public.item, NSUnderlyingError=0x281b031e0 {Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x281a32bb0 {Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 1217 on anonymousListener or serviceListener UserInfo={NSDebugDescription=connection from pid 1217 on anonymousListener or serviceListener}}}}}
Sep ’23
Reply to UICloudSharingController won't allow entering the sharing recipient information
When the UICloudSharingController crashes it gives error: 2020-08-31 22:33:46.303978-0500 rpxg[3789:1613179] [CK] Got a connection error for operation 49B9977581013179: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.cloudd UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.cloudd}
Sep ’20