Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Facing issue with fairplay Streaming server SDK 26.0.0
The Apache logs tell you what the problem is: Error reading certificate file (../credentials/test_certificates.json): Error Domain=NSCocoaErrorDomain Code=260 The file doesn’t exist.UserInfo={NSUnderlyingError=Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory, NSURL=../credentials/test_certificates.json -- file:///home/azuki/, NSFilePath=/home/credentials/test_certificates.json} It's expecting to find the credentials in /home/credentials/ but they are not there, which means Apache wasn't running with the environment variable FPS_CERT_PATH set. If you cannot figure out how to set this variable for Apache in your environment, you could copy the credentials folder into /home/credentials/.
Topic: Media Technologies SubTopic: Streaming Tags:
2w
Reply to On Demand Resources - NSCocoaErrorDomainCode 4994
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 ????
May ’16
Reply to Runtime error when using StoreKit 2
I'm having the same problem and seeing that this question was posted 5 month ago doesn't induce hope to find a fix. The users where able to subscribe, later the app logs a com.apple.storekit [Default] Failed in XPC service while enumerating transactions for IterationType.current: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekitagent UserInfo={NSDebugDescription=connection to service named com.apple.storekitagent} and purchases are not available anymore. I read that if the user deletes a com.apple.storekitagent folder somewhere and restarts the Mac, it works again but that's not even a good temporary solution.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23
Reply to Getting started with bookmarks for sandboxed app in OS X
To be a bit more precise:If I test data.write: let result = data.write(to: GlobalData.sharedGlobal.docURL! as URL, atomically: true)result is falseSo I'm in a ctach-22:- I cannot write because I would need to use a bookmark (If I understand how sandboxing works)- but cannot build the bookmark if the file does not exist let result = data.write(to: globalURL, atomically: true) do { let bookmark = try globalURL!bookmarkData(options: [.withSecurityScope], includingResourceValuesForKeys: nil, relativeTo: nil) } catch { Swift.print(error) } }Creating URL give error:Error Domain=NSCocoaErrorDomain Code=513 Vous n’êtes pas autorisé à enregistrer le fichier « xxxxxxxx » dans le dossier « Bureau ». UserInfo={NSFilePath=/Users/Me/Desktop/xxxxxxxxx, NSUnderlyingError=0x61800024bb50 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}I tried to use what I thought was an authorized directory : do { let documentsUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0] as URL let
Jul ’17
Reply to Network token with CryptoTokenKit
Can you please explain what is the actual reason behind the below error - [client] Unable to connect to tokenServer even after retries. (ep=(null) uid=(null)) Some more information I got from system log - 2021-03-09 00:26:09.036130+0530 localhost ctkd[469]: ctkd [com.apple.CryptoTokenKit:tokenhost] Failed to communicate with driver (null), error: Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 21919 was invalidated. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 21919 was invalidated.} 2021-03-09 00:26:09.036225+0530 localhost ctkd[469]: ctkd [com.apple.CryptoTokenKit:tokenhost] failed to acquire token from extension myTokenExtension, error:Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 21919 was invalidated. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 21919 was invalidated.} 2021-03
Topic: Privacy & Security SubTopic: General Tags:
Mar ’21
Reply to Got a serious NSURLSession background session bug
Based from response, the file is temporarily downloaded in file:///var/mobile/Library/Caches/com.apple.nsurlsessiond/Downloads/xxxxx/CFNetworkDownload_qb9hwG.tmp I cannot copy this file to my download location since I am encountering an error: (NSError) error = 0x00000002818928e0 Error Domain=NSCocoaErrorDomain Code=257 The file CFNetworkDownload_qb9hwG.tmp could not be opened because you do not have permission to view it. UserInfo = {NSFilePath = /var/mobile/Library/Caches/com.apple.nsurlsessiond/Downloads/xxxxx/CFNetworkDownload_qb9hwG.tmp, NSUnderlyingError = 0x2818927c0 {Error Domain = NSPOSIXErrorDomain Code = 1 Operation not permitted}} I am assuming the temporary file should be saved in my App Folder. Additional info: My app is registered with the Microsoft Identity platform
May ’21
Reply to Bug when using multiple AVAudioUnitSampler instances
Ok, it turned out that is was not a bug in AVAudioUnitSampler - running the same code on macOS gave some additional hints... unable to obtain configuration from file:///Library/Preferences/com.apple.ViewBridge.plist due to Error Domain=NSCocoaErrorDomain Code=256 (null) UserInfo={NSFilePath=/Library/Preferences/com.apple.ViewBridge.plist, NSUnderlyingError=0x600003a9e610 {Error Domain=NSPOSIXErrorDomain Code=24 Too many open files}} ...with the second sampler, the app exceeded the soft limit for currently opened files per process (=256). The crashes afterwards were caused by failing file handles in other parts of the app. A workaround can be found at https://stackoverflow.com/a/62074374/1993349 ... done.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Reply to Core Data CloudKit stops syncing after incomprehensible archive error
as requested, I've created another feedback issue: FB15652576 on FB10392936, the error message is in the followup comments. here is the error from that issue - also an incomprehensible archive error. on that issue yes I had to lower the CloudKit operation rate to complete the upload - it took a month or 2 - it would be great if there was some mechanism for bulk uploads that bypass the throttles. But throttles shouldn't also corrupt the CloudKit database. not only would it throttle, but it would corrupt the database - the only way to recover was to reset the database and reload the schema and start from scratch- not possible in production. > [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:](1306): : Import failed with error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61) UserInfo={NSDebugDescription=***
Nov ’24
Reply to Error JSONSerialization
I added options: JSONSerialization.ReadingOptions.allowFragments and now gave another code error:Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around character 0. UserInfo={NSDebugDescription=Invalid value around character 0.}The code below how it is/ do { / var teamJSON: NSDictionary! teamJSON = try JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.allowFragments) as? NSDictionary / let teams: NSArray = teamJSON[sqltable] as! NSArray / for i in 0 ..< teams.count{ let team = teams[i] as! NSDictionary / let teamName:String = team[name] as! String! let teamAge:String = team[age] as! String! / print(name -> , teamName) print(age -> , teamAge) print(===================) print() }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17
Reply to Connection to SafariViewService was interrupted
I'm getting a similar issue as the one above. However, I'm encountering this behavior with Share Extension:MobileSlideShow[386]: 2016-04-13 15:11:08.629|MobileSlideShow|0x14ce07cd0: HOST: Failed to load remote view controller with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named <bundle-identifier>.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service named <bundle-identifier>.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.}
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’16
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 Xcode notarization and hardened runtime issue
Just use bundlePath and append Contents/Helpers/myProblemExecI'm getting this: Error Domain=NSCocoaErrorDomain Code=4 The file “xmrig” doesn’t exist. I dont think xcode is acutally adding the Helpers folder in the contents folder. Should the folder's location be relative to group? The file definitely exists in my project files, just not in the actual application contents folder?Thanks for clarifying on the code signing stuff.No, it should not be using zsh. Funny enough, i don't actually need to extract data from it, I have another way of making sure it gets its job done. Thanks so much.
Topic: Code Signing SubTopic: General Tags:
Feb ’20
Reply to Right way to Save Data in Sandbox
If am using that:BOOL test = [pngData writeToURL:[NSURL URLWithString:saveFileName] options:NSDataWritingAtomic error:&myError]; NSLog(@%@,myError); //BOOL test = [pngData writeToURL:[NSURL URLWithString:saveFileName] atomically:YES]; if(test == true){ //NSLog(@Gespeichert); NSLog(@Saved as %@,[saveFileName stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]); }else{ NSLog(@Error request: Failed to save Images %@,myError); }i get this Error:2018-08-23 16:01:00.016 ImageToAsset[779:43332] Absoluter String from NSURL file:///Volumes/UserDisk/users/sven/Desktop/New/Test/iPhone%20Xcode%20Asset2018-08-23 16:01:00.016 ImageToAsset[779:43332] FileName iPhone Xcode Asset2018-08-23 16:01:00.034 ImageToAsset[779:43332] file:///Volumes/UserDisk/users/sven/Desktop/New/Test/iPhone%20Xcode%20Asset20@2x.png2018-08-23 16:01:00.073 ImageToAsset[779:43332] Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “iPhone Xcode Asset20@2x.png” in the folder “Test”. UserInfo=
Aug ’18
Reply to Watchkit app hangs (spins forever) - activePlugInForIdentifier: returned nil for application
Update:I've stripped down the application to a single page with a label. No assets. No network requests.Again, it launches fine with local builds and spins forever and eventually crashes with enterprise builds.I checked out the logs and sure enough there is an error:Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named com.XXX.watchkitextension) <Notice>: (Error) WatchKit: <SPCompanionAppServer.m __51-[SPCompanionAppServer sendToRemoteInterface:call:]_block_invoke519:914> activePlugInForIdentifier: returned nil for application com.XXX.watchkitappI've googled the error code quite a bit but nothing concrete has surfaced.Anyone @ Apple have any idea of what is going on?
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Reply to SwiftData - Context missing for optional
I also tried changing the method of deletion to the following. This tries to delete entity Object that has a to-many relationship children: [Child]. guard let id = object.id else { return } do { try container.mainContext.delete(model: Object.self, where: #Predicate { object in object.id == id }) } catch { print(error) } This does not crash the app, but fails to delete the entity with the following console output: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={Reason=Entity named:Object not found for relationship named:children, MissingEntity=Object. () ... I'm not sure what this means, perhaps someone more clever will find it useful. @DTS Engineer
Aug ’24