Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Document Based SwiftData support in Immersive Scene?
I notice that once I open a second ModelContainer on same URL as the document that's open in the DocumentGroup, then all saves to the DocumentGroup's model container fail with: Error saving the database 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= (entity: Blah; id: 0x60000026e0c0 ; data: { id = 91E56F61-CFE0-42E4-9EA9-EAD4256B64AB; imageData = nil; name = Untitled Blah; })} I will assume that this is just not a good idea right now, and conclude that Document based SwiftData apps do not work well with multiple scenes.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Selecting which data models sync with iCloud SwiftData
NSStoreModelVersionHashesDigest = DJ2WYYwgxZ0ODDxWSCU/qENUGNTyxR4QfG8zLErpzQrvMoo9u19pSVjC7jzbUm0QLzGhFtKR3E0LRQvO9u6WXQ==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( 1.0.0 ); NSStoreType = SQLite; NSStoreUUID = FC5CF467-5684-4C95-8C0E-49698D0A8648; _NSAutoVacuumLevel = 2; }, reason=The model used to open the store is incompatible with the one used to create the store}}, reason=Failed to open the store} with userInfo { NSUnderlyingError = Error Domain=NSCocoaErrorDomain Code=134100 The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store. UserInfo={metadata={n NSPersistenceFrameworkVersion = 1337;n NSStoreModelVersionChecksumKey = /mv+MJ232k6TtgLWF/6u6Xvt1IOs/ezBTew3e5ULc+E=;n NSStoreModelVersionHashes = {n CloudSyncModelA = {length = 32, bytes = 0x3987992e 6ee680c6 e8bb9511 266ac8b2 ... 97ac3feb daf3a616 };n CloudSyncModelB = {length = 32, bytes = 0xd2664c00 d176a085 d0cb6b7f 7fdd3661 ..
Nov ’23
Reply to Selecting which data models sync with iCloud SwiftData
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134100) CoreData: error: userInfo: CoreData: error: metadata : { NSPersistenceFrameworkVersion = 1337; NSStoreModelVersionChecksumKey = /mv+MJ232k6TtgLWF/6u6Xvt1IOs/ezBTew3e5ULc+E=; NSStoreModelVersionHashes = { CloudSyncModelA = {length = 32, bytes = 0x3987992e 6ee680c6 e8bb9511 266ac8b2 ... 97ac3feb daf3a616 }; CloudSyncModelB = {length = 32, bytes = 0xd2664c00 d176a085 d0cb6b7f 7fdd3661 ... 60f1b0b2 a9d0444e }; CloudSyncModelC = {length = 32, bytes = 0xca91943c 6571aedb 07473eaa 154207d1 ... 66bb77c1 6283438e }; }; NSStoreModelVersionHashesDigest = DJ2WYYwgxZ0ODDxWSCU/qENUGNTyxR4QfG8zLErpzQrvMoo9u19pSVjC7jzbUm0QLzGhFtKR3E0LRQvO9u6WXQ==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( 1.0.0 ); NSStoreType = SQLite; NSStoreUUID = FC5CF467-5684-4C95-8C0E-49698D0A8648; _NSAutoVacuumLevel = 2; } CoreData: error: reason : The model used to open the store is incompatibl
Nov ’23
Reply to Selecting which data models sync with iCloud SwiftData
CoreData: error: URL: file:///private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application%20Support/default.store CoreData: error: : Attempting recovery from error encountered during addPersistentStore: 0x283fe4030 Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. UserInfo={reason=Failed to create file; code = 2} CoreData: error: During recovery, parent directory path reported as missing CoreData: error: Recovery attempt while adding (type: SQLite, url: file:///private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application%20Support/default.store) was successful! CoreData: error: Could not materialize Objective-C class named Array from declared attribute value type Array of attribute named images CoreData: error: (1) I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support/default.store. SQLite error code:1, 'no such ta
Nov ’23
Reply to Selecting which data models sync with iCloud SwiftData
Well if i launch from fresh install i get CoreData: error: Failed to stat path '/private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support/default.store', errno 2 / No such file or directory. CoreData: error: Executing as effective user 501 CoreData: error: Failed to statfs file; errno 2 / No such file or directory. CoreData: error: Logging status information for directory path: /private/var/mobile/Containers/Shared/AppGroup/98EF0668-1D20-4B71-967F-E5D8F9FB3027/Library/Application Support CoreData: error: Executing as effective user 501 CoreData: error: Information for / CoreData: error: File Device ID: 0 CoreData: error: Device ID: 838860801 CoreData: error: File Size: 544 bytes CoreData: error: File inode: 2 CoreData: error: File user ID: 0 CoreData: error: File group ID: 0 CoreData: error: File Permissions: CoreData: error: d CoreData: error: 755 CoreData: error: component is not a symbolic link CoreData: error: component is readable CoreData: error: com
Nov ’23
Personal VPN install error
We have an app that among other things installs a Personal VPN. This has been working fine for many years but recently we have gotten reports from customers that they are getting an error when installing the VPN. This has only started happening on iOS/iPadOS 17. I hadn't been able to reproduce the issue myself until I tried on an iPad with iPadOS 17.1.1 installed and this actually ties in with one of the customer reports. When I get the error I see the following: Xcode debug console: Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} Failed to save configuration [App Name]: Error Domain=NEConfigurationErrorDomain Code=10 permission denied UserInfo={NSLocalizedDescription=permission denied} Fai
2
0
1.1k
Nov ’23
closure #1 in closure #1 in CoreDataManager.persistentContainer.getter
Hello everyone, I am experiencing a very weird issue. There are two scenario, and the crash issue direct to persistentContainer.getter last. I know the error is occur in this line : CoreDataManager.persistentContainer.getter + 51 code block: fatalError(Unresolved error (error), (error.userInfo)) scenario1, Xcode crash report: scenario 2, firebase crashlystic: detail info: ProjectName/CoreDataManager.swift:51: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FraudInfo.sqlite, reason=Cannot migrate store in-place: I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FrankInfo.sqlite. SQLite error code:1, 'duplicate column name: ZISSEARCH', destinationURL=file:///private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FrankInfo.sqlite,
0
0
1k
Nov ’23
ios17 container problem occur when I replace container in xcode
it can read the files before I replace container in xcode . Has anyone encountered the same problem? and any solution? Error: Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=( Folder ), NSFilePath=/var/mobile/Containers/Data/Application/97D816A0-8B58-4E33-8455-3F19E0A9FBAA/Documents, NSUnderlyingError=0x281e650b0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}
4
0
1.7k
Nov ’23
Reply to Sharing Extension issues with Files App
Hello, I got some logs: error 12:14:31.339407+0200 Files Failed to request default share mode for fileURL:file:///private/var/mobile/Containers/Shared/AppGroup/9C1A35FD-D1EB-425F-9B5F-2999517B4E4E/File%20Provider%20Storage/LD_28Sep22_121037.dat error:Error Domain=NSOSStatusErrorDomain Code=-10814 (null) UserInfo={_LSLine=1608, _LSFunction=runEvaluator} default 12:14:31.346082+0200 Files defaultShareModeCollaboration for fileURL:file:///private/var/mobile/Containers/Shared/AppGroup/9C1A35FD-D1EB-425F-9B5F-2999517B4E4E/File%20Provider%20Storage/LD_28Sep22_121037.dat = NO default 12:14:31.349231+0200 Files <_SFFPShareCollaborationItem: 0x281c98180> identifier:8F5CE4F8-D9A4-46E8-921D-BBD6E4104AA2, type:0, itemProvider: {types = ( public.file-url, public.url )}, activityItem:file:///private/var/mobile/Containers/Shared/AppGroup/9C1A35FD-D1EB-425F-9B5F-2999517B4E4E/File%20Provider%20Storage/LD_28Sep22_121037.dat, placeholderActivityItem:https://www.apple.com/icloud/, options:(null), sendCopyRepresentation:(nu
Topic: App & System Services SubTopic: General Tags:
Nov ’23
SwiftUI ShareLink Exporting Issues with Custom CSV UTType
Hello! I'm working on an app that generates CSV files in memory and allows users to export them through a ShareLink. I am using a custom UTType for my CSV files as .commaSeparatedText exports a .txt file, and a custom UTType was proposed as a workaround here: https://www.hackingwithswift.com/forums/swiftui/sharelink-problem-with-csv-file/21194. The app works on a development build, albeit with a lot of entitlement and sandboxing errors, but fails in production (sideloaded archive). Development errors are as follow: Error acquiring assertion: (501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.} Received port for identifier response: <> wit
3
0
2.3k
Oct ’23
Crashes in requestSendPTPCommand(_:outData:completion:) of ImageCaptureCore framework
Hi there :) We're in our way to make an app to can communicate with DSLR camera by using ImageCaptureCore framework for PTP communication with the camera. In our app, we're sending some PTP commands to the camera by using requestSendPTPCommand(_:outData:completion:). This is our snipped-code to execute a PTP command. public extension ICCameraDevice { func sendCommand(command: Command) async { do { print(sendCommand ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++) print(sendCommand (command.tag()) : sendCommand Started) let result = try await self.requestSendPTPCommand(command.encodeCommand().commandBuffer, outData: nil) let (data, response) = result print(sendCommand (command.tag()) : sendCommand Finished) print(sendCommand data: (data.bytes.count)) print(sendCommand response: (response.bytes.count)) if !response.bytes.isEmpty { command.decodeResponse(responseData: response) } print(sendCommand (command.tag()) : sendCommand Finished with response code (command.resp
3
0
953
Oct ’23
Notification Service Extension didn't work correctly
Hello all. I face problem with Notification Service Extension. User mobile receive notification without any problem, payload contain mutable-content:1 inside it ( also, full example of payload is attached ), but, NSE didn't run correctly, also, original content of notification didn't saw ( in case, and there is a crash because of something wrong in app ) I checked device logs, and I see next errors: [*] Mutated notification request is nil, will supress original content; notificationRequest=7019-8D60, error=Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 487 on anonymousListener or serviceListener UserInfo={NSDebugDescription=connection from pid 487 on anonymousListener or serviceListener}, runtime: 0.410339 [*.notificationextension] Service extension connection encountered an error: sessionUUID=88D39801-67DF-4DC7-AA70-2AD7E8634369, error=Error Domain=NSCocoaErrorDomain Code=4099 The connection from pid 505 on anonymousListener or serviceListener was invalidated: client is gone.
3
0
1.3k
Oct ’23
Reply to Xcode 9 - Can't Update Help Book
I worked on my Application. I did NOTHING to change the Help Book except change one small bit of text. I did everything listed in this thread: I deleted the existing version in the Applications folder. I cleared the Help data bases with hiutil -P ~/Library/Caches/com.apple.help.d. I have done this many times before but now with MacOS Sonoma 14.0 I get errors: Received termination response from helpd HPDHelpDataIsTerminating: Shutdown request successfully sent to helpd Unable to clear caches at path: /Users/myname/Library/Containers/com.apple.helpviewer Error: Error Domain=NSCocoaErrorDomain Code=513 “Help Viewer” couldn’t be removed because you don’t have permission to access it. UserInfo={NSUserStringVariant=(Remove), NSFilePath=/Users/myName/Library/Containers/com.apple.helpviewer, NSUnderlyingError=0x600000d90d80 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} Caches not cleared: There was a problem clearing Help Viewer and helpd cache files, see logs for details There is nothing
Oct ’23
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
Random "duplicate column name" crashes using SwiftData
Hello everyone, I am experiencing a very weird issue. I have a simple relationship between 2 models, that occasionally starts crashing the app, with the following error: error: : Attempting recovery from error encountered during addPersistentStore: 0x282523c60 Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application%20Support/default.store, reason=Cannot migrate store in-place: I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application Support/default.store. SQLite error code:1, 'duplicate column name: Z1POSITIONS', destinationURL=file:///private/var/mobile/Containers/Shared/AppGroup/F8286D67-AC8C-4441-A151-13B5AAA509F3/Library/Application%20Support/default.store, NSUnderlyingError=0x2825c6700 {Error Domain=NSCocoaErrorDomain Code=134110 An error occurre
1
0
1.1k
Oct ’23