Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to fileManager.copyItem with overwrite?
The error I am getting is: Large file found, copy failed - Error Domain=NSCocoaErrorDomain Code=516 “.DS_Store” couldn’t be copied to “Audio” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/To_Box/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUnderlyingError=0x60000195ce10 {Error Domain=NSPOSIXErrorDomain Code=17 File exists}} But the output location is empty when I start the copy. The paths are very similar, but notice the To_Box in the destination path. I should also note these are large video project directories. This one is 5.3TB. I don't see the problem on small test directories. I made a small project https://github.com/ehemmete/CopyFolder that shows the same problem on
Topic: App & System Services SubTopic: General Tags:
Oct ’23
Reply to SCSensitivityAnalyzer always returns a result of false
just as a followup in case anyone is still wondering.. SCSensitivityAnalyzer does seem to be working as intended now on mac (incl in widgets & the widget simulator), and on device on iOS.. however it doesn't work in the iOS simulator, which may be expected? tho i can't see anything about it in the docs at any rate, the simulator errors i get look like: Error fetching CommSafety configuration from ScreenTime: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.ScreenTimeAgent.communication UserInfo={NSDebugDescription=connection to service named com.apple.ScreenTimeAgent.communication} and Failed to get contents of directory: /Users/bloop/Library/Developer/CoreSimulator/Devices/7E385B3A-40AF-4CF1-AA9E-723BB46141E7/data/Library/Biome/streams/restricted/SensitiveContentAnalysis.MediaAnalysis/local, error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.biome.access.user was invalidated from this process. UserInfo={NSDebugDescri
Topic: App & System Services SubTopic: General Tags:
Oct ’23
SwiftData Error: Failed to find any currently loaded container for Deck)
Problem I was using swift data on my project in what I thought was a not very complex data model and then after I added the delete function it gave me this error and crashed the simulator every time. DataModel import Foundation import SwiftData @Model class Deck { var name: String var cards: String init(name: String, cards: String) { self.name = name self.cards = cards } } And this is where I was fetching the data. DeckView import SwiftUI import SwiftData struct DeckView: View { @State private var showingSheet = false @Environment(.modelContext) var modelContext @Query var decks: [Deck] var body: some View { NavigationStack { ZStack { Color.background .ignoresSafeArea() List { ForEach(decks) { deck in HStack { VStack(alignment: .leading) { Text(deck.name) Text(deck.cards) } Spacer() Button { // Action } label: { Image(systemName: ellipsis.circle) } } } .onDelete(perform: deleteDeck) } .scrollContentBackground(.hidden) } .navigationTitle(Decks) .navigationBarTitleDisplayMode(.automatic) .toolbar { ToolbarItem(
2
0
1.5k
Oct ’23
How to fix NSCloudKitMirroringDelegate unhandled exception after faulty model change
I have a complex data model in development mode, with a large amount of data, using CoreData with CloudKit sync. All worked fine, syncing from a Mac to an iPad Pro, until I made some unwise changes to the model and a couple of relationships. I should have known, but was hurrying and not thinking clearly. The App is not on the App Store: it's for my own use. Records are now not synced to CloudKit: _error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:]- (1371): : Import failed with error: Error Domain=NSCocoaErrorDomain Code=134421 Import failed because applying the accumulated changes hit an unhandled exception. UserInfo={NSLocalizedFailureReason=Import failed because applying the accumulated changes hit an unhandled exception., NSUnderlyingException=* -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]}_** It seems that there's a queue of faulty (non-matching) updates, which I can find no way of purging. Perhaps I could d
4
0
1.7k
Sep ’23
Reply to Xcode 15 can't install iOS 17 platform simulator
Also running into this, I have a handful of other weird things too like when I go to uninstall listed runtimes I get: ❯ xcrun simctl runtime delete 21J353 An error was encountered processing the command (domain=com.apple.CoreSimulator.simdiskimaged.SimDiskImageError, code=18): Cannot stage disk image or bundle for delete: 4A9A3A5B-03C2-4A4F-AF9B-A237B7A500BE Underlying error (domain=NSCocoaErrorDomain, code=4): “4A9A3A5B-03C2-4A4F-AF9B-A237B7A500BE.dmg” couldn’t be moved to “NSIRD_simdiskimaged_rClQ89” because either the former doesn’t exist, or the folder containing the latter doesn’t exist. The file doesn’t exist. Almost feels like my CoreSimulator directories got corrupted and now I can't recover.
Sep ’23
Xcode 15's "Replace Container" feature replaces the container with incorrect permissions?
I recently updated to Xcode 15.0 and seem to be encountering permissions related errors after using the Replace Container function to replace an app container. Similarly, editing the current run scheme and choosing a new App Data container fails with an identical error. It seems like the Documents directory and other similar directories are blocked from being able to write. Here is an example of what appears in the log after replacing the container: Failed to create directory /var/mobile/Containers/Data/Application/A3C32E7A-34F3-4C69-B037-478027F2A4AC/Library/Preferences because of 13. Couldn't write values for keys ( /google/measurement/app_instance_id ) in CFPrefsPlistSource<0x280a82760> (Domain: com.google.gmp.measurement, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Directory needed os_unix.c:47395: (13) lstat(/private/var/mobile/Containers/Data/Application/A3C32E7A-34F3-4C69-B037-478027F2A4AC/Documents) - Permission denied os_unix.c:47395: (13) lstat(/
30
0
11k
Sep ’23
SwiftData errors when trying to insert multiple objects
I have two models: @Model class User: Codable { @Attribute(.unique) var username: String @Attribute(.unique) var email: String var firstName: String var lastName: String @Attribute(.unique) var id: Int @Relationship(inverse: House.members) var houses: [House] = [] init(username: String, email: String, firstName: String, lastName: String, id: Int) { self.username = username self.email = email self.firstName = firstName self.lastName = lastName self.id = id } enum CodingKeys: String, CodingKey { case username case email case firstName = first_name case lastName = last_name case id } required init(from decoder: Decoder) throws { ... } func encode(to encoder: Encoder) throws { ... } } and @Model class House: Codable { var name: String var city: String var address: String @Attribute(.unique) var id: Int var ownerID: Int var members: [User] init(name: String, city: String, address: String, id: Int, ownerID: Int, members: [User]) { self.name = name self.city = city self.address = address self.id = id self.ownerID =
3
0
1.9k
Sep ’23
SwiftData Crashes After Modifying The VersionedSchema More Than Once
I've been stuck on this one for quite a while now, and I'm starting to become more and more convinced this is an issue with Xcode 15 Beta RC. Just to give you some context I seem to be getting the following crash after modifying my schema (adding new properties) for the the second time. Below is the crash that is occurring on my device & simulator. Unresolved error loading container Error Domain=NSCocoaErrorDomain Code=134130 Persistent store migration failed, missing source managed object model. UserInfo={URL=file:///Users/xxxxx/Library/Developer/CoreSimulator/Devices/23B8CDDD-CC5F-4A1C-B0F4-CF89C77B7ECF/data/Containers/Data/Application/235A14D7-6492-439F-BB4D-B18498D80970/Library/Application%20Support/default.store, metadata={ NSPersistenceFrameworkVersion = 1327; NSStoreModelVersionChecksumKey = dia3s8Q2+lqw669j9+RcPLQ+06yu0x6BBTZ4cXoQ1os=; NSStoreModelVersionHashes = { Category = {length = 32, bytes = 0x187754bb 36c51a62 85ede16f 4b2a3912 ... 57326030 2de7ef77 }; Item = {length = 32, bytes =
4
0
2.8k
Sep ’23
[PHImageManager requestImage] crash only iOS17.0
Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 (null) Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0xed5e0 __exceptionPreprocess 1 libobjc.A.dylib 0x2bc00 objc_exception_throw 2 CoreData 0x129c8 _PFFaultHandlerLookupRow 3 CoreData 0x11d60 _PF_FulfillDeferredFault 4 CoreData 0x11c58 _pvfk_header 5 CoreData 0x98e64 _sharedIMPL_pvfk_core_c 6 PhotoLibraryServices 0x6d8b0 -[PLInternalResource orientation] 7 PhotoLibraryServices 0x6d7bc -[PLInternalResource orientedWidth] 8 Photos 0x147e74 ___presentFullResourceAtIndex_block_invoke 9 PhotoLibraryServices 0x174ee4 __53-[PLManagedObjectContext _directPerformBlockAndWait:]_block_invoke 10 CoreData 0x208ec developerSubmittedBlockToNSManagedObjectContextPerform 11 libdispatch.dylib 0x4300 _dispatch_client_callout 12 libdispatch.dylib 0x136b4 _dispatch_lane_barrier_sync_invoke_and_complete 13 CoreData 0x207f8 -[NSManagedObjectContext performBlockAndW
6
0
2.1k
Sep ’23
Reply to Issues getting SwiftData to work with DocumentGroup
DocumentGroup is still broken for me even on the RC beta build. I see the following error: Failed to initialize CloudKit metadata: Error Domain=NSCocoaErrorDomain Code=134407 Request 'FB45661A-3619-4593-A7D1-2E164C9C2667' was cancelled because the store was removed from the coordinator. This doesn't appear on WindowGroup.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’23
Send Local Notifications from Endpoint Security Extension
Is it possible to send Local Notifications from Endpoint Security Extension ? When I was calling below block of code immediately after confirming that process was started center requestAuthorizationWithOptions:options completionHandler:^(BOOL granted, NSError * _Nullable error) center addNotificationRequest:request withCompletionHandler:^(NSError * _Nullable error) getting below error Requesting authorization failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process.} Adding notification request failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescript
0
0
472
Sep ’23
Reply to PHPicker fails to load RAW images
I'm also seeing a similar behavior when trying to load the file representation using public.item UTI for Live Photos that were just taken or were selected and probably downloaded from icloud. If I try again the same images on a second or third time they seem to be loading just fine. If I use public.image it works just fine, note that it is on iOS 17 public beta. Exception: Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type public.item UserInfo={NSLocalizedDescription=Cannot load representation of type public.item, NSUnderlyingError=0x281b031e0 {Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x281a32bb0 {Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 1217 on anonymousListener or serviceListener UserInfo={NSDebugDescription=connection from pid 1217 on anonymousListener or serviceListener}}}}}
Sep ’23
Notarize: The staple and validate action failed! Error 73
I'm trying to staple a validation ticket to an exe file that is already notarized. The process ended with the following error: Downloaded ticket has been stored at file:///var/folders/bj/ry08v0694972s03cswkq5md80000gq/T/7f1a34f0-8628-4157-92b0-b59cebe70951.ticket. Could not remove existing ticket from file:///Users/efi-admin/Downloads/ActualSignedFile/Contents/CodeResources because an error occurred. Error Domain=NSCocoaErrorDomain Code=512 “CodeResources” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/Users/efi-admin/Downloads/ActualSignedFile/Contents/CodeResources, NSUnderlyingError=0x600000151e90 {Error Domain=NSPOSIXErrorDomain Code=20 Not a directory}} The staple and validate action failed! Error 73. The above was captured using the verbose option of the cmd... Among the response, I can see the ticket: fields = { signedTicket = { type = BYTES; value = czhjaAEAAADxBQAALQAAADCCBe0wggL/MIICpKADAgECAghWLFU2G59vVTAKBggqhkjOPQQDAjByMSYwJAYDVQQDDB1BcHBsZSBTeXN0ZW0gSW50ZWdyY
7
0
1.7k
Sep ’23
Xcode 15 beta 8 can't connect to iOS 17 beta 6
When I try and deploy my app to my iPhone 12 running iOS17 Beta 6 with Xcode beta 8 I get : Previous preparation error: The developer disk image could not be mounted on this device. CoreDevice_DDI_Staging This has been happening since beta 5 I think, worked on beta 3 for sure. Yes, I have reinstalled and rebooted everything multiple times, turned developer mode off and on along with pretty much every other incantation. I have tried to manually create the directory CoreDevice_DDI_Staging_502 in /private/var/tmp/ as the recovery suggestion kind of implies but get permission denied. The full error is: the developer disk image could not be mounted on this device. Domain: com.apple.dt.CoreDeviceError Code: 12040 Failure Reason: You don’t have permission to save the file “my device id” in the folder “CoreDevice_DDI_Staging_502”. User Info: { DVTErrorCreationDateKey = 2023-08-31 21:45:03 +0000; DeviceIdentifier = xxxxx; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; NSURL = file:///Users/xxx/Library/Deve
4
0
2.5k
Aug ’23
Localizable.xcstrings FAILS on iOS 17 beta 7
I’ve been working with Localizable, and I’m loving it. Unfortunately, upon upgrading to beta 7 this morning, it no longer works on my dev iPhone: Unable to load .strings file: CFBundle 0x281350380 (executable, loaded) / Localizable: Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character b at line 1 UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Conversion of string failed. UserInfo={NSDebugDescription=Conversion of string failed.}} I’ve investigated this ‘unexpected character b’ - and cannot figure out what this message is talking about. What I see on the screen is the key, instead of the localized string. Using Xcode 15.0 beta 7 (15A5229h) and iOS 17.0 beta 7 (21A5319a) What makes this completely befuddling is that the Localizable DOES still work on my M1 iPad (also running today’s iPadOS 17 beta 7 - as well as on my older 2015 iPad running iOS 16 - and even on my iPhone 7 running iOS 15.
1
0
1.6k
Aug ’23