Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Core Data error: SQLITE_IOERR_SHMOPEN; what is this?
Hi, when setting up our Core Data stack in our iOS app (manually, with a NSManagedObjectModel/Context & NSPersistentStoreCoordinator) we have reports a rare bug we haven't been able to reproduce. Occasionally when adding a persistent store we get a NSCocoaErrorDomain 256 error (NSFileReadUnknownError) with NSSQLiteErrorDomain=4618 in the user info. That's SQLITE_IOERR_SHMOPEN , which the SQLite docs describe this way: I/O error within the xShmMap method on the sqlite3_io_methods object while trying to open a new shared memory segment It seems to specifically /not/ be a SQLITE_FULL error. Do you know what type of issue can cause this? Or where/how I can start tracking this down?
1
0
1.1k
Jun ’24
URL.bookmarkData(): File descriptor doesn't match the real path
I'm having a problem on macOS 26 that has not happened on previous macOS versions. When I call guard url.startAccessingSecurityScopedResource() else { return } try url.bookmarkData(options: [.withSecurityScope]) with url being file:///, I get an error Error Domain=NSCocoaErrorDomain Code=256 File descriptor doesn't match the real path. Given that Google returns 0 results on this error, I suppose this is a macOS 26 novelty. (The bookmark data created before upgrading to 26 resolve well). Does anyone already met this or have an idea on how to get around it? The app is a file manager, so having bookmarked access to / is crucial.
3
0
365
Sep ’25
HKWorkoutRouteBuilder does not work
HiI get an error when doing insertRouteData of HKWorkoutRouteBuilder 😢.Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.healthd.server UserInfo={NSDebugDescription=connection to service named com.apple.healthd.server}I would have allowed write permission of Workout Route.And I tried with the following code.let builder = HKWorkoutRouteBuilder(healthStore:healthStore, device: nil) let routeData:[CLLocation] = ... builder.insertRouteData(routeData) { (success, error) in if let e = error { print(e) } }iOS: iOS 11 beta 3WatchOS: watchOS 4 beta 3What should I do to solve this error?Thank you.
5
0
1.6k
Jul ’17
FileManager contentsOfDirectory fails with error 256
There is a macFUSE bug that can result in an Input/output error - https://github.com/osxfuse/osxfuse/issues/45 when listing a directory. In most cases this doesn't cause any major issues, just a ls: mount: Input/output error message when running ls. The problem is that the contentsOfDirectory(at:includingPropertiesForKeys:options:) now does not work, however, the contentsOfDirectory(atPath:) method does. There appears to be a difference in how these methods handle errors, although the documentation doesn't seem to suggest this. The following code returns an array of strings without an error: FileManager.default.contentsOfDirectory(atPath: /Users/user) The following code results in an error: FileManager.default.contentsOfDirectory(at: URL.init(fileURLWithPath:/Users/user), includingPropertiesForKeys: nil) REPL: $E3: NSError = domain: NSCocoaErrorDomain - code: 256 { _userInfo = 3 key/value pairs { [0] = { key = NSURL value = file:///Users/user/mount } [1] = { key = NSFilePath value = /Users/user/mount
6
0
2.6k
Apr ’21
Xcode 12.2, App and simulator crashing during parsing JSON file into array
Hi all. I have an error as Xcode isn’t letting me parse my JSON file data into an array. It says in the diagnostic report that “Fatal error: Couldn’t parse Rest.json as Array: dataCorrupted(Swift.DecodingError.Context(codingPath: , debugDescription: “The given data was not valid JSON.”, underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 “No string key for value in object around character 3.” UserInfo={NSDebugDescription=No string key for value in object around character 3.}))): file SaiMirrasKitchen/ModelData.swift, line 30” So if anyone could help, I would appreciate it! Harri
1
0
613
Dec ’20
SKAdNetwork startImpression issue
I am testing SKAdNetwork 2.2 version; iPhone 12 ProMax beta iOS 14.5 and Version 12.5 beta (12E5220o) in my m1 clip macbookpro; after run below code [SKAdNetwork startImpression:theSkAdImpressionObject completionHandler:^(NSError * _Nullable error) { }]; //theSkAdImpressionObject is valid nothing happened, and I got below log: SKAdNetwork: Error in remote proxy while starting view-through impression: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.storekitservice UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.storekitservice} so, any suggestions ? thanks
2
0
1.4k
Feb ’21
ODR error on Xcode 7.3.1
Hi,I have successfully implemented the ODR for an app at debug level and everything worked fine on Xcode 7.2.Suddenly I started getting this error after I restarted the MAC.now spent many hours and upgraded to Xcode 7.3.1 today.But I am having the same ERROR :Error Domain=NSCocoaErrorDomain Code=4994 Die angeforderten App-Daten sind nicht vorhanden. UserInfo={NSLocalizedFailureReason=Request could not be completed. Invalid tag in set '{( GERMAN)}.'}But I KNOW that my Tags exist. i am hosting the Asset packs on a private server.Any APPLE staff... reading this ????
0
0
363
May ’16
Safari Mail and App Store don't display content in 10.13.1 beta 4
Hello,I installed all previuos betas without problems, but after installing 10.13.1 beta 4 I cannot see any content in Safari, App Store and Mail.I suspect it may be an issue with WebKit, for the moment I installed Safari Technology Preview and it works, but I could not solve the problem with the other programs. In console I find:Safaricould not create directory for future sandbox extension, error Error Domain=NSCocoaErrorDomain Code=512 Impossibile salvare il file “”. UserInfo={NSFilePath=}andSafariPage (pid: 0) did become unresponsive on <<private>>any help?thank youFabio
6
0
1.8k
Oct ’17
Json Data Corrupted Error After Updating macOS to 14.2.1 and Xcode to 15.2 with ixguard Toolchain
After updating my macOS to version 14.2.1 and Xcode to version 15.2, I am encountering an issue when attempting to run my iOS app on a physical iPhone device. The app runs successfully in the simulator, but when deploying to the iPhone, I receive the following error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character 'i' around line 1, column 2. UserInfo={NSJSONSerializationErrorIndex=1, NSDebugDescription=Unexpected character 'i' around line 1, column 2.})))
0
0
691
Jan ’24
Unable to initialize without a valid iCloud account
Building an app with iCloudKit integration. Build is successful but Simulator crashes with above error. I have an active developer account, have configured the app for iCloudKit integration in Signing and Capabilities, have logged into Xcode with my account as well as on the Simulator so I think I have all requirements completed correctly but app still crashes. Error Domain=NSCocoaErrorDomain Code=134400 Unable to initialize without a valid iCloud account (CKAccountStatusTemporarilyUnavailable). UserInfo={NSLocalizedFailureReason=Unable to initialize without a valid iCloud account (CKAccountStatusTemporarilyUnavailable).} Not sure why my account status in temporarily unavailable. Any help would be much appreciated.
0
0
952
May ’23
Getting errors when trying to connect to CloudKit using NSPersistentCloudKitContainer
I am trying to build a very basic app using Core Data and CloudKit. I am logged into my CloudKit account on my Mac, and I followed the instructions to run the sample project that Apple provided on their website.Using the sample project as a guide, I tried to build a simpler app using the instructions provided here.However, after building trying to run my sample project, I get the following error stack trace in my console:CoreData: debug: CoreData+CloudKit: -[PFCloudKitOptionsValidator validateOptions:andStoreOptions:error:](35): Validating options: <NSCloudKitMirroringDelegateOptions: 0x60000097f960> containerIdentifier:iCloud.com.cybermedia.CloudKitTest1 initializeSchema:YES ckAssetThresholdBytes:<null> operationMemoryThresholdBytes:<null> useEncryptedStorage:NO automaticallyDownloadFileBackedFutures:NO automaticallyScheduleImportAndExportOperations:YES skipCloudKitSetup:NO preserveLegacyRecordMetadataBehavior:NO useDaemon:YES apsConnectionMachServiceName:<null> containerProvider:<
5
0
7.4k
Jul ’19
CSSearchableItem uniqueIdentifier: restrictions on string content or length?
Strings containing MD5 hashes or vanilla alphanumeric values seem to work fine, but using a string that contains a URL sometimes appears to cause indexing to fail.Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x145b01d70; name=CSSearchableIndexShared>, error:Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.spotlight.IndexAgent UserInfo={NSDebugDescription=connection to service named com.apple.spotlight.IndexAgent}Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Finished index items(16) with error:Error Domain=CSIndexErrorDomain Code=-1003 (null)Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x145b01d70; name=CSSearchableIndexShared>, error:E
0
0
553
Jul ’15
Packet Tunnel Provider - plug in not registered
I have a VPN client with Packet Tunnel Provider for OS X (Mac OS). It's already at the app store.For most of the people, it's working great, but for some others, it's not working at all -They try to turn on the VPN without any success, and I can see at their logs the following errors:- unknown80e6501154c4 pkd[1346]: enabling pid=1688 for plug-in com.myComp.mac.myClient.myClientExtension(1.0.1) 22F61C31-095F-4BA3-A914-8F1ED65F6EEB /Applications/myClient.app/Contents/PlugIns/myClientExtension.appex - unknown80e6501154c4 myClientExtension[1689]: plug-in sdk com.apple.networkextension.packet-tunnel not registered - unknown80e6501154c4 com.apple.xpc.launchd[1] (com.myComp.mac.myClient.myClientExtension[1689]): Service exited due to signal: Illegal instruction: 4 - unknown80e6501154c4 neagent[1688]: plugin com.myComp.mac.myClient.myClientExtension interrupted - unknown80e6501154c4 neagent[1688]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.myComp.mac.myClie
0
0
523
Aug ’16
Previews Crash on CoreData model using 'Parent Entity'
I have a CoreData model with two entities, 'User' and 'Player', that both use 'Person' as their 'Parent Entity'. While the App appears to work correctly in the simulator, including with CloudKit via NSPersistentCloudKitContainer, I get a crash in Xcode Previews: libswiftCore.dylib [ AGScoringModel/Persistence.swift:183: Fatal error: #init(inMemory:): Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///Users/ebg/Library/Developer/.../CoreDataStores/private/database.sqlite, reason=Cannot migrate store in-place: Cannot merge multiple root entity source tables into one destination entity root table, destinationURL=file:///Users/ebg/Library/Developer/.../CoreDataStores/private/database.sqlite, NSUnderlyingError=0x600000ce02a0 {Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={message=Cannot merge multiple root entity source tables into
2
0
1.1k
Jan ’24
Issues indexing CoreSpotlight items
Hi.In the latest betas I am having difficulty using the new CoreSpotlight API to index my app's content.[[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:newItemsToIndex completionHandler:^(NSError *indexError) {...}];After calling this method, I get several messages in the debugger that read:[com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x7fc02d98be90; name=CSSearchableIndexShared>, error:Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. (connection to service named com.apple.spotlight.IndexAgent) UserInfo=0x7fc02da64fc0 {NSDebugDescription=connection to service named com.apple.spotlight.IndexAgent}As far as the release notes detail, there are no known issues with the API. Is anyone else having this issue?
0
0
712
Jul ’15