Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

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
23k
Feb ’17
Encountering Error Domain=NSCocoaErrorDomain Code=513 while creating hard link between files on MacOS(Mac Catalyst App)
Hi, I am trying to create a hard link on MacOS(Mac Catalyst App) between files using [self linkItemAtURL:fromURL toURL:toURL error:&error]; Source Path for MacOS - /var/folders/lf/dt_4nxd945jdry2241phx0_40000gn/T/net.appname.AppName/documents/... Destination Path for MacOS - /Users/username/Library/Group Containers/group.net.appname.AppName.shared/Message/Media/... Although the same code works fine on iOS, but getting following error on MacOS Error Domain=NSCocoaErrorDomain Code=513 couldn’t be linked because you don’t have permission to access, Operation not permitted Source Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Data/Application/B4AB7D70-491C-49E5-9A3F-27E66EC3423D/tmp/documents/... Destination Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Shared/AppGroup/842B248E-CCA6-4B5C-82BD-2858EADD3A90/Message/Media/... However, interestingly if I try t
5
0
1.8k
Oct ’22
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 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 Code=4099 The connection to service named com.apple.commcenter.coretelephony
Jan ’24
Reply to Xcode 10 breaks com.apple.commcenter.coretelephony.xpc
Same here. Launch Screen, then crash. Happens on simulator & device debugging. The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated....[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 The connection to service na
Sep ’18
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 The connection to service named com.apple.commcenter.co
Sep ’18
Reply to Xcode 10 breaks com.apple.commcenter.coretelephony.xpc
Same here. found an issue on github. might be relevant.https://github.com/arnesson/cordova-plugin-firebase/pull/8808 libdispatch.dylib 0x000000010684d5d1 _dispatch_call2018-10-02 20:08:43.858144+0800 BunkerNode[28528:8778202] 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.}2018-10-02 20:08:43.858302+0800 BunkerNode[28528:8778204] Failed to ping server after delegate was set2018-10-02 20:08:43.858323+0800 BunkerNode[28528:8777987] Failed to create synchronous 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.}2018-10-02 20:08:43.858452+0800 Bunker
Oct ’18
Reply to Using SecureCoding for NSKeyedArchiver
Many thanks, that works well.I just get an error message :Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}It is a bit a shame that XCode documentation is so poor.At least, when an API is deprecated, it would be great to have some detail on how to migrate to the new one. But document is getting worse and worse, now a mere reference for API signatures, less and less a man pages.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’19
XCode StoreKit helper application failure - Purchase Fails with NSCocoaErrorDomain Code=4099 and ASDErrorDomain Code=5115
XCode version = 26 && macOS version = 26 Running the app from XCode (not in release mode) I want to implement in app purchases for my macOS application, for that i want to first test it locally through StoreKit config file. Steps i have done uptill now: Added the capability in target-> Signing & Capabilities -> In_App Purchase(while adding this i had got the popup: Make changes to In-App Purchase by changing all configurations - i have no idea about it, Researched on it - didnt got something) Added the storekit config file -> added Group for autorenewable subscription -> reference name & product ID (i have used same Bundle ID and product ID, also i have used different both but still the same issue in both case) - also added it to scheme Added the storeManager implementation that is: import StoreKit class IAPManager { // Shared instance (optional singleton pattern) static let shared = IAPManager() private init() { } // Array to store fetched products var products: [Product] = [] //
0
0
53
Nov ’25