Search results for

NSCocoaErrorDomain Error Code 4

170,038 results found

Post

Replies

Boosts

Views

Activity

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 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 PHPickerViewController fails to load image
UPDATE: I tried using loadFileRepresentation instead. itemProvider.loadFileRepresentation(forTypeIdentifier: UTType.jpeg.identifier) { (url, error) in guard let url = url else { print(Failed to load url) return } And this time I get the following error on the console. `Error copying file type public.jpeg. Error: Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type public.jpeg UserInfo={NSLocalizedDescription=Cannot load representation of type public.jpeg, NSUnderlyingError=0x600001d26430 {Error Domain=NSCocoaErrorDomain Code=4101 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x600001dbcb70 {Error Domain=PHAssetExportRequestErrorDomain Code=0 The operation couldn’t be completed. (PHAssetExportRequestErrorDomain error 0.) UserInfo={NSLocalizedDescription=The operation couldn’t be completed. (PHAssetExportRequestErrorDomain error 0.), N
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to Error Domain=NSCocoaErrorDomain Code=4099
This error is coming only in iOS 15, but no such error is on iOS 17 or 18, need help 2024-11-14 07:29:28.173901-0600 Zacks[16171:116902] [Client] Updating selectors after delegate addition 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.}
Nov ’24
Reply to File transfer issue from iPhone to Watch after iOS 17.5 & WatchOS 10.5 update
Help! How can transfer img file from phone to watch? I meet below problem: Compress: 84317 bytes Save to: ../Application/06FB8B02-39C8-4844-B13B-D3860EE5B564/tmp/compressed_image.jpg Read file scuccess: 84317 bytes -[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.
Topic: App & System Services SubTopic: General Tags:
Oct ’24
kAFAssistantErrorDomain error codes
Are these error codes documented anywhere? Error codes 203 and 1110 seems to happen regularly. I think they mean the following: 203: some limit reached (happens very regularly when using server-side speech recognition, less often when using on-device recognition) 1110: no speech detected I have gotten a new one now: 1107 No idea what that means.
1
0
3.5k
Oct ’20
Reply to Can we save to NSUserDocuments?
A bit more information[self createFolder:@test];+ (void)createFolder:(NSString*)folder{ NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString *thePath = [documentsPath stringByAppendingPathComponent:folder]; NSError *error = nil; [fileManager createDirectoryAtPath:thePath withIntermediateDirectories:YES attributes:nil error:&error];}Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “test” in the folder “Documents”. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/A64A699C-2441-49CF-8DA3-1188CC0E67D6/Documents/test, NSUnderlyingError=0x147d75170 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to Error code question
The supplementary log information for the above question is as follows: 2020-08-17 11:28:19.470871+0800 XXXX[4255:1139139] CoreData: XPC: Unable to connect to server with options { ttNSXPCStoreServerEndpointFactory = <PLXPCPhotoLibraryStoreEndpointFactory: 0x280ce8760>; ttskipModelCheck = 1; } 2020-08-17 11:28:19.479533+0800 XXXX[4255:1139139] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134060 关键数据出错。 UserInfo={Problem=Unable to send to server; failed after 8 attempts.} 2020-08-17 11:28:19.483149+0800 XXXXX[4255:1139139] [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060) CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060) CoreData: annotation: userInfo: CoreData: annotation: Problem : Unable to send to server; failed after 8 attempts. CoreData: annot
Aug ’20
Reply to menu bar popover doesn't display when in fullscreen
Thanks pointing me in the right direction. The example you have provided does not work for me, however. In my attempts, entering any question, or even just yes or no in the Demo box results in:>>> noFailed to query oracle: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named XYZABC1234.com.example.iDecideHelper was invalidated. UserInfo={NSDebugDescription=The connection to service named XYZABC1234.com.example.iDecideHelper was invalidated.}
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’17
Reply to Creating file bookmarks doesn't work anymore on macOS 15 Sequoia
Today, mysteriously, the sample code works again. How could this possibly happen? Yesterday all my App Store apps weren't able to resolve and create file bookmarks, and today they work again. It's hard to guess at an exact cause, but this particular error: Error Domain=NSCocoaErrorDomain Code=256 Failed to retrieve app-scope key ...comes from one of the intermediate daemons involved in resolving security scoped bookmarks. If there was a problem in one of the lower level daemons it communicated with, then it's possible the problem would resolve itself if/when that daemon restarted. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’24
Reply to SwiftData does not retrieve my inverse one-to-many Relationship
Your code actually throws the following error when saving the context (if you add do...try... catch for context.save()) SwiftData.DefaultStore save failed with error: Error Domain=NSCocoaErrorDomain Code=1570 %{PROPERTY}@ is a required value. UserInfo={NSValidationErrorObject= (entity: ThirdModel; id: 0x60000028c520 ; data: { name = my third model; parent = nil; }), NSLocalizedDescription=%{PROPERTY}@ is a required value., NSValidationErrorKey=parent, NSValidationErrorValue=null} To avoid the error, change the to-one relationship to Optional. Also, when declaring a relationship, use var because SwiftData maintains it for you. If you declare your models in the following way, your code will work: final public class SecondModel { var parent: FirstModel? ... } @Model final public class ThirdModel { var parent: SecondModel? ... }
Topic: Programming Languages SubTopic: Swift Tags:
May ’24
Reply to AVPlayerItem is not able to reproduce audio from music folder on Macbook M1
Thanks for the comments, there is in fact an error that i didn't see before : AVQueuePlayer status: AVPlayerStatusReadyToPlay AVQueuePlayer error: nil AVPlayerItem status: AVPlayerItemStatusFailed AVPlayerItem error: Error Domain=NSCocoaErrorDomain Code=257 The file couldn’t be opened because you don’t have permission to view it. UserInfo={NSUnderlyingError=0x600002a7f5d0 {Error Domain=NSOSStatusErrorDomain Code=-12203 (null)}} AVURLAsset: AVURLAsset: 0x600002504980, URL = file:///Users/xx/Music/Music/Media.localized/Music/xx/xx/xx.mp3 It only happens with audios from Music folder Something interesting is that the app has permission for Music & Apple Music in Security & Privacy from System preferences Is something else needed to access music folder ?
Topic: Media Technologies SubTopic: General Tags:
Apr ’21