Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Strange runtime error when using StoreKit Test API
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
1
0
1.6k
Jun ’22
Changing my entities in CoreData gave me a NSCocoaErrorDomain Code=134140 and I can't go back
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
1
0
1.6k
Jun ’22
SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Hello :) My iOS project does not work with SwiftUI Preview in Xcode 14 beta. The project builds and runs fine, but Preview never works. The error message is as follows. HumanReadableSwiftError SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x000060002ac3e880):'AppCenterCrashes'>) I do use the AppCenterCrashes dependency in my project. But I'm not sure if this error message is accurate, because sometimes it reports other packages. After I executed Generate Report, I found the following error in SerializationErrors.txt. Error Domain=NSCocoaErrorDomain Code=516 “LogCaffeineIntent.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Users/gong/Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/HiCoffee.build/Debug-iphonesimulator/IntentsExtension.build/DerivedSources/IntentDefinitionGenerated/Intents/LogCaffeineIntent.swift, NSUserStringVariant=( Link ), NS
71
0
29k
Jun ’22
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
On-demand resources suddenly stopped working?
So yesterday I noticed that some of images in my app stopped appearing. All of them were placed in the on-demand resources, that is I've assigned tags to them. Up until yesterday they were working correctly but since then whenever I try to load the assets I get the error message saying: Error Domain=NSCocoaErrorDomain Code=4099 Connection invalidated to streaming unzip service. My code for loading the asset is pretty straightforward and it was working perfectly fine before: let resourceRequest = NSBundleResourceRequest(tags: [vinyl]) defer { resourceRequest.endAccessingResources() } do { if await !resourceRequest.conditionallyBeginAccessingResources() { try await resourceRequest.beginAccessingResources() } } catch { assertionFailure(Vinyl image was not available, error: (error)) } I'm obviously using it in asynchronous context, but the old method which used completion handler gives me the same error. Has anyone encountered this issue as well? I just updated my devices to iOS 15.5, maybe that update b
6
0
3.7k
Jun ’22
Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent"
Hi devs!!! Calling createCredentialRegistrationRequestWithChallenge returns the following error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent UserInfo={NSDebugDescription=connection to service named com.apple.AuthenticationServicesCore.AuthenticationServicesAgent} What can be the potential reason?
3
0
2.5k
May ’22
Reply to Error Domain=NSCocoaErrorDomain Code=4099
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
May ’22
is XPC from app to CMIOExtension possible?
I built an app which hosts a CMIOExtension. The app works, and it can activate the extension. The extension loads in e.g. Photo Booth and shows the expected video (a white horizontal line which moves down the picture). I have a couple of questions about this though. The sample Camera Extension is built with a CMIOExtension dictionary with just one entry, CMIOExtensionMachServiceName which is $(TeamIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER) This Mach service name won't work though. When attempting to activate the extension, sysextd says that the extensions has an invalid mach service name or is not signed, the value must be prefixed with one of the App Groups in the entitlement. So in order to get the sample extension to activate from my app, I have to change its CMIOExtensionMachServiceName to .com.mycompany.my-app-group. Is this to be expected? The template CMIOExtension generates its own video using a timer. My app is intended to capture video from a source, filter that video, then feed it to the CMIOExt
19
0
9.1k
May ’22
safari-web-extension-converter Error Code=642 & Code=30
Error instantiating template in Xcode: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “macOS (Extension)” because the volume is read only. UserInfo={NSFilePath=/YOU CAN READ IT Dyslexia won't stop you!/macOS (Extension), NSUnderlyingError=0x6000009a4270 {Error Domain=NSPOSIXErrorDomain Code=30 Read-only file system}}. Could not create project.
0
0
570
May ’22
Reply to Error Domain=NSCocoaErrorDomain Code=4099
Same issue Xcode 13.3.1, IOS 15.3 [8086:326074] [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.}
May ’22
Reply to CloudKit + NSPersistentCloudKitContainer: CKError "Service Unavailable" (6/2022); "Request failed with http status code 503"
Today I have different errors! CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1106): : Failed to set up CloudKit integration for store: (URL: file:///var/mobile/Containers/Data/Application/7C41756B-0596-4010-B35D-3F98B27F83A7/Library/Application%20Support/com.grantdavisinteractive.Mimir/cloud-library.sqlite) Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2115): - Attempting recovery from error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:]_block_invoke(2134)
May ’22
Thread THClient APIs fails with error, "The connection to service with pid 36689 named com.apple.ThreadNetwork.xpc was invalidated from this process."
iOS version : 15.4.1 xcode : 13.3.1 my code: let threadClient = THClient() threadClient.retrieveAllCredentials { credentials, error in if let credentials = credentials { print( count = (credentials.count)) credentials.forEach { credential in print( networkKey = (String(describing: credential.networkKey))) print( extendedPANID = (String(describing: credential.extendedPANID))) print( borderAgentID = (String(describing: credential.borderAgentID))) print( activeOperationalDataSet = (String(describing: credential.activeOperationalDataSet))) print( networkKey = (String(describing: credential.networkKey))) print( pskc = (String(describing: credential.pskc))) print( channel = (credential.channel)) print( panID = (String(describing: credential.panID))) print( creationDate = (String(describing: credential.creationDate))) print( lastModificationDate = (String(describing: credential.lastModificationDate))) } } } result: 2022-05-09 18:04:29.864501+0900 [36766:2122724] Client: -[THClient connectToXPCService] - connectToXPC
1
0
1.2k
May ’22
Reply to Debugging and fixing rPaths for GateKeeper?
PS: These are the log entries that seem relevant. The last one is about an unresolved rpath. 2022-05-01 08:48:26.907551+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/, NSFilePath=/Volumes/Nodelab/nodelab.app/Contents/PlugIns, NSUnderlyingError=0x7fdca7184270 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} 2022-05-01 09:27:56.604669+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/MacOS/PySide6/Qt/lib/QtWebEngineCore.framework/Helpers/QtWebEngi
Topic: Code Signing SubTopic: General Tags:
May ’22
Timeout during initialization of CloudKit schema
Hi everybody, I am having trouble further initializing my CloudKit schema with an NSPersistentCloudKitContainer and store descriptions for booth public and private database scopes. The execution environment is macOS 12.3.1. container.newBackgroundContext().perform { do { print(Starting to initialize CloudKit Schema...) try container.initializeCloudKitSchema(options: []) print(CloudKit Schema succesfully initialized.) } catch { print(error) } } After about 30 seconds, the above code block goes into the catch statement with the following error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=Failed to initialize CloudKit schema because the requests timed out (a 30s wait failed).} During that 30 seconds of my app trying to init the schema, I noticed that the CloudKit Console was also having trouble communicating correctly with the container: When I reload the CloudKit Console after the init got into the 30s timeout. The Console has no more troub
2
0
1.4k
Apr ’22
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