Search results for

NSCocoaErrorDomain Error Code 4

170,032 results found

Post

Replies

Boosts

Views

Activity

AVFoundation Error Codes
I am getting following two error messages when taking RAW and also JPEG photos. I have no way to diagnose these:Error capturing photo: Error Domain=AVFoundationError- Domain Code=-11800 The operation could not be completed Userlnfo={NSLocalizedFailur- eReason=An unknown erroroccurred (42686), NSLocalizedDescription:The operation could not be completed, NSUnderlyingEr- ror=0x1c804bfa0 {Error Domain=NSOSStatusError- Domain Code=-12686 (null)}}Error capturing photo: Error Domain=AVFoundationError-Domain Code=-11800 The operation could not be completed UserInfo.{NSLocalized-FailureReason=An unknown error occurred (-16802), NSLocalizedDescription=The operation could not be completed, NSUnderlyingEr-ror=0x1c4243f30 {Error Domain=NSOSStatusError-Domain Code=-16802 (null)}}This seems to happen right after this function in AVCapturePhotoCaptureDelegate:optional func photoOutput(_ output: AVCapturePhotoOutput, didFinishPr
6
0
5.9k
Apr ’18
Error code question
What is Error Domain=com.apple.photos.error Code=46104 mean? This error appears when I try to create an album on iOS14. case: User first gives AddOnly authorization and then gives ReadWrite authorization. After I get the ReadWrite authorization, create an album. code reference: [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCollectionChangeRequest *request = [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:albumName]; albumPlaceholder = [request placeholderForCreatedAssetCollection]; } completionHandler:^(BOOL success, NSError * _Nullable error) { // success is NO, error is Error Domain=com.apple.photos.error Code=46104 }];
2
0
2.0k
Aug ’20
Error Codes & Underlaying Error Codes: to use or not to use?
So I am trying to create a great UX. To do that I need to communicate to the user what exactly went wrong. The only way I believe this can be done, is by creating specific error messages with actionable steps to remedy the situation. This is not provided by the localises messages delivered by an NSError. I find the error messages to be too generic. This is especially true when the error comes with a nested NSUnderlyingError. Furthermore, in my experience they never suggest how to fix the error. So, how to best handle that? Right now, I have chosen to return my own errors - which are determined as follows: Cast the error to NSError. Check the error domain and code. For certain domains (and codes) I check for an underlaying errors and codes, and if one is found I return an error with a precise error message. If no underlaying error is found, I return the more generic error found
2
0
1.1k
Dec ’20
Playground 4 App doesn’t have code snippets?
While looking at the new features in Playgrounds 4 I noticed that tapping the + in the upper right corner of a playground opens a window with the {} button containing several code snippets (outlines for class, struct, for loop, etc…) but when I created an App and tapped the + there were several other choices, but no {} button. Is it just not available, hidden somewhere else, or am I blind? Being lazy got me into coding (I could make my computer do my work for me :D ) code snippets lets me be extra lazy! footnote: I’m running Playgrounds on an IPad Air Gen3
1
0
584
Dec ’21
Reply to Watchkit app hangs (spins forever) - activePlugInForIdentifier: returned nil for application
Update:I've stripped down the application to a single page with a label. No assets. No network requests.Again, it launches fine with local builds and spins forever and eventually crashes with enterprise builds.I checked out the logs and sure enough there is an error:Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named com.XXX.watchkitextension) <Notice>: (Error) WatchKit: <SPCompanionAppServer.m __51-[SPCompanionAppServer sendToRemoteInterface:call:]_block_invoke519:914> activePlugInForIdentifier: returned nil for application com.XXX.watchkitappI've googled the error code quite a bit but nothing concrete has surfaced.Anyone @ Apple have any idea of what is going on?
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Bluetooth Error Codes
I'm working with a company that has apps on your platform and we're having trouble getting a record of what the error codes that your devices are reporting mean. For example we see the error code 254 come up related to Bluetooth. Essentially, we would like to develop a solid path of correction for these errors, but to do so we need to know what each error means. Any resources or help that you guys can provide would be fantastic!
0
0
668
Nov ’20
Reply to Authorizing Apple Pay via non-Safari browser fails to decode merchant session.
I'm experiencing the same problem in Firefox 134.0 (aarch64) on macOS 14.6.1 (Apple M1). Console 1.1, shows these messages when connected to my iPhone 14 running iOS 18.1.1: error 14:43:31.069080+0000 PassbookUIService Codable: Failed to decode Merchant Session Created: Error Domain=NSCocoaErrorDomain Code=4864 UserInfo={NSCodingPath=, NSDebugDescription=} error 14:43:31.069103+0000 PassbookUIService Session 12311: Fatal Error: Failed to decode merchant session created
Topic: Safari & Web SubTopic: General Tags:
Jan ’25
Reply to Using core data in ShieldConfigurationExtension
I think it's quite likely that the sandbox is blocking access to Core Data. I'm using it via Swift Data: do { container = try ModelContainer( for: Settings.self, configurations: ModelConfiguration(allowsSave: allowsSave) ) context = ModelContext(container) } catch { fatalError(*** Failed to create BreakManager: (error)) } I get an error when I try to create the ModelContainer: Failed to register for com.apple.managedconfiguration.effectivesettingschanged: 9 Could not register for user invalidated notifications; status = 9 error: (3) access permission denied error: Encountered exception error during prepareSQL for SQL string 'SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = 'Z_METADATA'' : access permission denied with userInfo { NSFilePath = /private/var/mobile/Containers/Shared/AppGroup//Library/Application Support/default.store; NSSQLiteErrorDomain = 3; } while checking table name from store: error: addPersistentStoreWithType:configuration:URL:option
Aug ’24
Reply to Xcode wont run WatchKit App
Dec 3 12:10:53 My-AppleWatch iap2d[93] <Warning>: process com.apple.stocks.watchapp.watchextension is now suspending Dec 3 12:10:53 My-AppleWatch gizmoappd[95] <Warning>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named appid.watchkitapp.watchkitextension was invalidated. UserInfo={NSDebugDescription=The connection to service named appid.watchkitapp.watchkitextension was invalidated.} Dec 3 12:10:53 My-AppleWatch gizmoappd[95] <Notice>: (Error) WatchKit: <SPGizmoPlugInManager.m __72-[SPGizmoPlugInManager beginUsingExtension:serverIdentifier:completion:]_block_invoke:972> could not activate plugin appid.watchkitapp.watchkitextension (error:Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named appid.watchkitapp.watchkitextension was invalidated. UserInfo={NSDebugDescription=The connection to service named appid.watchkitapp.watchkitextension was invalidated.}) D
Topic: App & System Services SubTopic: General Tags:
Dec ’15
Reply to Got a serious NSURLSession background session bug
Based from response, the file is temporarily downloaded in file:///var/mobile/Library/Caches/com.apple.nsurlsessiond/Downloads/xxxxx/CFNetworkDownload_qb9hwG.tmp I cannot copy this file to my download location since I am encountering an error: (NSError) error = 0x00000002818928e0 Error Domain=NSCocoaErrorDomain Code=257 The file CFNetworkDownload_qb9hwG.tmp could not be opened because you do not have permission to view it. UserInfo = {NSFilePath = /var/mobile/Library/Caches/com.apple.nsurlsessiond/Downloads/xxxxx/CFNetworkDownload_qb9hwG.tmp, NSUnderlyingError = 0x2818927c0 {Error Domain = NSPOSIXErrorDomain Code = 1 Operation not permitted}} I am assuming the temporary file should be saved in my App Folder. Additional info: My app is registered with the Microsoft Identity platform
May ’21
Reply to Issue with CXSetTranslatingCallAction – "Couldn't communicate with a helper application" error
Hi Kevin Elliott, Here I'm adding the exact error message that I have got while requesting callkit transaction (Error?) domain: NSCocoaErrorDomain - code: 4097 { _userInfo = 0x000000012782a220 1 key/value pair { [0] = { key = 0x00000001f9af9c30 NSDebugDescription value = 0x0000000114f76d80 connection to service with pid 144 named com.apple.callkit.callcontrollerhost } } } And error's description is Couldn't communicate with a helper application. Please check and let us know if any further information needed. Thanks & Regards, Kishore
Topic: App & System Services SubTopic: General Tags:
Jul ’25
Reply to setAlternateIconName: did anyone manage to make it work?
Just a heads up for my fellow Googlers, I was having trouble implementing this in my app. Using the simulator, iPhones would work, but iPads would not. I was seeing this error:error: Error Domain=NSCocoaErrorDomain Code=4 The file doesn't exist. UserInfo={NSUnderlyingError=0x60800044b3a0 {Error Domain=LSApplicationWorkspaceErrorDomain Code=-105 iconName not found in CFBundleAlternateIcons entry UserInfo={NSLocalizedDescription=iconName not found in CFBundleAlternateIcons entry}}}I was referencing these two example repos:https://github.com/steventroughtonsmith/AlternateIconTesthttps://github.com/iSame7/AlternateAppIconsI tried a bunch of debugging stuff and finally hit upon something that seems to help. I noticed if I replaced the contents of my AppIcon.appiconset/Contents.json file with one from the example repos, things seem to work on the iPad. I'm not 100% sure what's going wrong, but my Contents.json specifies a filename and I suspect that's the root o
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’17
Error during MacOS Monterey Beta 4 update
I have been getting: Installation failed. In order to continue installing, you need to be an owner. So, I use: sudo softwareupdate -i -a -R Now I have this error: Failed to download & prepare update: Error Domain=SUOSUErrorDomain Code=201 Failed to personalize the software update. Please try again. UserInfo={NSLocalizedRecoverySuggestion=An error occurred while downloading the selected updates. Please check your internet connection and try again., NSLocalizedDescription=Failed to personalize the software update. Please try again., NSUnderlyingError=0x6000012c0210 {Error Domain=SUMacControllerError Code=7723 [SUMacControllerErrorPreflightPersonalizeFailed=7723] Failed to perform PreflightPersonalize operation: [MobileSoftwareUpdateErrorDomain(MSU):MSU_ERR_PERSONALIZATION_FAILURE(2)_1_PersonalizationErrorDomain(Personalization):kAMAuthInstallTATSUDeclinedAuthorization(3194)|TATSUDeclinedAuthorization|] UserInfo={SUMacControllerErrorIndicationsSummary=|TA
0
0
1.4k
Jul ’21