Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to SwiftData iCloud sync breaks after disabling and re-enabling iCloud
Well, after a while the other Mac with macOS 15.0.1 stopped syncing too. So the original report is still valid and I can reproduce it on two Macs with 15.0.1 and two iOS devices with iOS 18.1 b7. There is a simple project attached to FB15455847 which fails to sync after disabling / enabling iCloud and adding new items from all devices. Going through sysdiagnose again and following the steps in the article up to Execute the import All previous steps look fine but when it comes to enqueuing the request: default … 14:14:15.841814 … YourCoolApp CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke(1003): : enqueuing request: 2D00459F-8C08-4E9A-BC44-FCE1CD29A550 the enqueue fails with this: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _enqueueRequest:]_block_invoke_2(1030): Failed to enqueue request: 7F8489DA-CBB1-47E7-AE6D-EF6F107B1E29 Error Domain=NSCocoaErrorDomain Code=134417 Request ' 7F8489DA-CBB1-47E7-AE6D-EF6F107B1E29' was cancelled because there
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Unable to reset simulators
I'm unable to reset simulators using the menu or the xcrun simctl tool: == Devices == -- iOS 17.5 -- iPhone SE (3rd generation) (5A06623A-173D-4C96-8DD3-3E9FE39A06F1) (Shutdown) iPhone 15 (iOS 17.5) (F4329E8D-29BB-4EA7-8465-C11A98D04ED7) (Shutdown) -- iOS 18.0 -- iPhone SE (3rd generation) (2DDE8F03-F8E1-4C1B-8E28-CD9B208F3FFA) (Shutdown) iPhone 16 Pro (DE788688-8AC6-40A0-B25C-A56AA423798E) (Shutdown) iPhone 16 Pro Max (1405184C-36A9-40F3-B0D0-4EEB88452883) (Shutdown) iPhone 16 (0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A) (Shutdown) iPhone 16 Plus (95421C27-11A0-4FCF-A889-DAAE8557B271) (Shutdown) == Device Pairs == ~/Library`` ❯ xcrun simctl erase 0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A An error was encountered processing the command (domain=NSCocoaErrorDomain, code=513): “data” couldn’t be moved because you don’t have permission to access “Deleting-8FEDFF47-5B2F-4534-BCA2-036BBE68CE37”. You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get Info. Und
4
0
1.8k
Oct ’24
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 iCloud sync breaks after disabling and re-enabling iCloud
Thanks for the suggestion, @DTS Engineer, I saved the sysdiagnose and filtered it to errors. This is using a basic example project from Xcode. I'm running it on iPhone and Mac and when saving items from iPhone I can see them appear in CloudKit database, but they don't get synced to the Mac. And these are 5 errors that are looping when the Mac is trying to sync (I assume): 1 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1242): : Failed to set up CloudKit integration for store: (URL: file:///Users/admin/Library/Containers/ca.maybelater.SequoiaSync2/Data/Library/Application%20Support/default.store) 2 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2312): - Attempting recovery from error: 3 Error retrieving daemon to get network transfer endpoint: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.cloudd was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDesc
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
NSFileManager contentsOfDirectoryAtPath:error: returns NSFileReadUnknownError with underlying POSIX EINTR
Our backup app (Arq) is encountering random errors for some users on macOS Sequoia. The method [NSFileManager contentsOfDirectoryAtPath:error:] returns nil with an NSError domain NSCocoaErrorDomain, code 256 (NSFileReadUnknownError). The NSError's NSUnderlyingError key is an NSError with domain NSPOSIXErrorDomain and code 4 (EINTR). Sometimes waiting and retrying works fine; sometimes 5 retries still fail. For some users it happens on different directories each time they try to back up. What is causing this? Are we supposed to use a different API to get directory contents these days?
1
0
553
Oct ’24
OSX Subscriptions not working in Sandbox
I am working on the integration of subscriptions in my OSX application. The subscription flow works perfectly but after the purchase it is not creating _MASReceipt folder in Contents folder of application so I cannot send the receipt to apple to verify this purchase. when I checked the logs it showing below error. Anyone who is familiar to this issue please help. Error writing receipt (13401 bytes) using privileged service to /private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321-1C16-4F41-93EA-E27675791E79/d/test.app Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “_MASReceipt” because the volume “9B8BB321-1C16-4F41-93EA-E27675791E79” is read only. UserInfo={NSFileOriginalItemLocationKey=file:///private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321-1C16-4F41-93EA-E27675791E79/d/Advanced%20Uninstall%20Manager.app/Contents/_MASReceipt, NSURL=file:///private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321
0
0
392
Oct ’24
SwiftData iCloud sync breaks after disabling and re-enabling iCloud
A fairly simple ModelContainer: var sharedModelContainer: ModelContainer = { let schema = Schema([ Model1.self, Model2.self, Model3.self ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false, cloudKitDatabase: .automatic) do { let container = try ModelContainer(for: schema, migrationPlan: MigrationPlan.self, configurations: [modelConfiguration]) return container } catch { fatalError(Error: Could not create ModelContainer: (error)) } }() After upgrading to macOS 15 and disabling/enabling iCloud for the app the sync stopped working on Mac. The steps: Go to System Settings > Apple Account > iCloud > Saved to iCloud > See all find the App and disable iCloud. After this synced items are removed from the app and some errors thrown in the console ('..unable to initialize without an iCloud account...') Re-enable the iCloud setting This error appears in the console: CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate resetAfterError:andKeepContainer:](612)
12
0
2.1k
Oct ’24
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
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
[macOS Sequoia] Sudden surge of "failed to retrieve app-scope key" logs and failed URL security scoping
Hello, with macOS Sequoia I've observed a sudden, substantial surge in reports about the Mac App Store version of my app Yoink no longer accepting files dropped to it, with the following message being logged in Console.app: 08:16:05.516307+0200 Yoink ---Yoink Error--- Could not create NSURL bookmark for /Users//Downloads//.txt err: Error Domain=NSCocoaErrorDomain Code=256 Failed to retrieve app-scope key UserInfo={NSDebugDescription=Failed to retrieve app-scope key} The code line that causes this is the following: NSData *bmData = [fileURL bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope includingResourceValuesForKeys:nil relativeToURL:nil error:&err]; Sometimes a relaunch of Yoink, or a restart of the Mac resolves the issue, but only temporarily. Other times, even a restart doesn't work, but running tccutil reset All at.EternalStorms.Yoink in Terminal and then restarting the Mac works (again, temporarily). The trial version and Setapp versions of my app both work as expected, howev
4
0
1.2k
Oct ’24
'You don’t have permission. - The AVPlayerItem instance has failed with the error code 257 and domain "NSCocoaErrorDomain".'
[[PHImageManager defaultManager] requestAVAssetForVideo:asset options:videoOptions resultHandler:^(AVAsset *_Nullable avAsset, AVAudioMix *_Nullable audioMix, NSDictionary *_Nullable info) { if ([avAsset isKindOfClass:[AVURLAsset class]]) { AVURLAsset *urlAsset = (AVURLAsset *)avAsset; NSURL *videoURL = urlAsset.URL; mediaInfo[@path] = videoURL.absoluteString; } else { // Failed to get video asset completion(nil); } }];``` Before iOS 18, i could able access AVAsset video using the method mentioned above with the url, but starting from the iOS 18 version, the following error appears 'You don’t have permission. - The AVPlayerItem instance has failed with the error code 257 and domain NSCocoaErrorDomain.'
2
0
755
Oct ’24
Reply to File transfer issue from iPhone to Watch after iOS 17.5 & WatchOS 10.5 update
Help! How can transfer img file from phone to watch? I meet below problem: Compress: 84317 bytes Save to: ../Application/06FB8B02-39C8-4844-B13B-D3860EE5B564/tmp/compressed_image.jpg Read file scuccess: 84317 bytes -[WCFileStorage persistOutgoingFileTransfer:] error serializing file transfer , transferring: YES> due to Error Domain=NSCocoaErrorDomain Code=4866 Caught exception during archival: This object may only be encoded by an NSXPCCoder.
Topic: App & System Services SubTopic: General Tags:
Oct ’24
Mac OS 15, XCode 15.3
We recently upgrade our OS from Sonoma to Sequoia and have been using Fastlane to generate our ipa(s) However since the upgrade we are facing the following error: 00:26:30 + xcodebuild -exportArchive -exportOptionsPlist /var/folders/sk/_k2v73dd5hscn2mcvcqc43gs69_8bc/T/gym_config20240930-10121-gjvg0h.plist -archivePath /Users/ejeniossvc/jenkins/workers/workspace/local-jenkins-build32/-1449677665/452/build-dir/rqa-EnterpriseDistribution/dist/MY.xcarchive -exportPath /var/folders/sk/_k2v73dd5hscn2mcvcqc43gs69_8bc/T/gym_output20240930-10121-27pj6 -allowProvisioningUpdates -skipPackagePluginValidation -skipMacroValidation CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=xxxxxxxxxxxx 00:26:30 error: Couldn't load -exportOptionsPlist: The data couldn’t be read because it isn’t in the correct format. 00:26:30 00:26:30 Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not a valid property list., underlyingError: Optional(Error Domain=NSCocoaErrorDomain C
1
0
1.2k
Oct ’24
Reply to MacOSX Sonoma 14.7 + XCode 16.0 + iOS 17.6.1:
Thanks for your reply... Here is the information you have requested: Request xcrun devicectl list preferredDDI Response Host CoreDevice version: 397.21 The DDI used for the iOS platform: • hostDDI: file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg ▿ ddiMetadata: • buildUpdate: 16A242d • contentIsCompatible: true • coreDeviceVersionChecksIncludeDevelopmentRevision: true • developmentRevision: 0 • enforcingCoreDeviceVersionChecks: true • platform: iOS ▿ projectMetadata: • Citrine-94 • CoreDevice-397.21 • DTDeveloperDiskImageSupport-14.0.0 • DTOCMock-23002 • GPUToolsDevice_DDI-300.21 • JetsamProperties-2205 • LiveExecutionResultsLogger-20002 • Mercury-54 • XCTest-23196 • isUsable: true • variant: external The DDI used for the tvOS platform: • hostDDI: file:///Library/Developer/DeveloperDiskImages/tvOS_DDI.dmg ▿ ddiMetadata: • buildUpdate: 16A242d • contentIsCompatible: true • coreDeviceVersionChecksIncludeDevelopmentRevision: true • developmentRevision: 0 • enforcingCoreDeviceVersionChecks: true • platfo
Sep ’24