Search results for

NSCocoaErrorDomain Error Code 4

170,018 results found

Post

Replies

Boosts

Views

Activity

Changing my entities in CoreData gave me a NSCocoaErrorDomain Code=134140 and I can't go back
Updated info below, in bold. I went and changed one of the entities in the CoreData of my app. For all my entities I have them selected as Manual for Codegen So I deleted all four files (for two entities), cleaned the build folder, regenerated the CoreData files with Editor -> Create NSManagedObject Subclass. Now every time I run the app I get a fatalError in the following code in the AppDelegate: lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: “Invoice_Gen) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { fatalError(Unresolved error (error), (error.userInfo)) } }) return container }() The error code being [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134140) Even if I remove the files for the CoreData entities,
1
0
1.6k
Jun ’22
Error Domain=NSCocoaErrorDomain Code=518 "The file couldn’t be saved because the specified URL type isn’t supported."
Hello, I'm trying to save some Strings in a csv document: var tempString = String() for Rezept in alleRezepte { tempString += (Rezept.name), (Rezept.description), (Rezept.nutrients), (Rezept.whatToDo)n } let dirs = (NSSearchPathForDirectoriesInDomains(.documentDirectory, .allDomainsMask, true) as? [String]) let path = dirs?[0].appending(rezepte.csv) let url = URL(string: path!) do { try tempString.write(to: url!, atomically: true, encoding: String.Encoding.utf8) } catch { print(error) } print(Daten gesichert)And I get this error:CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no schemeError Domain=NSCocoaErrorDomain Code=518 The file couldn’t be saved because the specified URL type isn’t supported.How can I fix this?Thank you for helping.
9
0
22k
Feb ’17
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
NSCocoaErrorDomain when trying to run
I have been struggling with this error. My build succeeds but won't run. I've tried every suggestion I've ready in every article I could find and nothing has worked. This happens if I run it on the simulator or device. Any tips? ============================== The file “APP NAME” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/Me/Library/Developer/Xcode/DerivedData/Main-ekzzcailcbrpykazzxdtbnpsjuhr/Build/Products/Debug-iphoneos/APP NAME.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied
1
0
1.2k
Feb ’21
SKErrorDomain Code=4?
I have a user who recently switched iPhones and is trying to restore an in app purchase but is getting the error message Error Domain=SKErrorDomain Code =4 Cannot connect to iTunes Store. Does anyone know what code 4 means? I can find a lot of info on code 0 but not 4. The user is a normal consumer (not beta tester etc) with an iPhone 6S on iOS 10.1.1 and has a 4G connection when trying to restore and using the same Apple-ID on the phone as when making the initial purchase.Any idéeas, suggestions?Best regards,Frederik
2
0
5k
Nov ’16
Safari causes VideoJS ERROR MEDIA CODE:4
Hello, when I'm trying to record a video in Safari for Mac and the record ends, Safari doesn't load the video and I get this: VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media I'm using VueJS in the Frontend and Django in the backend. And I can only record in Safari with video/mp4;codecs=avc1. Safari will not allow any other type for the record or the access to the camera or microphone. In Chrome or firefox it records with video/webm;codecs=vp8,opus and can find the source of it and the recorded video plays without issue. I'm using a MacBook Pro M1-Chip and the Safari Version is 16.6 on Mac. Thank you for your help and have a great day.
0
0
1.4k
Sep ’23
Domain=NSCocoaErrorDomain Code=134092 “(null)” when try to add new contact to contact store.
Hello everybody. I am trying to save a new contact in the contact book. But I get an error in the catch block: Domain=NSCocoaErrorDomain Code=134092 “(null)”. This error only appears on Mac 13.1 Ventura. Everything works fine on iOS and MacOS 14.2.1 Sonoma. What could be the problem? func save(_ cnContact: CNMutableContact, identifier: String? = nil) throws { let saveRequest = CNSaveRequest() saveRequest.add(cnContact, toContainerWithIdentifier: identifier) do { try CNContactStore().execute(saveRequest) } catch { print(error) } }
0
0
376
Jan ’24
Reply to Error Domain=NSCocoaErrorDomain Code=4099
UPDATE: I think it has something to do with the simulator used. Do not exactly know what the issue is but I am not getting the log errors when running the app in a physical device. I am facing similar issue with same error codes. Did you manage to solve it by any chance? I have not even used firebaseMessaging API, so not sure why I am getting errors related to that. I am using XCode Version 15.1 (15C65). The OS is Sonoma 14.0. If it helps, the following is my errors: 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.} Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain
Jan ’24
FBSSceneSnapshotErrorDomain Code=4
[Common] Error response from snapshot request action of type 1 gave Error Domain=FBSSceneSnapshotErrorDomain Code=4 an error occurred during a scene snapshotting operation UserInfo={NSLocalizedDescription=an error occurred during a scene snapshotting operation, NSLocalizedFailureReason=an unrelated condition or state was not satisfied}
6
0
6.1k
Oct ’21
PluginKit Code 4 error and fail to launch notification service extension
I've got an app which has a notification service extension (and has had so for a few years). I noticed that the pushes were getting delivered directly to the user for a handset, and in the log could see a SpringBoard error saying Error Domain=PluginKit Code=4 RBSLanchRequest error trying to launch plugin Error Domain=RBSRequestErrorDomain Code=5 Launch failed ErrorDomain=NSPOSIXErrorDomain Code=111 Unknown error:111 I rebooted the phone and it started working as expected. But it's worrisome this happened, and it's not the first time I've seen it either. Observed with iOS 17.3.1
1
0
800
Mar ’24
Reply to checkResourceIsReachableAndReturnError or fileExistsAtPath for security scoped resources
Thanks, I'll check explicitly for the combination of NSCocoaErrorDomain and NSFileReadNoSuchFileError then. For anyone ending up in this thread, note that NSFileNoSuchFileError is not the same error as what's being reported by checkResourceIsReachableAndReturnError. The error is: Domain=NSCocoaErrorDomain Code=260 The file “write-single-file.txt” couldn’t be opened because there is no such file. UserInfo={NSURL=file:///Users/torarne/write-single-file.txt, NSFilePath=/Users/torarne/write-single-file.txt, NSUnderlyingError=0xa83590c90 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’25
Reply to App freezes due to CoreTelephony.xpc
Anyone find another solution to this? I am getting the same errors while debugging on simulator and device. Launch Screen appears, then crash. ...[9889:471589] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=9889 ...[9889:471589] SecTaskCopyDebugDescription: iOSSlidingPuzzle[9889]/0#-1 LF=0 ...[9889:471589] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform. ...[9889:471589] [logging] misuse at line 153876 of [95fbac39ba] ...[9889:477148] Failed to create remote object proxy: 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.} ...[9889:477147] Failed to ping server after delegate was set ...[9889:471589] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 T
Sep ’18