Search results for

NSCocoaErrorDomain Error Code 4

170,019 results found

Post

Replies

Boosts

Views

Activity

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
Sep ’18
Reply to Crash on libc++abi.dylib
Log: Unhandled error (NSCocoaErrorDomain, 256) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=256 無法打開檔案「Objects.sqlite」。 UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/xxxxxxxxxxxx/Library/Caches/com.xxx.xxxxxx.GMSCacheStorage/GMSCacheStorage-Objects/Objects.sqlite, NSSQLiteErrorDomain=14} me too,look like Google Map SDK or Firebase SDK .
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
Widget_Simulator error 4
I am on MacOS 15.3.2, XCode 16.2 I have a MacOS app with app group and Widget that was working on Sonoma. I am aware of the App Group changes with Sequoia, and I think I have that right. The app runs fine. The widget refuses to load in the simulator and in the system. The simulator error I get is Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 4). I am having trouble finding out what exactly error 4 means. Can anyone help?
Topic: UI Frameworks SubTopic: SwiftUI
3
0
173
Mar ’25
UNUserNotificationCenter::requestAuthorization failed with NSCocoaErrorDomain
I try to using the module UserNotifications in swift project, to send notifications of my macos app. I pack my app with nested bundle like: /Application/MyApp.app - Contents - Resources - Frameworks - MacOS - my_binary - Notifier.app - Resources - Frameworks - Contents - MacOS - notifier_binary When I use cmdline to execute my notifier_binary, it's work fine. But when I execute it form my_binary, it will failed sometimes in api requestAuthorization, and the auth setting result will be not authed. But in current user's setting, it had been allowed. The error message in log, I can't find anything useful in google result, I have no idea what this error message means. 2022-10-27 16:32:11.297912+0800 0x3ded Error 0x0 1697 0 notifier_binary: (UserNotifications) [com.apple.UserNotifications:Connections] [com.my.notifier] Getting notification settings failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.us
0
0
1.7k
Oct ’22
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.}20
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
ODR Error: Code=4 "Hash mismatch for chunk containing offset 0..."
I have an app which fetches some large sound files via On Demand Resource. One of my development devices began reporting the following error (after previously having loaded the tag successfully): Error Domain=SZExtractorErrorDomain Code=4 Hash mismatch for chunk containing offset 0: expected 342058fc4bee7355f9670c99a797d1b1, got 936843a70e005b6768798d0619ae927a UserInfo={NSLocalizedDescription=Hash mismatch for chunk containing offset 0: expected 342058fc4bee7355f9670c99a797d1b1, got 936843a70e005b6768798d0619ae927a, SZExtractorActualHashValueErrorKey=936843a70e005b6768798d0619ae927a, SZExtractorFileOffsetErrorKey=0, SZExtractorSourceFileLineErrorKey=474, SZExtractorFunctionNameErrorKey=-[StreamingUnzipState _checkHashForOffset:], SZExtractorHashChunkIndexErrorKey=0} This device previously loaded the ODR data for the given tag and other devices are able to access the ODR tag without issues. There haven’t been any changes to the ODR related application code, nor to
0
0
775
Jul ’20
Reply to CloudKit + NSPersistentCloudKitContainer: CKError "Service Unavailable" (6/2022); "Request failed with http status code 503"
Today I have different errors! CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1106): : Failed to set up CloudKit integration for store: (URL: file:///var/mobile/Containers/Data/Application/7C41756B-0596-4010-B35D-3F98B27F83A7/Library/Application%20Support/com.grantdavisinteractive.Mimir/cloud-library.sqlite) Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2115): - Attempting recovery from error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error
May ’22
"Client is not entitled" Error (Code=4) with PKAddShareablePassConfiguration.forPassMetaData Despite Correct Entitlements
Hello, I'm experiencing a critical issue with PassKit's shareable pass functionality. Despite having the necessary entitlements configured, I'm getting an entitlement error when calling PKAddShareablePassConfiguration.forPassMetaData. Failed to create PKAddShareablePassConfiguration: Error Domain=PKPassKitErrorDomain Code=4 client is not entitled UserInfo={NSDebugDescription=client is not entitled} private func createPassViewController(from response: PreparePushProvisioningResponse) { guard let passMetadata = PKShareablePassMetadata( provisioningCredentialIdentifier: response.provisioningCredentialIdentifier, cardConfigurationIdentifier: response.cardConfigurationIdentifier, sharingInstanceIdentifier: response.sharingInstanceIdentifier, passThumbnailImage: response.passThumbnailImage, ownerDisplayName: response.ownerDisplayName, localizedDescription: response.localizedDescription ) else { print(Failed to create PKShareablePassMetadata) return } print(PKShareablePassMetadata
0
0
180
Oct ’25
Reply to SwiftData and command line
import Foundation import SwiftData @Model class Person { var name: String init(name: String) { self.name = name } } func main() { print(Bundle.main.bundleIdentifier ?? ) // com.northbronson.DataDemo print(Bundle.main.object(forInfoDictionaryKey: CFBundleName) ?? ) // DataDemo let configuration = ModelConfiguration( isStoredInMemoryOnly: true, allowsSave: false ) print(configuration.url) // file:///dev/null // let _ = configuration.url.startAccessingSecurityScopedResource() do { let _ = try ModelContainer( for: Person.self, configurations: configuration ) } catch { // configuration.url.stopAccessingSecurityScopedResource() print(error) } } main() // com.northbronson.DataDemo // DataDemo // file:///dev/null // error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (257) // CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (257) // error
Jan ’24
WkWebView evaluatejavascript WKErrorDomain code 4
After ios 13 upgrades every time return a domain error code 4. Before ios 13 everything worked well.The error is:Error Domain=WKErrorDomain Code=4 A JavaScript exception occurred UserInfo={WKJavaScriptExceptionLineNumber=0, WKJavaScriptExceptionMessage=, WKJavaScriptExceptionColumnNumber=0, NSLocalizedDescription=A JavaScript exception occurred}
0
0
1.9k
Sep ’19
Reply to FileManager contentsOfDirectory fails with error 256
You need to trigger the Input/output error - https://github.com/osxfuse/osxfuse/issues/45 first. This can be achieved with ifuse - https://github.com/libimobiledevice/ifuse and connecting an iOS device: brew install ifuse mkdir iphone ifuse iphone Now disconnecting the iOS device will result in the Input/output error. This is the output when running the above code in Xcode 12.4: content directory contents error Error Domain=NSCocoaErrorDomain Code=256 The file “mount” couldn’t be opened. UserInfo={NSURL=file:///Users/user/mount, NSFilePath=/Users/user/mount, NSUnderlyingError=0x600002b69d10 {Error Domain=NSPOSIXErrorDomain Code=5 Input/output error}} error Error Domain=NSCocoaErrorDomain Code=256 The file “mount” couldn’t be opened. UserInfo={NSURL=file:///Users/user/mount, NSFilePath=/Users/user/mount, NSUnderlyingError=0x600002b6e0a0 {Error Domain=NSPOSIXErrorDomain Code
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
NSCocoaErrorDomain 4097: connection to service named com.apple.storekitagent
We had a few users reporting this issue where our app is unable to connect to StoreKit. Failed product request from the App Store server: systemError(Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekitagent UserInfo={NSDebugDescription=connection to service named com.apple.storekitagent}) This occurs when calling Product.products(for:). Some users mentioned they had to restart their Mac in safe mode to make the error go away, some had DNS cache issues and clearing those helped, or some found the culprit to be Adguard. What could be causing this error as it is not very clear what's causing it?
4
0
3.6k
Dec ’23
Reply to SiriKit - Failed to attach to process?
Update: I'm getting this in console.log Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: preparing plug-in <private>(<private>) Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Notice>: connection to plug-in <private>(0DDA43D4-A588-4478-8405-C219EAA7F591) lost Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.appID.SiriKitExtension UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension} Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: beginUsing of 0DDA43D4-A588-4478-8405-C219EAA7F591 concludes with error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.appID.SiriKitExtension UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension} Aug 15 11:43:43 iPhone assistantd(Foundation)[1
Topic: App & System Services SubTopic: General Tags:
Aug ’16