Software Update just hangs on No keys matching () available for download if we run it as root. neither returning success nor failure on MacOS Monterey (OS Version 12.0.1) SUOSUNotificationManagerController having XPC issue saying No Such Process. faced this issue in normal XPC connection also. root process trying to connect user process throws the same error when it will be fixed. is there any work around for root to install via software update log trace: ues-mac-testl softwareupdate[2710]: SUOSUNotificationManagerController: Error connecting to notification manager service to set authorization: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process.}
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi, I’m using network system extension and I wanted to launch the containing app from the extension. I'm using NSWorkspace.shared.openApplication(at applicationURL: URL, configuration: NSWorkspace.OpenConfiguration) async throws -> NSRunningApplication and sometimes it works but sometimes I gets those errors: -[_LSRemoteOpenCall invokeWithError:]: XPC error encountered talking to CSUIA: { count = 1, transaction: 0, voucher = 0x0, contents = XPCErrorDescription => { length = 18, contents = Connection invalid } } error Optional(Error Domain=NSCocoaErrorDomain Code=256 The application “APP_NAME” could not be launched because a miscellaneous error occurred. UserInfo={NSURL=file:/Applications/APP_NAME.app/, NSLocalizedDescription=The application “APP_NAME” could not be launched because a miscellaneous error occurred., NSUnderlyingError=0x7fcf005634d0 {Error Domain=NSOSStatusErrorDomain Code=-10822 kLSServerCommunicationErr: The server process (registration and recent items) is not available UserIn
Ok, it turned out that is was not a bug in AVAudioUnitSampler - running the same code on macOS gave some additional hints... unable to obtain configuration from file:///Library/Preferences/com.apple.ViewBridge.plist due to Error Domain=NSCocoaErrorDomain Code=256 (null) UserInfo={NSFilePath=/Library/Preferences/com.apple.ViewBridge.plist, NSUnderlyingError=0x600003a9e610 {Error Domain=NSPOSIXErrorDomain Code=24 Too many open files}} ...with the second sampler, the app exceeded the soft limit for currently opened files per process (=256). The crashes afterwards were caused by failing file handles in other parts of the app. A workaround can be found at https://stackoverflow.com/a/62074374/1993349 ... done.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
FileRepresentation.importing's 'receivedData' is already deleted. when I use. import CoreTransferable struct Movie: Transferable { let url: URL static var transferRepresentation: some TransferRepresentation { FileRepresentation(contentType: .movie) { movie in SentTransferredFile(movie.url) } importing: { receivedData in let fileName = receivedData.file.lastPathComponent let copy: URL = FileManager.default.temporaryDirectory.appendingPathComponent(fileName) try FileManager.default.copyItem(at: receivedData.file, to: copy) return .init(url: copy) } } } Error Domain=NSCocoaErrorDomain Code=260 The file “IMG_0458.mov” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/D2E2AF9F-E879-4792-89CE-E7FB6B1B8234/tmp/.com.apple.Foundation.NSItemProvider.flbzCW/IMG_0458.mov, NSUnderlyingError=0x28389eeb0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I have upgraded from macOS 12.5.4 to macOS 13 Beta 1. Haven't done anything odd. I am attempting to use WeatherKit but I am getting a lot of (odd) errors: The sample can't access the ~/Library/Weather/ folder despite it being set to read for users, others and group. (I've since switched to read and write for all, but no dice). Lots of other odd errors. 2022-06-11 22:52:26.720487+0100 PlayWithWeatherKit[16282:277975] [WeatherService] Couldn't get access to the /Library/Weather directory for the geocode Store. error=Error Domain=NSCocoaErrorDomain Code=257 The file “Weather” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=( Folder ), NSURL=file:///Users/tarasis/Library/Weather, NSFilePath=/Users/tarasis/Library/Weather, NSUnderlyingError=0x6000013d4b70 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} PlayWithWeatherKit[16282:277975] [] networkd_settings_read_from_file Sandbox is preventing this process from reading networkd settings file a
I'm getting errors when I use NSKeyedArchiver and NSKeyedUnarchiver that works with iOS 15.5 but not with iOS 12.4 nor iOS 12.5.5. I have tried combinations of using devices and simulators. The error message appears in the Xcode debug window when the catch scope handles an error that occurs when the following statement executes: try NSKeyedUnarchiver.unarchivedObject(ofClass: CNGroup.self, from: dataToUnarchive) Here is what prints in the Xcode debug window for Error.localizedDescription: The data couldn’t be read because it isn’t in the correct format. Here is what prints in the Xcode debug window when only the Error object is put in the print statement parentheses: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x62, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4) UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x62, 0x0, 0x0, 0
Interesting. I get a bunch of errors none of them are a 401 error 2022-06-11 22:24:35.338896+0100 PlayWithWeatherKit[15269:254812] [WeatherService] Couldn't get access to the /Library/Weather directory for the geocode Store. error=Error Domain=NSCocoaErrorDomain Code=257 The file “Weather” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=(Folder ), NSURL=file:///Users/tarasis/Library/Weather, NSFilePath=/Users/tarasis/Library/Weather, NSUnderlyingError=0x600000bcf9f0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} and networkd_settings_read_from_file Sandbox is preventing this process from reading networkd settings file at /Library/Preferences/com.apple.networkd.plist, please add an exception. and [WeatherDataService] Failed to create the weather data store, error=cantOpen(message: authorization denied, location: TeaDB.Database.Location.path(/Users/tarasis/Library/Weather/weather-data.db)) and [] nehelper sent invalid response: { count
Topic:
App & System Services
SubTopic:
General
Tags:
We are trying to integrate StoreKit Testing into our unit and UI testing flow on Mac and iOS. The basic idea is bypassing the paywall so that the specific test can do its job without interference. In our subclass of XCUIApplication, we've overridden the launch method to simulate the purchase of the app's full version: import XCTest import StoreKitTest class OurCustomApp : XCUIApplication { private var _storeKitSession : AnyObject? = nil override func launch() { super.launch() do { _storeKitSession = try SKTestSession(configurationFileNamed: iap_desktop) (_storeKitSession as! SKTestSession).disableDialogs = true (_storeKitSession as! SKTestSession).clearTransactions() try (_storeKitSession as! SKTestSession).buyProduct(productIdentifier: ) } catch { XCTFail(Can't setup StoreKit test. (error)) } } } However, we faced a weird runtime issue: UITests-Runner[53387:25779369] Error in XPC connection when checking Xcode Test app: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.ap
Updated info below, in bold. I went and changed one of the entities in the CoreData of my app. For all my entities I have them selected as Manual for Codegen So I deleted all four files (for two entities), cleaned the build folder, regenerated the CoreData files with Editor -> Create NSManagedObject Subclass. Now every time I run the app I get a fatalError in the following code in the AppDelegate: lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: “Invoice_Gen) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { fatalError(Unresolved error (error), (error.userInfo)) } }) return container }() The error code being [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134140) Even if I remove the files for the CoreData entities, and comment out anything related to them code wise, I will still get this crash. If someone has any idea of
Here is a simple app to demonstrate problem: import SwiftUI import AVFoundation struct ContentView: View { var synthVM = SpeakerViewModel() var body: some View { VStack { Text(Hello, world!) .padding() HStack { Button(Speak) { if self.synthVM.speaker.isPaused { self.synthVM.speaker.continueSpeaking() } else { self.synthVM.speak(text: Привет на корабле! Кто это пришел к нам, чтобы посмотреть на это произведение?) } } Button(Pause) { if self.synthVM.speaker.isSpeaking { self.synthVM.speaker.pauseSpeaking(at: .word) } } Button(Stop) { self.synthVM.speaker.stopSpeaking(at: .word) } } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } class SpeakerViewModel: NSObject { var speaker = AVSpeechSynthesizer() override init() { super.init() self.speaker.delegate = self } func speak(text: String) { let utterance = AVSpeechUtterance(string: text) utterance.voice = AVSpeechSynthesisVoice(language: ru) speaker.speak(utterance) } } extension SpeakerViewModel: AVSpeechSynth
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
The issue exists in Xcode 13.4, iOS 15.5. App crashes after launch with following error SecTaskLoadEntitlements failed error=22 cs_flags=20000200, pid=10574 SecTaskCopyDebugDescription: ProjectName . . . [Client] Updating selectors failed with: 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.} [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.} Also the cra
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
How should my code be modified to ensure that when an exception happens at the Core Data layer when adding a new item, that SwiftUI does NOT continue to show a new item? Background: When I run the below code I get an exception when adding a new item doing the context.save(), HOWEVER whilst the new item request really failed (did not save to Core Data), the UI does show a new item. It is as if the lists variable in the @FetchRequest line is not behaving dynamically. Question - How do I fix code so that the application works properly?Code: import SwiftUI struct ContentView: View { @Environment(.managedObjectContext) var context @FetchRequest(fetchRequest: List.allListFetchRequest()) var lists: FetchedResults private func addListItem() { let newList = List(context: context) newList.id = 1 newList.title = Testing 123 do { try context.save() } catch let e as NSError { print(Could not save new List. (e.debugDescription)) return } } var body: some View { NavigationView { VStack { ForEach(lists) { list in Text(List =
NSArray *tableau = [fm contentsOfDirectoryAtURL:url .... I get in return: Error Domain=NSCocoaErrorDomain Code=257 The file “*************” couldn’t be opened because you don’t have permission to view it. UserInfo={NSURL=file:///Users/gerardMonNom, NSFilePath=/Users/gerardMonNom, NSUnderlyingError=0x6000033788d0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} How do we fix this anomaly?
We implemented the new PHPicker and have run into an issue we haven't been able to replicate on our own devices but see a lot of users running into it. The problem is an error after getting the PHPickerResults and trying to get the UIImages. Because the user can select several images at once, what we do is get the results and iterate over each itemProvider object. I'm following apple's guidance and checking if itemProvider canLoadObjectOfClass:UIImage.class, before executing itemProvider loadObjectOfClass:UIImage.class. However we are getting hundreds of reports of users where this last method returns an error. Firstly, this is how we configure our PHPickerViewController: PHPickerConfiguration *configuration = [[PHPickerConfiguration alloc] init]; configuration.selectionLimit = self.pictureSelectionLimit; configuration.filter = PHPickerFilter.imagesFilter; configuration.preferredAssetRepresentationMode = PHPickerConfigurationAssetRepresentationModeCurrent; PHPickerViewController *pickerViewController = [[PHPi