Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

setCodeSigningRequirement and Security Agent Plugins
I have a security agent plugin that uses NSXPCConnection to communicate with a launch daemon. This works well, but I want to make sure the launch daemon has not been compromised. I added code to call setCodeSigningRequirement in my module that handles the client side of the NSXPCConnection. However, when used in the security agent plugin, remoteObjectProxyWithErrorHandler reports an error NSCocoaErrorDomain Code=4102 The code signature requirement failed. If I call my xpc module from a test application, I do not receive an error and everything works as expected. I have tried different code signing requirements. Even with just anchor apple generic I still get the error. The console log shows two entries of interest com.apple.SecurityAgentHelper.arm64 default 09:13:29.677567-0500 SecurityAgentHelper-arm64 EOGSecurityServiceClient biometricAuthorization remote proxy error: Error Domain=NSCocoaErrorDomain Code=4102 The code signature requirement failed. UserInfo={NSDebugDescription=The code sign
4
0
965
Aug ’24
Using NSFileProviderService
I've configured an item and placeholder in NSFileProviderExtension iOS extension, and an XPC service in the provider (based on the template for XPC service for Mac, but as part of the NSFileProviderExtension When connecting to the service from the app using code example in getFileProviderServicesForItem I am getting an error straight in the completion handler of that function: Error Domain=NSCocoaErrorDomain Code=4097 Error while sending identifierForItemAtURL:completionHandler: UserInfo={NSDebugDescription=Error while sending identifierForItemAtURL:completionHandler:, NSUnderlyingError=0x2833640c0 {Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 30324 on anonymousListener or serviceListener UserInfo={NSDebugDescription=connection from pid 30324 on anonymousListener or serviceListener}}} Could you maybe suggest what I am missing? Or, is there an example somewhere of the FileProvider extension with the service being called from the app? Code: File Provider service definition: ht
3
0
987
Jun ’22
Cannot create instance of NSSavePanel
I've recently migrated my MacOS app to deployment target 12.0 and when I try to create an instance of NSSavePanel, like this: let panel = NSSavePanel() I get the following error: 2023-02-07 18:11:49.362237+0100 Acsy[31010:8797816] [miscellany] CLIENT ERROR: remote view delegate NSSavePanel lacks method which can react to the details of Error Domain=NSCocoaErrorDomain Code=4097 connection to service created from an endpoint UserInfo={NSDebugDescription=connection to service created from an endpoint} 2023-02-07 18:11:49.362584+0100 Acsy[31010:8797816] [OpenSavePanels] Unable to display save panel (unrecognized error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service created from an endpoint UserInfo={NSDebugDescription=connection to service created from an endpoint}) Any ideas what this means? This used to work MacOS 11.5. I'm on Xcode 14.1 / Ventura 13.0 entitlements: com.apple.security.files.user-selected.read-write is set to true
6
0
1.4k
Feb ’23
File download failed
Failed to send -[BADownloaderExtensionProxy backgroundDownload:finishedWithSandboxToken:completionHandler:]_block_invoke for: com.xuhuiTest.photos error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 2085 named com.xuhuiTest.photos.BackgroundDownloadExt UserInfo={NSDebugDescription=connection to service with pid 2085 named com.xuhuiTest.photos.BackgroundDownloadExt} Client is missing signing identifier, client must be signed with an identifier to use BackgroundAssets. (null) log.json
2
0
993
Aug ’23
Xcode 10 can't open workspace file
My Xcode 10 can't open workspace file, but it can load the project file.I can see error from console logs: 10:09:38.285666 +0800 fileproviderd Unable to setup extension context - error: Couldn’t communicate with a helper application. 10:09:38.286052 +0800 fileproviderd [ERROR] Cannot provide item at /Users/nali/Documents/studyspace/XMIProjects/StreamingKit/StreamingKit.xcworkspace for extension com.apple.CloudDocs.MobileDocumentsFileProvider. Error: Error Domain=NSFileProviderInternalErrorDomain Code=7 A connection to the extension “com.apple.CloudDocs.MobileDocumentsFileProvider” could not be made. UserInfo={NSLocalizedDescription=A connection to the extension “com.apple.CloudDocs.MobileDocumentsFileProvider” could not be made., NSUnderlyingError=0x7fe508feab00 {Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.CloudDocs.MobileDocumentsFileProvider.apple-extension-service was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.CloudDo
3
0
5.7k
Mar ’19
HomeKit API Add Accessory Issue
Hi, Im having an issue adding an accessory into the HomeKit manager. Im having an issue with adding the accessory after discovering the device. Im using the HomeKit Accessory Simulator The error is: 2022-04-17 20:01:20.157053-0400 LightSwitch[98255:3066692] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID 2022-04-17 20:01:20.210457-0400 LightSwitch[98255:3066692] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd} 2022-04-17 20:01:20.210791-0400 LightSwitch[98255:3066692] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd} Please see screenshot of th
1
0
1.1k
Apr ’22
Error saving image to Camera Roll on iPhone 17 Pro
I'm experiencing an issue with my app when saving images to the camera roll. This is intermittent, but it happens several times a day. The error I receive is the following: Connection to assetsd was interrupted - assetsd exited, died, or closed the photo library Error getting remote object proxy for -[PLNonBindingAssetsdPhotoKitClient sendChangesRequest:reply:]_block_invoke: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.photos.service UserInfo={NSDebugDescription=connection to service named com.apple.photos.service} PhotoKit XPC proxy is invalid. Dropping request on the floor and returning an error: Error Domain=PHPhotosErrorDomain Code=3301 (null) (underlying error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.photos.service UserInfo={NSDebugDescription=connection to service named com.apple.photos.service}) CoreData: error: XPC: synchronousRemoteObjectProxyWithErrorHandler: store 'file:///var/mobile/Media/PhotoData/Photos.s
0
0
271
Sep ’25
Can't save file to document folder
My iOS app sends a database to WatchKit (watchOS 2). In WatchKit i use the following code to get the watch document folder to save the new file in:- (void)session:(WCSession * _Nonnull)sessiondidReceiveFile:(WCSessionFile * _Nonnull)file{NSURL* url = [file fileURL];NSURL* fileURL = [[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject] URLByAppendingPathComponent:@MyDatabase.sqlite];// This results in an URL:// @file:///var/mobile/Containers/Data/PluginKitPlugin/47E13085-9030-4ED2-906F-01CBA323F07A/Documents/MyDatabase.sqlite// However, when I call the function:[[NSFileManager defaultManager] replaceItemAtURL:fileURL withItemAtURL:url backupItemName:nil options:0 resultingItemURL:nil error:&error];}It throws an error saying:Error Domain=NSCocoaErrorDomain Code=512 The file “MyDatabase.sqlite” couldn’t be saved in the folder “Documents”. Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “MyDatabase.s
2
0
9.7k
Oct ’15
Apple Configurator - Automation Tools
When running a cfgutil command I can verify across multiple OS versions, 10.15.7, and 11 that we get the following. % cfgutil get all objc[2358]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x7fff8ad23a30) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10681a8c0). One of the two will be used. Which one is undefined. objc[2358]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x7fff8ad23a80) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10681a910). One of the two will be used. Which one is undefined. cfgutil: error: Error Domain=NSCocoaErrorDomain Code=3840 Found non-key inside dict at line 112188 UserInfo={NSDebugDescription=Found non-key inside dict at line 112188, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Malformed data byte group at line 1; invalid hex UserInfo={NSDebugDescription=Malformed dat
3
0
3.8k
Mar ’21
App freezes due to CoreTelephony.xpc
Hi everyone,I have an error on my app. When I launch it, the log shows:[NetworkInfo] Descriptors query returned error: 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.}The app is freeze during this warning, which appear at least 20 times in just one second.Any idea?Thanks in advance.Best regards,Rubén
5
0
15k
Aug ’18
Code=513 couldn’t be copied because you don’t have permission to access “Group Containers”."
I am working on a macOS application in sandbox mode. I have enabled App groups and I can see the app group folder gets created. I am attempting to move a file from the app directory to the shared group but im see a permission error. Error moving files Error Domain=NSCocoaErrorDomain Code=513 “Container_1595437210.503603.txt” couldn’t be copied because you don’t have permission to access “Group Containers”. Any ideas?
1
0
1.3k
Jul ’20
Reply to Xcode Cloud Invalid Signature TN2206 error
Hi! I keep stuck here, I tried with another account and the error didn't appear, the problem, the account is not mine. I need to fix this. I think that this error is something happening in my xcode account, even after removing de Xcode cloud data and making all from scratch in my account. Looks like it's a problem in my account and I don't find a solution so I write to apple a couple of days ago requesting help because I am desperate to fix that. Another conclusion that I arrived is that the error that xcode cloud shows at first is not valid. iOS fails in the logs with the same errors but the conclusion error is diferent (the first one that I published). For some reason my xcode cloud is not able to communicate with App Store Connect as this error shows 2024-03-30 16:52:51 +0000 App Store Connect request for store configuration failed for account Session Proxy Provider (Account Session Proxy Provider: Unable to authenticate with App Store Connect (Error Domain=DVTITunesSoftwareServiceFoundation.DVTServicesSes
Apr ’24
Reply to setAlternateIconName: did anyone manage to make it work?
I've not managed to get this to work either. I've tried a number of combinations according to the documentation (https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW14)https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-SW14.<key>CFBundleAlternateIcons</key> <dict> <key>AlternateIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>AltIcon</string> </array> <key>UIPrerenderedIcon</key> <false/> </dict> </dict>let application = UIApplication.shared if application.supportsAlternateIcons { if application.alternateIconName == nil { application.setAlternateIconName(AlternateIcon) { error in print(String(describing: error)) } } else { application.setAlternateIconName
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’17
Core Data - Binary datastores with transformable attributes will not open
I store colours in my core data model using transformable attributes. Starting iOS11, this no longer works and I get an error like :... returned error Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format. UserInfo={NSUnderlyingException=Can't read binary data from file, NSUnderlyingError=0x60000005cb00 {Error Domain=NSCocoaErrorDomain Code=259 The file “<Persistent store name>” couldn’t be opened because it isn’t in the correct format. UserInfo={NSFilePath=<Path to persistent store>, NSUnderlyingException=value for key 'NS.objects' was of unexpected class 'UIColor'. Allowed classes are '{( NSDictionaryMapNode, NSSet, NSDictionary, NSOrderedSet, NSDecimalNumber, NSUUID, NSNumber, NSNull, NSData, NSDate, NSURL, NSString, NSArray )}'.}}} with userInfo dictionary { NSUnderlyingError = Error Domain=NSCocoaErrorDomain Code=259 The file U201cEmpty.ragU201d couldnU2019t be opened because it isnU2019t in the correct format. U
6
0
4.2k
Aug ’17
WeatherKit returns me error on main project but works on side projects.
Hi ! I'm using WeatherKit and Core Location for give to my users the weather from their long and lat. I done this on snippet code, it works on littlest project but when I implement it on my main project I get errors I got the developer program and activated it on Apple Developer. 2022-10-15 15:15:52.451584+0200 Sporolotor[9275:1486477] [AuthService] Failed to get remote object proxy for: com.apple.weatherkit.authservice with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.weatherkit.authservice was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.weatherkit.authservice was invalidated: failed at lookup with error 159 - Sandbox restriction.} 2022-10-15 15:15:52.452560+0200 Sporolotor[9275:1486477] [WeatherService] Encountered an error when fetching weather data subset; location=<+48.77307076,+2.34674782> +/- 0.00m (speed -1.00 mps / course -1.00) @ 15/10/2022 15:15
2
0
1.8k
Oct ’22