Search results for

NSCocoaErrorDomain Error Code 4

170,022 results found

Post

Replies

Boosts

Views

Activity

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
Reply to How to initialize Schema?
Has anyone gotten schema initialization to work with the new initializeCloudKitSchemaWithOptions function? I am always getting an internal CoreData No authToken receive for asset error thrown from this call: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. (Dry run option completes without error)
Nov ’20
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
43
Nov ’25
Reply to Drop file not found on MacBook Air
Thanks for the extra info. I see two errors here: The top-level error is NSCocoaErrorDomain code 4, which is NSFileNoSuchFileError. The underlying error is NSPOSIXErrorDomain code 2, which is ENOENT. Cocoa errors can be a bit ‘squishy’, meaning that the same error can come from a variety different sources. However, the presence of the ENOENT error suggests that this really is a file not found problem of some form. It looks like the source file is in the Downloads folder. That might be important because that folder is protected by MAC [1]. If you use the Finder to move the file to your home directory and then drag the file on to your app, does that work? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] That’s another topic I cover in On File System Permissions.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’25
Reply to Photos app crashes on launch in Catalina
I have a similar issue:Error Domain=PHPhotosErrorDomain Code=4302 PHPhotosErrorInvalidState UserInfo={NSLocalizedDescription=PHPhotosErrorInvalidState, currentState=error, NSUnderlyingError=0x600001b16e20 {Error Domain=com.apple.photos.error Code=43002 (null) UserInfo={currentState=error, NSUnderlyingError=0x600001b16d90 {Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 1476 named com.apple.Photos.Migration UserInfo={NSDebugDescription=connection to service on pid 1476 named com.apple.Photos.Migration}}}}}Have no idea how to fix.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’19
Reply to Xcode 15 can't install iOS 17 platform simulator
Also running into this, I have a handful of other weird things too like when I go to uninstall listed runtimes I get: ❯ xcrun simctl runtime delete 21J353 An error was encountered processing the command (domain=com.apple.CoreSimulator.simdiskimaged.SimDiskImageError, code=18): Cannot stage disk image or bundle for delete: 4A9A3A5B-03C2-4A4F-AF9B-A237B7A500BE Underlying error (domain=NSCocoaErrorDomain, code=4): “4A9A3A5B-03C2-4A4F-AF9B-A237B7A500BE.dmg” couldn’t be moved to “NSIRD_simdiskimaged_rClQ89” because either the former doesn’t exist, or the folder containing the latter doesn’t exist. The file doesn’t exist. Almost feels like my CoreSimulator directories got corrupted and now I can't recover.
Sep ’23
Reply to Batch insert error when unique constraint is set on multiple attributes
Hi, I see the similar problem in my simple test project at Github ( at the commit: 23c759d ): I am trying to save users of a multilanguage app into Core Data by using NSBatchInsertRequest and I am using uid,language as constraints: and the error (when calling 2nd time) is: `TopsBatchInsert/TopViewModel.swift:103: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134050 (null) UserInfo={NSExceptionOmitCallstacks=true, _NSCoreDataOptimisticLockingFailureConflictsKey=( )}, [_NSCoreDataOptimisticLockingFailureConflictsKey: <__NSArray0 0x102b7a9b0>( ) , NSExceptionOmitCallstacks: 1] 2021-07-13 16:30:02.944932+0200 TopsBatchInsert[86706:2120693] TopsBatchInsert/TopViewModel.swift:103: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134050 (null) UserInfo={NSExceptionOmitCallstacks=true, _NSCoreDataOptimisticLockingFailureConflictsKey=( )}, [_NSCoreDataOptimisticLockingFailureC
Jul ’21
Safari App Extension fails to connect to CloudKit daemon (cloudd) with XPC communication errors -- CKErrorDomain Code=6 / NSCocoaErrorDomain Code=4099 – Unable to connect to CloudKit daemon
I'm working on a macOS app with a Safari web extension. I'm trying to share a SwiftData model between devices using CloudKit synchronization. I am able to get synchronization in the main app on the same device, CloudKit sync works correctly — changes appear in the CloudKit Dashboard under com.apple.coredata.cloudkit.zone. However, in the Safari App Extension, data is saved locally and persists across launches, but never syncs to CloudKit. I have followed the recommended practices for configuring the App Group and entitlements, but the issue persists. Questions: Is there an official limitation preventing Safari App Extensions from connecting to the CloudKit daemon (cloudd)? If not, what entitlements or configuration changes are required for a Safari App Extension to successfully sync with CloudKit? Is the xpc_error=159 from bootstrap_look_up() a known sandbox restriction for this extension type? Any guidance from Apple engineers or others who have successfully used CloudKit from a Safari App Extension would be
2
0
121
Aug ’25
Weird NSCocoaErrorDomain errow when trying to autorize Screen Time API
Hello, we have rare case of AuthorizationCenter.shared.requestAuthorization(for: .individual) failing to autorize user on real device - iPhone XR (iOS 16.1.2). It does not throw the standard FamilyControlsError which we are handling, but NSCocoaErrorDomain. This is the entire po description: Error Domain=NSCocoaErrorDomain Code=4864 The given data was not a valid property list. UserInfo={NSCodingPath=(), NSDebugDescription=The given data was not a valid property list., NSUnderlyingError=0x283af4d80 {Error Domain=NSCocoaErrorDomain Code=3840 Cannot parse a NULL or zero-length data UserInfo={NSDebugDescription=Cannot parse a NULL or zero-length data}}} The localized one says: The data couldn’t be read because it isn’t in the correct format. This sounds like some error deep in iOS. The testing device has Apple ID logged in and uses passcode. Anything we can do on our end to solve this issue?
3
0
2.1k
Jan ’23
SiriLinkFlowPlugin.WFOpenInteractionFlow error 4
Hi everyone, I have developed an app which donates user activities and creates shortcuts in the Shortcuts App for handling the Fritz!Box home automation devices via Siri, with the created shortcuts. The Fritz!Box is a very popular router in Germany, which can control bulbs, power plugs, heating, etc. After update to WatchOS 9, shortcuts created with my Apps ‘Fede’ or ‘Fede Lite’ are still working, but Siri shows the error message: ‘An error occurred while running . The operation could not be completed. (SiriLinkFlowPlugin.WFOpenInteractionFlow error 4)’. Until WatchOS 8, everything was working fine. The shortcut execution is interrupted: if there are actions after my activity (I add some manually sometimes), they are not executed. I get the userActivity correctly in the func handle(_ userActivity: NSUserActivity) method of the WKExtensionDelegate. The userActivity.interaction is nil. I tried re-donating, invalidating and resignCurrent without success. IMPORTANT: This happen
2
0
1.1k
Oct ’22
Reply to Contacts Framework Frequently Hangs on iOS 11
Probably I see the same issue on an iPhone 8 Plus with iOS 11.2. The error: service connection to com.apple.contactsd was interrupted. Error communicating with XPC Service: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.contactsd UserInfo={NSDebugDescription=connection to service named com.apple.contactsd}
Topic: UI Frameworks SubTopic: AppKit Tags:
Dec ’17