Search results for

NSCocoaErrorDomain Error Code 4

170,013 results found

Post

Replies

Boosts

Views

Activity

NSCocoaErrorDomain Code=134092 When Updating ContactsError, and Error "Attempt to read notes by an unentitled app" while I am not request for notes
Hi, I'm writing a command line program with Swift Package Manager that uses Contacts API to automatically add phonetic names for the contacts. However, I found I was unable to do so for contacts that has notes. First, when I was trying to enumerate the contacts, there is a strange error output: 2023-01-22 18:58:36.085525+0800 PhoneticNames[18591:98356] [core] Attempted to register account monitor for types client is not authorized to access: {( com.apple.account.CardDAV, com.apple.account.Exchange, com.apple.account.LDAP )} 2023-01-22 18:58:36.085580+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Store registration failed: Error Domain=com.apple.accounts Code=7 (null) 2023-01-22 18:58:36.085606+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Update event received, but store registration failed. This event will be handled, but the behavior is undefined. 2023-01-22 18:58:36.136236+0800 PhoneticNam
2
0
2.1k
Jan ’23
Reply to Unable to see the list of Applications in FamilyPicker for the parent device
Same behaviour. Following are my logs Connection error from Optional(com.apple.ManagedSettingsAgent): 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.} 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.} It is applying some S
Topic: App & System Services SubTopic: General Tags:
Aug ’21
NSCocoaErrorDomain Code=513 after user delete's
I work on an app that saves data to the Documents folder in the users iCloud Drive. This uses the iCloud -> iCloud Documents capability with a standard container. We've noticed an issue where a user will delete the apps data by doing to Settings > {Name} > iCloud > Storage > App Name > select delete data from iCloud, and then our app can no longer write to or create the Documents folder. Once that happens, we get this error: Error Domain=NSCocoaErrorDomain Code=513 You don't have permission to save the file Documents in the folder iCloud~your~bundle~identifier. UserInfo={NSFilePath=/private/var/mobile/Library/Mobile Documents/iCloud~your~bundle~identifier/Documents, NSURL=file:///private/var/mobile/Library/Mobile%20Documents/iCloud~your~bundle~identifier/Documents, NSUnderlyingError=0x1102c7ea0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}} This is reproducible using the sample project here https://developer.apple.com/docume
5
0
208
Aug ’25
Debugging (IOAF code 11) and (IOAF code 4) errors.
I have some Metal Code, that goes along fine and then my app starts throwing the following errors. Execution of the command buffer was aborted due to an error during execution. Caused GPU Address Fault Error (IOAF code 11) and then... Execution of the command buffer was aborted due to an error during execution. Ignored (for causing prior/excessive GPU errors) (IOAF code 4) I am guessing the prior causes the later, but I can't figure out what is causing the first exactly. Is it possible to set up a Symbolic Break Point or something to catch these types of errors? Right now I feel like I am grasping in the dark to figure out what is going wrong in my code. Thanks Stan
1
0
3.3k
Jan ’21
Error Domain=NSCocoaErrorDomain Code=257 "The file couldn’t be opened because you don’t have permission to view it"
Hi! I am facing this strange error in my computer. I first happen to see this on some CXTest while running some snapshot tests and all files that where not created by me couldn't be opened. I tested it on a playground and keeps failing to get de contents of the file using the Data method. I did it just to check if the problem was on the project configurations but the problem remains. My playground is just: import Foundation let fileUrl = URL(fileURLWithPath: MYPATH, isDirectory: false) let data = try Data(contentsOf: fileUrl) The path is correct, the file exists and thorws: Playground execution terminated: An error was thrown and was not caught: Error Domain=NSCocoaErrorDomain Code=257 The file “file.png” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=MYPATH.png, NSUnderlyingError=0x600000536700 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}``` I run ls -la over the files that are being ope
2
0
2.5k
Jan ’23
NSCocoaErrorDomain 513
I'm fighting with the following error NSCocoaErrorDomain 513 reported by a very small number of users (~ 0.01%):Unable to create directory at path /var/mobile/Containers/Data/Application/EBE2C5D8-5AEC-4D62-9393-B19CAD598FE5/Documents/documents/FF2F88FB-2C07-4FA3-988E-58AD5C21F659/9A02F8A0-74EB-4ED6-81B6-4F40653856D3. Error: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “9A02F8A0-74EB-4ED6-81B6-4F40653856D3” in the folder “FF2F88FB-2C07-4FA3-988E-58AD5C21F659”. UserInfo={ NSFilePath=/var/mobile/Containers/Data/Application/EBE2C5D8-5AEC-4D62-9393-B19CAD598FE5/Documents/documents/FF2F88FB-2C07-4FA3-988E-58AD5C21F659/9A02F8A0-74EB-4ED6-81B6-4F40653856D3, NSUnderlyingError=0x15e09de00 { Error Domain=NSPOSIXErrorDomain Code=13 Permission denied } }This error means that the directory cannot be created because of a permission error. That's where I'm lost as the only reason I can see would be
14
0
17k
Sep ’16
Share Extension not respondent when sharing a file from Camera Roll due to an error NSCocoaErrorDomain Code=4099
Hey,One of our customers have encountered the following problem while attempting to a share a file from the camera roll using our app Share Extension. The outcome behavior of the following log is that the extension is not respondent for only that file that have failed previously to upload to our app due to a time out. It still works fine for other files.In the following log, I can see the out of range exception followed by the NSCocoaErrorDomain Code=4099.Apr 13 15:11:07 audi pkd[153] <Warning>: assigning plug-in <bundle-identifier>(2.1.2) to plugin sandboxApr 13 15:11:07 audi kernel[0] <Notice>: xpcproxy[451] Container: /private/var/mobile/Containers/Data/PluginKitPlugin/669C0F52-1C21-441D-9906-E2EFBD8A7D00 (sandbox)Apr 13 15:11:08 audi kernel[0] <Notice>: LwVM::_generateMappedExtentsList - failed to map unmap range to partitionApr 13 15:11:08 audi backboardd[60] <Warning>: Unable to bootstrap_look_up port with name <bundle-identifier>.gsEvents: unknown error
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
1k
Apr ’16
NSCocoaErrorDomain 256
I get the following error when trying to create a string from a file. Code below was added to viewDidLoad(). Test.txt file contains string Hello, World!From url pathlet path = NSBundle.mainBundle().pathForResource(Test, ofType: txt) let url = NSURL(string: path!) do { let string = try String(contentsOfURL: url!, encoding: NSUTF8StringEncoding) print(string) } catch { }However, this code worksFrom string pathlet path = NSBundle.mainBundle().pathForResource(Test, ofType: txt) do { let string = try String(contentsOfFile: path!, encoding: NSUTF8StringEncoding) print(string) } catch { }Am I missing something? This worked for me before. Now on Xcode 7/ iOS 9.0.2, I can't get it to work.rey
1
0
2.4k
Oct ’15
Reply to Vision Framework - Barcode Descriptor
I am getting these errors:1. Cannot connect to remote service: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.BarcodeSupport.BarcodeNotificationService2. libMobileGestalt MobileGestalt.c:555: no access to InverseDeviceID (see problem/11744455>)3. connection to service named com.apple.BarcodeSupport.BarcodeNotificationService Error Domain=NSCocoaErrorDomain Code=4097
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’17
neagent fails to start the plugin [NSCocoaErrorDomain Code=4097]
Hi, We have developed a per-app VPN (and containing app) on iOS 9.x/iOS 10.x based on Network Extension NEAppProxyProvider. VPN configurations are generated and distributed to devices. Sometimes the plugin doesn't lauch and fails with below error in device logs. This is an intermittent issue but once the device goes into this state it never comes back unless restarted or enrolled into another environment. It's not clear from the device log nda errorcode 4097 is pretty generic which just means The operation couldn’t be completed. It looks like a IPC failure but reason is unknown. Any insight into this error will help.Jun 6 12:55:10 test-iPhone pkd[90] <Info>: match returned 1 plug-ins Jun 6 12:55:10 test-iPhone neagent(Foundation)[2409] <Notice>: calling plugIn beginUsing: Jun 6 12:55:10 test-iPhone pkd[90] <Info>: assigning plug-in <private>(<private>) D0FC15A1-A6B9-49CC-B4C7-2689CA489B72 to plugin sandbox Jun 6 12:55:10 test-iPhone pkd[90] <Notice>: allow
2
0
2.6k
Jun ’17
Reply to How to read property list (binary format) if the iOS fails to load it via NSPropertyListSerialization
I tested in playground (Xcode 12.4). Works with 128. Fails with 129, with a different error message: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character b at line 1 UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Conversion of string failed.
Topic: App & System Services SubTopic: General Tags:
Mar ’21
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-2858EADD3A
5
0
1.8k
Oct ’22
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
CallKit reportNewIncomingCallWithUUID returns error with Domain=com.apple.CallKit.error.incomingcall Code=4
I can see the error in the logs of some users when reporting an incoming call to the system using the method.@interface CXProvider - (void)reportNewIncomingCallWithUUID:(NSUUID *)UUID update:(CXCallUpdate *)update completion:(void (^)(NSError *_Nullable error))completion;The description of the error is: Error Domain=com.apple.CallKit.error.incomingcall Code=4 (null).What can cause this error?
1
0
1.1k
Oct ’16