I am developing a new OS-X App. When I try to save a file using an internally-generated file name based on the most-recently read file, I get Error 513. Saving to a file whose name comes from NSSavePanel works fine. What privilege is the App missing? Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “2022-09-03.xml” in the folder “2022”. UserInfo={NSFilePath=/Volumes/HDD2/Documents/OS-X Apps/Polls/2022/2022-09-03.xml, NSUnderlyingError=0x600002765740 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I constantly see this error when trying to build my app (on a M1 mac mini, XCode 13.4.1, macOS 12.5): 10:54:12 [10:54:12]: ▸ 2022-09-01 10:54:12.167 xcodebuild[8704:227402] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.} 10:54:12 [10:54:12]: ▸ 2022-09-01 10:54:12.167 xcodebuild[8704:227402] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts 10:54:12 [10:54:12]: ▸ 2022-09-01 10:54:12.167 xcodebuild[8704:227402] XType: unable to make a connection to the font daemon! 10:54:12 [10:54:12]: ▸ 2022-09-01 10:54:12.167 xcodebuild[8704:227402] XType: XTFontStaticRegistry is enabled as fontd is not available. How can I make sure the Font server is available? What can be done about the version mismat
Background: We recently added support for running the iOS version of our video streaming app on M1 MacBooks - as part of this we'd like to be able to AirPlay from within the M1 version of the app to external devices (tvOS, LG, Roku, etc..). AirPlay works as expected when running the iOS app on an iPhone, however, when running the iOS app on an M1 Mac, AirPlay does not work. It attempts to make a connection, but the video player goes black on the sender device and nothing appears on the receiving device. We use AVPlayer as our underlying video implementation. AVRoutePickerView is used to establish the AirPlay connections. Question: Is AirPlay supported for iOS apps running on apple silicon? Are there certain flags that need to be set to enable this? Any idea what may be causing the failed AirPlay connection? Error: This error appears immediately after attempting to AirPlay, unsure if it is related: sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097
I am trying to setup my CloudKit schema from CoreData using the NSPersistentCloudKitContainer but getting an error when calling try container.initializeCloudKitSchema() The error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={encounteredErrors=( Error Domain=NSCocoaErrorDomain Code=134406 Request '07443E71-32AC-4E63-A163-AAF940FE1AD6' was aborted because the mirroring delegate never successfully initialized due to error: UserInfo={NSLocalizedFailureReason=Request '07443E71-32AC-4E63-A163-AAF940FE1AD6' was aborted because the mirroring delegate never successfully initialized due to error: } )} My container is iCloud., and is reflected in the Entitlement file.
Hey, I'm not sure I'm even in the correct ballpark - trying to allow my app to download largish videos from user's OneDrive and G-Drive to app Is it correct to use NSFileCoordinator in this way? How do I report progress as it downloads the video (is it possible?) Is it correct to dismiss the picker like this? anything else wrong (or, like is....any of it correct? :) it's sort of working with my contrived examples (I created new personal G-drive / Onedrive accounts, and copied vids up there), but...when I use a file from our corporate OneDrive, from shared folder, I get: NSCocoaErrorDomain Code=3328 The requested operation couldn’t be completed because the feature is not supported. Is this the NSFileProvider extension (Microsoft's) complaining? public func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { guard let url = urls.first else { return } let isSecurityScoped = url.startAccessingSecurityScopedResource() print((#function) - iSecurityScoped = (isSecu
I have exactly the same issue. When calling beginAccessingResources I get an error: Error: Error Domain=NSCocoaErrorDomain Code=4099 Connection invalidated to streaming unzip service. I have checked if this is a issue with the PNG image (colour profile, compression etc.) but no mater what I did I still get the same error. Environment Xcode: 13.4.1, Device: iPhone 11 Max Pro, iOS: 15.6.1
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Same issue is still present in b5. No way to get a valid result. Everything is correctly configured and with b2 we was able to get results on sim, running Xcode14b2. Now we receive always the following 2022-08-10 23:25:32.849941+0200 Where To[42790:8192039] [WeatherService] Encountered an error when fetching weather data subset; location=<+41.91643209,+12.52443409> +/- 0.00m (speed -1.00 mps / course -1.00) @ 10/08/22, 23:25:29 Ora legale dell’Europa centrale, error=xpcConnectionFailed(Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.weatherkit.authservice UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice})
Topic:
App & System Services
SubTopic:
General
Tags:
I am getting this error when I actually try to send a local notification, even when the app has been given proper access: Error sending notification: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 586 named com.apple.usernotifications.usernotificationservice Here is the notification sending code, though it is pretty straight forward: UNMutableNotificationContent * userNote = [UNMutableNotificationContent new]; NSMutableArray * identifiers = [NSMutableArray new]; if (messages.count == 1) { userNote.title = messages[0].sender[0].displayName; userNote.subtitle = messages[0].subject; } else { NSString * mkApplicationName = NSBundle.mainBundle.infoDictionary[@CFBundleName]; userNote.title = MKStringWithLocalizedFormat(@@APP_RECEIVED_@NUM_MESSAGES, mkApplicationName, messages.count); } for (MKMessage* message in messages) { if (message.postmarkIdentifier) { [identifiers addObject:message.postmarkIdentifier]; } } userNote.body = self.notificationMessage; userNote.userInfo = @{@Mess
Hello, While testing my app I want to be able to retry the workflow of doing the first request for the User Notifications, but I cannot find a way to reset that information. tccutil All [bundle id] did not work for me, so I am assuming that there might be another way to do this, but I have not been able to find it. Since you are here looking, one of the other reasons I want to do this, is that I am getting this error when I actually try to send a local notification, even when the app has proper access given: Error sending notification: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 586 named com.apple.usernotifications.usernotificationservice Thanks for any help, Scott
I developed an app with a share extension, and want to receive files shared from other apps by the share extension. The following is what I do in the share extension. let attachments = (self.extensionContext?.inputItems.first as? NSExtensionItem)?.attachments ?? [] guard #available(iOSApplicationExtension 14.0, *) else {return} let contentType = public.file-url for provider in attachments { guard provider.hasItemConformingToTypeIdentifier(contentType) else { continue } provider.loadItem(forTypeIdentifier: contentType, options: nil) { [unowned self] (data, error) in let fileUrl = data as! URL // Get shared file data here, // works fine on simulator, but the permission error occurs if run on device try? Data(contentsOf: fileUrl) } } self.extensionContext?.completeRequest(returningItems: [], completionHandler: nil) . It works fine on simulator, but get an error like below if I read the shared data (using Data(contentsOf: url)) when runs on device. . Failed to read file, error Error Domain=NSCocoaErrorDomain
Hi, I have an app on App Store that works in iOS 14/15 and I just downloaded Xcode 16 beta to test compatibility with iOS 16 beta. My app allows selecting photos or documents and encrypt them. This work fine in iOS 16 beta. The encrypted files, I can open them and decrypt them ok in iOS 14/15. But in iOS 16 Beta, I get this error when opening the encrypted file. Any changes in iOS 16 that I should do? Thanks M 2022-08-08 15:36:02.070081+1000 HideApp[4842:1574433] [default] [ERROR] Could not resolve bookmark. Error: NSError: Cocoa 257 The file couldn’t be opened because you don’t have permission to view it. 2022-08-08 15:36:02.070216+1000 HideApp[4842:1574433] [DocumentManager] Failed to create a url from bookmarkableString (Error Domain=NSCocoaErrorDomain Code=257 The file couldn’t be opened because you don’t have permission to view it.) 2022-08-08 15:36:02.070343+1000 HideApp[4842:1468399] [DocumentManager] tried to call delegate -documentBrowser:didPickDocumentURLs: with an empty array of items. Th
Hi, I'm not sure how best to even ask this here... I think it's an Xcode setup problem... I was trying to integrate ads into my game and am getting what seem like a set of network related errors, from Apple and Google components. The issue is not with the Google demo project RewardedVideoExample; Google support says it works for them. Did I perhaps remove some Xcode component I need, or mess up some other setting? The messages I get: 2022-08-06 09:08:51.804890-0700 RewardedVideoExample[24891:803454] [Client] Synchronous remote object proxy returned error: 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.} [[I got a bunch of these!]] 2022-08-06 09:08:51.901250-0700 RewardedVideoExample[24891:803452] - [I-ACS0250
Our app has a network extension (as I've mentioned lots 😄). We do an upgrade by downloading the new package, stopping & removing all of our components except for the network extension, and then installing the new package, which then loads a LaunchAgent causing the containing app to run. (The only difference between a new install and upgrade is the old extension is left running, but not having anything to tell it what to do, just logs and continues.) On some (but not all) upgrades... nothing ends up able to communicate via XPC with the Network Extension. My simplest cli program to talk to it gets Could not create proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named blah was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named bla was invalidated: failed at lookup with error 3 - No such process.} Could not communicate with blah Restarting the extension by doing a kill -9 doesn't fix it; neither does r
i have received a lot of crash log only in iOS16 the crash occured when i called : [[PHImageManager defaultManager] requestImageDataForAsset:asset options:options resultHandler:resultHandler] here is the crash log Exception Type: NSInternalInconsistencyException ExtraInfo: Code Type: arm64 OS Version: iPhone OS 16.0 (20A5328h) Hardware Model: iPhone14,3 Launch Time: 2022-07-30 18:43:25 Date/Time: 2022-07-30 18:49:17 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 (null) Last Exception Backtrace: 0 CoreFoundation 0x00000001cf985dc4 0x1cf97c000 + 40388 1 libobjc.A.dylib 0x00000001c8ddfa68 0x1c8dc8000 + 96872 2 CoreData 0x00000001d56d2358 0x1d56cc000 + 25432 3 CoreData 0x00000001d56fa19c 0x1d56cc000 + 188828 4 CoreData 0x00000001d5755be4 0x1d56cc000 + 564196 5 CoreData 0x00000001d57b0508 0x1d56cc000 + 935176 6 PhotoLibraryServ
Hi, I am attempting to run my app in Xcode 14 beta 4. It requires me to download the watchOS 9 runtime in order to build it, with a prompt which states the following: Download Xcode support for watchOS 9.0? This scheme builds an embedded Apple Watch app. watchOS 9.0 must be installed in order to run the scheme. The first time I tried this, it downloaded but then showed an error which I can't remember. However, the main issue is that now I can no longer try it again. Every time I try to build my app, it shows the same prompt, but this time the download of the watchOS 9 runtime fails every time with the same message: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA Domain: SimDiskImageErrorDomain Code: 5 User Info: { DVTErrorCreationDateKey = 2022-07-31 14:12:11 +0000; unusableErrorDetail = ; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 14.0 (21322) (Build 14A5284g) Timestamp: 2022-07-31T16:12:11+02:00 As a result, I am unable to build my app. If I run the command xcrun simctl runtime list th