Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

com.apple.telephonyutilities.calservicesdaemon.callstatecontroller error
When attempting to have iOS make a phone call I am getting this error:Error using remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.telephonyutilities.callservicesdaemon.callstatecontroller was invalidated.I create a phone URL with:let phoneLink = tel://5551119999if let url = URL(string: phoneLink) { UIApplication.shared.open(url) { }}Any ideas on how to resolve:Error using remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.telephonyutilities.callservicesdaemon.callstatecontroller was invalidated.I have attempted several different formats for the phone string, URL(string: ) seems pretty lenient and will accept different types of strings and convert them correctly, so I don't think that's the issue.I have added logs so I know my code is only being run once so it isn't an issue of making several calls to UIApplication.shared.open()
0
0
3.7k
May ’19
Reply to AppIntents Parameter requestValue not working in iOS 18 when parameter is not in parameterSummary
The issue still exists on iOS18 and beta 18.1. Entity import AppIntents struct CategoryEntity: AppEntity { var id: UUID var name: String init(name: String) { self.id = UUID() self.name = name } var displayRepresentation: DisplayRepresentation { DisplayRepresentation(title: LocalizedStringResource(stringLiteral: name)) } static let typeDisplayRepresentation: TypeDisplayRepresentation = Category static let defaultQuery = CategoryEntityQuery() } struct CategoryEntityQuery: EntityQuery { func entities(for identifiers: [CategoryEntity.ID]) async throws -> [CategoryEntity] { SampleData.categories } func suggestedEntities() async throws -> [CategoryEntity] { SampleData.categories } } struct SampleData { static var categories: [CategoryEntity] = [ .init(name: Category 1), .init(name: Category 2), .init(name: Category 3), .init(name: Category 4), .init(name: Category 5) ] } Intent import AppIntents struct Intent: AppIntent { static let title: LocalizedStringResource = Intent static var parameterSummary: some Par
Topic: App & System Services SubTopic: General Tags:
Oct ’24
WidgetKit with SwiftData on macOS
Xcode: 16.1 macOS: Sequoia When I run widget preview, I got the following errors CoreData: error: Store failed to load. (type: SQLite, url: file:///Users/user/Library/Group%20Containers/group.com.app.name/Library/Application%20Support/default.store) with error = Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. UserInfo={reason=Unknown failure to access file: 1} with userInfo { reason = Unknown failure to access file: 1; } Unresolved error loading container Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. UserInfo={reason=Unknown failure to access file: 1} with this code let sharedModelContainer: ModelContainer = { let schema = Schema([Company.self, Person.self]) do { return try ModelContainer(for: schema, configurations: [.init(isStoredInMemoryOnly: false)]) } catch { fatalError(error: (error)) } }() Does anyone know why this happens and how to fix this?
5
0
1.1k
Oct ’24
Sporadic Callkit extension get enabled status method issue
Hello, I have sporadically in the field the following issue as a response of the method: CXCallDirectoryManager.sharedInstance.getEnabledStatusForExtension(withIdentifier: ------) Sporadic error: The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process. nserror-code 4099 nserror-domain NSCocoaErrorDomain Has anyone more info about this call kit error? RGDS & Thanks a lot.
0
0
1.3k
Sep ’22
NSPersistentCloudKitContainer Import failed (incomprehensible archive)
I am using NSPersistentCloudKitContainer and I decided to add a property to an entity. I accidentally ran try! container.initializeCloudKitSchema(options: []) while using the production container in Xcode (com.apple.developer.icloud-container-environment) which throw a couple of errors and created some FAKE_ records in my production container. So I changed to my development container and ran the try! container.initializeCloudKitSchema(options: []) and now it succeeded. After that I cleaned up the FAKE_ records scattered in production container but in Xcode when I'm running I now get these logs in the console (and I can't seem to get rid of them): error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:](1398): : Import failed with error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x73, 0x61, 0x6d) UserInfo={NSDebugDescription=*** -[NS
3
0
560
Dec ’24
Access iCloud Documents always shows Error in iOS 13 beta 2
Access iCloud Documents always shows Error in iOS 13 beta 2Error Domain=NSCocoaErrorDomain Code=512 “XXX” couldn’t be copied to “Documents”. UserInfo={NSSourceFilePathErrorKey=/path/to/XXX, NSUserStringVariant=( Copy ), NSDestinationFilePath=/path/to/XXX, NSFilePath=/path/to/XXX, NSUnderlyingError=0x280717f90 {Error Domain=NSPOSIXErrorDomain Code=11 Resource deadlock avoided}}Error Domain=NSCocoaErrorDomain Code=256 Could't open “XXX”。 UserInfo={NSURL=path/to/XXX, NSFilePath=/path/to/XXX, NSUnderlyingError=0x28379ec40 {Error Domain=NSPOSIXErrorDomain Code=11 Resource deadlock avoided}}iCloud Documents works fine in macOS, but not work in iOS devices. Shows the same error when acccessing ubiquity items in iCloud Doucments folder.
2
0
2.1k
Jun ’19
fetchRemoteFileProviderVendorWithIdentifier
Iam trying to implement FileProvider method - (void)importDocumentAtURL:(NSURL *)fileURL toParentItemIdentifier:(NSFileProviderItemIdentifier)parentItemIdentifier completionHandler:(void (^)(NSFileProviderItem importedDocumentItem, NSError *error))completionHandlerI am getting following error generated when trying to upload a folder with multiple items in it. Also my FileProviderItem list getting deleted after this.2018-02-14 17:47:53.598426+0530 Files[8694:412673] [default] [ERROR] connection invalidated in fetchRemoteFileProviderVendorWithIdentifier:remoteObjectInterface:messageInterface:handler:connectionErrorHandler: (protocol: FPXOperationService) 2018-02-14 17:47:53.598634+0530 Files[8694:412673] [default] [ERROR] lost connection while performing action: Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. 2018-02-14 17:47:53.600929+0530 Files[8694:412677] [UI] performOperation(:sourceOperationItems:destinationItem:viewControllerForPresentingErrors:forceBoun
0
0
420
Feb ’18
The model configuration used to open the store is incompatible with the one that was used to create the store.
I have deleted the app and try to run the Xcode project again. How can I remove this error ? Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=134020 The model configuration used to open the store is incompatible with the one that was used to create the store. UserInfo={NSAffectedObjectsErrorKey=
2
0
1.8k
Jul ’23
Link framework in AU app extension
Instead of copying stuff every time I write a new Audio Unit App Extension, I wanted to gather the reusable stuff in a framework.But when I link against it, I get this:2017-04-23 21:29:07.211034+0200 Host[13448:715188] [ops] Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.XXX.YYY.Compressor UserInfo={NSDebugDescription=connection to service named com.XXX.YYY.Compressor}2017-04-23 21:29:07.211192+0200 Host[13448:715113] 86: Failed to open AudioUnit extension: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.XXX.YYY.Compressor UserInfo={NSDebugDescription=connection to service named com.XXX.YYY.Compressor}Does anyone know what the problem is, and how to fix it? If I simply remove the linking, it will run just fine.
9
0
1.2k
Apr ’17
How to test application using Thread networking on MacOS?
I would like to test running some Thread Networking code on my MacOS machine: import ThreadNetwork let client = THClient() let bIsPreferredAvailable = await client.isPreferredAvailable() but I get some errors when trying to create an instance of the THClient class: Client: -[THClient connectToXPCService]_block_invoke - CTCS XPC Client is interrupted. Client: -[THClient getConnectionEntitlementValidity]_block_invoke - clientProxyWithErrorHandler Error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.ThreadNetwork.xpc UserInfo={NSDebugDescription=connection to service named com.apple.ThreadNetwork.xpc} Client: -[THClient init] - XPC Client Init Failed Invalidating XPC connection. Client: -[THClient getConnectionEntitlementValidity]_block_invoke - clientProxyWithErrorHandler Error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.ThreadNetwork.xpc UserInfo={NSDebugDescription=connection to service named com.apple.ThreadNetwork.xpc}
0
0
258
Mar ’25
setAlternateIconName: did anyone manage to make it work?
I'm having issues with the icons not found:Error Domain=NSCocoaErrorDomain Code=4 The file doesn’t exist. UserInfo={NSUnderlyingError=0x650000055f90 {Error Domain=LSApplicationWorkspaceErrorDomain Code=-105 iconName not found in CFBundleAlternateIcons entry UserInfo={NSLocalizedDescription=iconName not found in CFBundleAlternateIcons entry}}}Did anyone manage to make it work? Thanks.
18
0
18k
Jan ’17
XPC Connection error
Hi I am trying to implement XPC between my helper app and my network extension. It is giving me this error when I try to get the remoteObjectProxyWithErrorHandler Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named 9A48B11J6J.com.myapp.app.Extension UserInfo={NSDebugDescription=connection to service on pid 0 named 9A48B11J6J.com.myapp.app.Extension} Why could this be happening?
1
0
2.0k
Jul ’21
Reply to VoIP push notifications may not be received
This customer is using local push in a Wi-Fi Area, And using APNs push out of a Wi-Fi Area(=in a LTE) The following issues were reported in each area. About local push issue Could you tell me mean of following error in a sysdiagnose202408.zip > localpush-sysdiagnose? 2024-08-08 09:42:39.411505+900: nssessionmanager NESMAppPushSession[LocalPushDefaultConfiguration:CF5370FF-878F-4B2E-B39A-8B672E9F678F] failed to report incoming call to CallKit, error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.callkit.networkextension.messagecontrollerhost was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.callkit.networkextension.messagecontrollerhost was invalidated from this process.} Extention called reportIncomingCall at 2024-08-08 09:42:39.406(I confirmed it from my VoIP app log), but iOS doesn't kick my VoIP application. Does above log specify cause of this behaviour? (Not only this, but even for 182 calls from 202
Aug ’24
Error reactivating query when running multiple queries iOS 12 b2
I get the following message in the console when I run consecutive healthkit queries on iOS beta 2.The error does not seem to happen on iOS 11.4.Has anyone else seen this and/or have a solution. The application does not crash and no errors are logged.[query] <HKSampleQuery:0x280656760 deactivated>: Error reactivating query: Error Domain=NSCocoaErrorDomain Code=4099 The connection from pid 0 was invalidated from this process. UserInfo={NSDebugDescription=The connection from pid 0 was invalidated from this process.}This error also appears in the console.[query] <HKStatisticsCollectionQuery:0x280c401a0 deactivated>: Error reactivating query: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.healthd.server was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service named com.apple.healthd.server was interrupted, but the message was sent over an a
0
0
2.3k
Jun ’18
Reply to Issue with PHPicker
Hi Ice, Fabrice, did you find a solution. I tried to add it as delegate to the UIViewController but it's also not working: class UIViewController: UIViewController, PHPickerViewControllerDelegate { ... } If you have a reference implementation can you share it on GitHub? I found the exact same behavior here but they also did not have any solution so far https://stackoverflow.com/questions/64121797/picker-unavailable-there-was-an-error-while-preparing-the-picker-please-try-ag 2020-10-20 19:56:08.386568+0200 Capri[2928:151689] [assertion] Error acquiring assertion: 2020-10-20 19:56:09.034177+0200 Capri[2928:147896] [Picker] Picker failed with error: Error Domain=PXErrorDomain Code=-1 PHPickerViewController did receive interruption. UserInfo={NSDebugDescription=PHPickerViewController did receive interruption.} 2020-10-20 19:56:09.035269+0200 Capri[2928:152165] [lifecycle] [u 05AECDAD-C4FF-4457-97C4-22EB9E4F5D5E:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin interrupted while in use.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’20