Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to MLMediaLibrary, cannot connect / path not allowed in target domain
HI Denise,I am still stuck with the issue -MLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.MediaLibraryService UserInfo={NSDebugDescription=connection to service named com.apple.MediaLibraryService}The same code works if I create a test App, but does not work from within my Application. Do you have any clues if I could be missing out something obvious.Thanks,Priya
Feb ’18
Reply to Retrieving Logs from a Customer's Device
@bens OSLogStore is marked available in iOS 14: https://developer.apple.com/documentation/oslog/oslogstore?changes=latest_minor Unfortunately, there is an issue with retrieving entries (the which I asked about during labs and have filed a Feedback Request for. Please duplicate if you get a chance!: FB7787937 This is for the error message: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.OSLogService was invalidated.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’20
Reply to parse json rfc 4267
I’m not entirely sure what you mean by “nested json” but I suspect that you’re asking how to parse a dictionary within a dictionary. If so, here’s an example.Let’s start with JSON data like this:7b0a2020 22616464 72657373 22203a20 7b0a2020 2020227a 6970436f 64652220 3a202239 35303134 222c0a20 20202022 73747265 65744164 64726573 7322203a 20223120 496e6669 6e697465 204c6f6f 70222c0a 20202020 22636f75 6e747279 22203a20 22555341 220a2020 7d2c0a20 20226e61 6d652220 3a202241 70706c65 20496e63 2e220a7dAs text this looks like this:{ address : { zipCode : 95014, streetAddress : 1 Infinite Loop, country : USA }, name : Apple Inc. }You parse out the name and country like this:do { let rootUntyped = try NSJSONSerialization.JSONObjectWithData(data, options: []) guard let rootDict = rootUntyped as? NSDictionary else { throw NSError(domain: NSCocoaErrorDomain, code: NSFileReadCorruptFileError, userInfo: nil) } guard let name = rootDict[name] as? String else { throw NSError(domain: NSCocoaErrorDomain, code:
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’15
Reply to Xliff export and \n
BTW - on a separate note, with Xcode 7.1 beta 3 (the one that just came out today), I import an xliff file that works under 7.01 - and it gets me to the window where I approve the import and then I get this error (radar 22997699):XLIFF target-language attribute missingBasically I'm just seeing XCode's localization tools go downhill big time since Xcode 7. It seems like every release does not fix any of the issues that I talked to you about at WWDC and introduces new ones. I can't tell you how disappointed and discouraging this is. I've put in so many bug reports only to see things get worse.I tell you, if you sat down with me for a few days and we ran through my project back and forth, you would fix so many issues.Console:10/6/15 2:59:51.695 PM Xcode[61177]: Failed to connect (comparisonSplitView) outlet from (DVTComparisonScrollCoordinator) to (DVTComparisonSplitView): missing setter or instance variable10/6/15 3:00:05.349 PM Xcode[61177]: [default] Failed to updated bookmark for item (null) [063E9DE3-3FFD-4
Oct ’15
Reply to getting data from mysql with php
this is the error that shows now Optional(<meta charset=UTF-8>{Email:Error,Password:Error}rnrnrn)Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
Oct ’18
Reply to Cannot create instance of NSSavePanel
I'm fairly certain it's related to entitlements and possible App Groups. I'm now getting : [OpenSavePanels] Unable to display save panel (unrecognized error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.})
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’23
Reply to swiftUI apps with SwiftData and CloudKit crashes on iOS but works on MacOS
on MacOS 14.5, the app on Mac also crash with the same error Unresolved error loading container Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=Unable to find a configuration named 'default' in the specified managed object model.} I think there is something todo with MacOS 14.5 and iOS 17.5.....
Jun ’24
Reply to Unable to Write to UserDefaults from Widget Extension Despite Correct App Group Configuration
I switched to writing to a file instead and I get the same error: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “testFromWidget.txt” in the folder “B6DF24C2-XXXX-XXXXX-XXX-XXXXXXX. UserInfo={NSFilePath=.../testFromWidget.txt, NSURL=.../testFromWidget.txt, NSUnderlyingError=0x1078790e0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Aug ’25
Reply to App does not use my permissions to create dir
I have discovered an error that functioned in macOS but does not in iOS. Specifically, all the atPath: 's above are fed .absoluteString which must be .path in iOS. Correcting this eliminated the debugger statement: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file Thanks to Leo Dabus Nov 23 '20 at 3:53 @ stackoverflow.com for pointing out the different results of each.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
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
Reply to sometimes file stat fails for media files / iOS 14.2 and up
continued: this is the error we get fairly often (same file works other times). this is a file from the photos folder. Error Domain=NSCocoaErrorDomain Code=260 The file “IMG_2685.mp4” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/var/mobile/Media/DCIM/102APPLE/IMG_2685.mp4, NSUnderlyingError=0x281af1cb0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to Keep app "alive" when going from Login to user context.
Hello! I crated the support incident and today as I was trying again and I realized my app was sandbox. After dealing with that this is what I have: let service = daemonConnection.remoteObjectProxyWithErrorHandler { err in print(Received error: (err.localizedDescription)) } as? MyServiceProtocol which prints: Received error: Couldn’t communicate with a helper application. or Received error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.serviceName UserInfo={NSDebugDescription=connection to service named com.serviceName }
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’22
Reply to FileManager contentsOfDirectory fails with error 256
You need to trigger the Input/output error - https://github.com/osxfuse/osxfuse/issues/45 first. This can be achieved with ifuse - https://github.com/libimobiledevice/ifuse and connecting an iOS device: brew install ifuse mkdir iphone ifuse iphone Now disconnecting the iOS device will result in the Input/output error. This is the output when running the above code in Xcode 12.4: content directory contents error Error Domain=NSCocoaErrorDomain Code=256 The file “mount” couldn’t be opened. UserInfo={NSURL=file:///Users/user/mount, NSFilePath=/Users/user/mount, NSUnderlyingError=0x600002b69d10 {Error Domain=NSPOSIXErrorDomain Code=5 Input/output error}} error Error Domain=NSCocoaErrorDomain Code=256 The file “mount” couldn’t be opened. UserInfo={NSURL=file:///Users/user/mount, NSFilePath=/Users/user/mount, NSUnderlyingError=0x600002b6e0a0 {Error Domain=NSPOSIXErrorDomain Code=5 Input/output error}}
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
Reply to On-demand resources suddenly stopped working?
I have exactly the same issue. When calling beginAccessingResources I get an error: Error: Error Domain=NSCocoaErrorDomain Code=4099 Connection invalidated to streaming unzip service. I have checked if this is a issue with the PNG image (colour profile, compression etc.) but no mater what I did I still get the same error. Environment Xcode: 13.4.1, Device: iPhone 11 Max Pro, iOS: 15.6.1
Aug ’22
Reply to Error Domain=NSCocoaErrorDomain Code=4099
The issue exists in Xcode 13.4, iOS 15.5. App crashes after launch with following error SecTaskLoadEntitlements failed error=22 cs_flags=20000200, pid=10574 SecTaskCopyDebugDescription: ProjectName . . . [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.} [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.} Also the cra
May ’22