Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode 11.1 code coverage data from xccov
Getting same kind of issue for code coverage report.Please provide the solution.Using Xcode 11.2.1.xccov[4508:118225] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverterError: Error Domain=XCCovErrorDomain Code=0 Failed to load coverage report for scheme action 'Testing with scheme' in result bundle UserInfo={NSLocalizedDescription=Failed to load coverage report for scheme action 'Testing with scheme' in result bundle, NSUnderlyingError=0x7fd4f401f3f0 {Error Domain=NSCocoaErrorDomain Code=260 The file “action.xccovreport” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/tmp/action.xccovreport, NSUnderlyingError=0x7fd4f4022980 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}}}
Nov ’19
Reply to Assuming the SIM card is a JavaCard containing a custom applet, is it possible for an app on the phone to send APDU commands to the SIM?
Hello, With iOS13 SDK, CryptoTokenKit is now a Mac and iPhone technology. We can communicate with a smard card thanks to TKSmartCard. I would like to know if we absolutly need a smart card reader for iPhone or if the built-in SIM card reader can communicate with the SIM which is a smart Card?I tried to use the TKSmartCardSlotManager on iOS13 but I have an error message: SmartCard[3354:688268] [smartcard] ctk: connecting to slot registration server (<NSXPCConnection: 0x283c40bd0> connection to service on pid 0 named com.apple.ctkd.slot-client) failed, error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated.}
Topic: Privacy & Security SubTopic: General Tags:
Mar ’20
Reply to Xcode 14 Beta 3 is constantly getting an error with WeatherKit
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:
Aug ’22
Reply to Files App / UIDocumentBrowserViewController - No "Locations" in iPad OS Simulator
Even using the Document Based App template with Xcode 11 and building and running it on the simulator without changing anything all I get is a blank white screen (beta 2 of Xcode and iOS 13) - no document picker. I do have a first gen iPad Pro I put beta 1 and 2 on and on it, I do get the document picker and can open a file. On the iPad, the opened document window appears centered covering about 1/3 the width of the screen rather than covering the entire screen.I've got other issues with my actual app and trying to open a custom document type but I'll start a new thread for that (https://forums.developer.apple.com/message/366848).These errors show up in the console when trying it in the simulator (and I just get the blank white screen):2019-06-20 16:51:33.892103-0400 DocumentBasedApp[21412:8135268] [general] CFLocaleCopyCurrent() failed to look up current locale via 'AppleLocale' and 'AppleLanguages' in user preferences; falling back to locale identifier 'en_US' as the default. Consider checking Console for s
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’19
Reply to Behavior of Bookmark URLs and Files App Recently Deleted – Clarification and Potential Bug
Hello, Thanks for your detailed explanation. ...yes, please file a bug on this and post the bug number back here. Sharing your bug number regarding this topic which I previously filed. FB21561068 https://feedbackassistant.apple.com/feedback/21561068 What's the scenario it's failing at? When determining whether the URL is in “trash” location by using API with the following steps, we are seeing a failure. Precondition: Download the attached sample project (TrashedFileURL.zip) in the feedback which I shared with you in above and build the TrashedFileURL.app from the project inside the zip folder. 1.Create a file in NSDocumentDirectory by TrashedFileURL.app. a.file:///private/var/mobile/Containers/Data/Application/{Application UUID}/Documents/{File UUID}.txt 2.Save the Bookmark of the file created in 1. in TrashedFileURL.app. 3.Delete the file by Files.app. 4.Get URL of the file from the Bookmark which is saved on TrashedFileURL.app. a.URL is referring a filepath which is inside of .Trash directory. file:///priva
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to SwiftData iCloud sync breaks after disabling and re-enabling iCloud
UPDATE: After some time the sync fails again for no obvious reason and here is the error that appears in the console for a Mac app: CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](3599): Finished request ' EF99499F-210C-4DB0-98F9-C10563CBD3D9' with result: storeIdentifier: 01B8CAF5-154B-47B9-81CC-5850C07D2836 success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134417 Request ' EF99499F-210C-4DB0-98F9-C10563CBD3D9' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'. UserInfo={NSLocalizedFailureReason=Request ' EF99499F-210C-4DB0-98F9-C10563CBD3D9' was cancelled because there is already a pending request of type 'NSCloudKitMirroringExportRequest'.} Is this a sync attempt that's being cancelled?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to SwiftData migration error: NSCloudKitMirroringDelegate are not reusable
Thanks for providing the project and steps. I tried them with my iPhone 16 Plus + iOS 18.4 beta 2 (22E5216h), and reproduced the issue. Other than the error message you described, I saw other errors happening at the earlier stage. For the reference of other folks, I pasted the messages here: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1246): : Failed to set up CloudKit integration for store: (URL: file:///var/mobile/Containers/Data/Application/C3C44E20-5618-4837-BB14-21CFF9E45799/Library/Application%20Support/default.store) 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.} ... BUG IN CLIENT OF CLOUDKIT: Registering a handler for a CKScheduler activity identifier that has already been registered (com.apple.coredata.cloudkit.activity.export.E2260BCD-9E87-4C0E-B3F3-68CA9843D246). CoreData+CloudKit: -[NSCloudKi
Mar ’25
Reply to Share security scoped bookmark in app group?
I'm seeing this same issue, attempting to share a Security Scoped Bookmark from a READ-WRITE main app to a READ-ONLY App Extension.Changing the main app to have READ-WRITE file access seems to have broken it for me; I believe it was working fine when both App Group members were set to READ-ONLY file access. I'm going to test that now.Getting the same error:[User Defaults] Couldn't read values in CFPrefsPlistSource<0x6000000eb380> (Domain: group.com.company.MainApp, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsdand Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format.
Topic: Code Signing SubTopic: General Tags:
Oct ’18
Reply to Problem updating to Swift 4.2
Hi OOPer, I followed your approach, but now I am getting this error in the get{ } of dictionaryFetchChangeToken : do { return try NSKeyedUnarchiver.unarchivedObject(ofClass: NSDictionary.self, from: tokenData) as? [String : CKServerChangeToken] } catch { print(error) /* Error Domain=NSCocoaErrorDomain Code=4864 value for key 'NS.objects' was of unexpected class 'CKServerChangeToken'. Allowed classes are '{( NSDictionary )}'. UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'CKServerChangeToken'. Allowed classes are '{( NSDictionary )}'.} */ return nil }In the set { } prior to: guard let data = try? NSKeyedArchiver.archivedData(withRootObject: newValue, requiringSecureCoding: true) else { fatalError(archivedData failed) }I print in the console newValue, and get:po newValue ▿ 1 element ▿ 0 : 2 elements - key : 7A72KACD - value : <CKServerChangeToken: 0x600000546500; data=AQAAAAAAAAAIf/////////9qgapowFdF0b2yxdsEOx/U>Why is this happening?
Oct ’18
Reply to NSSecureUnarchiveFromData is now necessary for transformable attributes but does not work with Core Data CloudKit?
I agree that this seems to be a CloudKit-only bug.Take the Apple sample code at https://developer.apple.com/documentation/coredata/handling_different_data_types_in_core_dataModify as needed to use CloudKit and it breaks with this error:Fatal error: ###persistentContainer: Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=CloudKit integration requires that the value transformers for transformable attributes are available via +[NSValueTransformer valueTransformerForName:], return instances of NSData, and allow reverse transformation:Book: tintColor - Claims to return instances of UIColor}: file /Users/conrodi/Downloads/HandlingDifferentDataTypesInCoreData/CoreDataAttributes/AppDelegate.swift, line 22I've seen the same problem in other CloudKit projects. I think CloudKit is broken for Transformable Core Data attributes.
May ’20
Reply to Crash report help
Hi Luka,Any news on this rejection? We just got the same rejection including the huge pause in the log between these 2 lines.2018-03-01 20:30:27.0217 -0800 0xe9c6 1024 0x0 4406 FrontBoardServices: [FBSScene] [co.reachmobinc.skyball - AirPlay] Created client agent: <UIApplicationSceneClientAgent: 0x10e1216a0> 2018-03-01 20:30:33.7558 -0800 0xea97 1024 0x0 4406 CoreMotion: #Warning Error reading file //private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist: Error Domain=NSCocoaErrorDomain Code=257 The file “com.apple.CoreMotion.plist” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=//private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist, NSUnderlyingError=0x10deda830 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Mar ’18
Reply to How do I use a Thread Network API in IOS
It works in iOS 17.1 using asynchronous code let extPanIdHex = yourExtPanId if let extPadIdData = Data(hexString: extPanIdHex) { let thClient = THClient() Task { let credentials = try await thClient.credentials(forExtendedPANID: extPadIdData) } } Sinchronous code still has some problems This one doesn't work let thClient = THClient() thClient.retrieveCredentials(forExtendedPANID: extPadIdData) { credentials, error in NSLog() } Returned error Client: -[THClient retrievePreferredCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 396 named com.apple.ThreadNetwork.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 396 named com.apple.ThreadNetwork.xpc was invalidated from this process.} But this one oddly works let thClient = THClient() thClient.retrieveCredentials(forExtendedPANID: extPadIdData) { credentials, error in let c = thClient NSLog() }
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to How to access files when running XCTests in Ventura. Currently I receive "unauthorised access" errors.
Hello, I am able to reproduce the issue with access permission on a fresh Xcode project. This is the error I get: The file theFile.json couldn’t be opened because you don’t have permission to view it. Error Domain=NSCocoaErrorDomain Code=257 NSUnderlyingError=0x600000ce6040 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted My setup is Xcode16 and Xcode15.4 in Applications (named Xcode16 and Xcode respectively) macOS Sonoma 14.7 Full disk access is given to Xcode. My original problem appeared in a Swift package structure SwiftPackage -- Sources -- Tests ---- PackageTests ------ Resources -------- theFile.json ------ TheUnitTest.swift // file where I try loading theFile.json If I understand correctly based on the reading material my issue is with one of these. App Sandbox or Mandatory access control (MAC) I am running the tests from Xcode. Any help appreciated. Thank you!
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’24
Reply to Why am i getting an error when trying to load a HEIC photo from PHPickerResult?
Hello! Got it working now by using .itemProvider.loadDataRepresentation(forTypeIdentifier: public.image) and setting configuration.preferredAssetRepresentationMode to .current .itemProvider.loadObject(ofClass: UIImage.self) still does not work as the returned image is always nil for a HEIC file. However, now in beta 6 i don't get the old error message but rather: [claims] Upload preparation for claim 2E4CFF7E-C854-4B56-BBC5-F64CBAE75B5A completed with error: Error Domain=NSCocoaErrorDomain Code=260 The file “version=1&uuid=C6966245-F3C9-4777-8C0B-309FB71EE995&mode=compatible.jpeg” couldn’t be opened because there is no such file. So perhaps related to issue (64630315)? This is only in the simulator as i do not have my beta device with me but will try to verify it later. And yes from what i can see it affects all HEIC images.
Aug ’20
Reply to macOS 15.1 Beta 5: Mac App Store unable to install apps "The file “preflight.pfpkg” doesn’t exist"
Navigating to /Library and creating a folder called AppStore fixed the issue for me. App Store incorrectly complained about not having enough disk space, but the real issue was that the folder being inspected, /Library/AppStore, didn't even exist. [DiskSpaceManager] availableSpaceOnDiskAtPath:/Library/AppStore/086CC570-12A0-4414-98D7-831B563088C0 failed: Error Domain=NSCocoaErrorDomain Code=260 The file “086CC570-12A0-4414-98D7-831B563088C0” couldn’t be opened because there is no such file. UserInfo={NSUnderlyingError=0x89f096790 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}, NSFilePath=/Library/AppStore/086CC570-12A0-4414-98D7-831B563088C0, NSURL=file:///Library/AppStore/086CC570-12A0-4414-98D7-831B563088C0}
Oct ’24