Search results for

NSCocoaErrorDomain Error Code 4

170,024 results found

Post

Replies

Boosts

Views

Activity

Compile errors after conversion to Swift 4
I followed the instructions for converting some existing code to Swift 4. I chose the Match Swift 3 Behavior option because the code I am trying to convert is not my code, and I didn't want to have to try to fix anything manually.In spite of this, there were more than a dozen compiler errors after the conversion process ran.Did I do something wrong, or is this just normal?
5
0
1.3k
Jan ’18
Reply to dataWithContentsOfURL is nil with url from Files app
Why would my app not have permission to view the document when it's from the files app? Error Domain=NSCocoaErrorDomain Code=257 The file “afile.pdf” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/xxxxxxxx/File Provider Storage/afile.pdf, NSUnderlyingError=0x281f4f150 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’21
PG Admin 4 installation error
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10826 kLSNoLaunchPermissionErr: User doesn't have permission to launch the app (managed networks) UserInfo={_LSFunction=_LSLaunchWithRunningboard, _LSLine=2539, NSUnderlyingError=0x7f7f76b11c10 {Error Domain=RBSRequestErrorDomain Code=5 Launch failed. UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x7f7f76b124d0 {Error Domain=NSPOSIXErrorDomain Code=111 Unknown error: 111 UserInfo={NSLocalizedDescription=Launchd job spawn failed with error: 111}}}}}**
1
0
658
Jul ’21
Reply to HomeKit addAndSetupAccessories always fails in simulator?
Ahh hmm I spoke to soon.. I also get an error using HMAccessoryBrowser and then calling addAccessory on the home, so it seems the issue isn't with discovering accessories but adding them to the home. not sure if these error message are any use, but... [Activity] [-[HMHome _addAccessory:accessoryDescription:password:setupCodeDeferred:progress:completionHandler:], /Library/Caches/com.apple.xbs/Sources/HomeKit_Sim/HomeKit-705.2.0.0.2/Sources/HomeKit/HMHome.m:6645 (B2912D6E-601D-4835-B7BA-4DCFC161FB10)] Thread left active (1): <NSThread: 0x60000128c440>{number = 9, name = main} sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.rtcreportingd} sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 conne
Topic: App & System Services SubTopic: General Tags:
Aug ’20
Reply to How to activate NEPacketTunnelProvider?
While still working on write to file, I'm running into this issue now. Error Domain=NSCocoaErrorDomain Code=513 UserInfo={NSFilePath=, NSUnderlyingError=0x600000c782a0 {Error Domain=NSPOSIXErrorDomain Code=1}}. I read the thread https://developer.apple.com/forums/thread/63075 and added .noFileProtection to my write method call, but that didn't fix the issue. Since the network extension works as root to write to file and I want to write to /private/tmp/example.txt, why am I seeing this error?
Aug ’23
iOS 11 beta kCLErrorDomain Code = 4
I have an app which uses beacons it works well in iOS 10 and lower.I'm trying to move it to iOS 11 but I alwayd get Error Domain=kCLErrorDomain Code=4 (null)I ask for requestWhenInUseAuthorization.Just baffled why it works in iOS 10 but not iOS11.Is it a known problem? I cannot tell from the Release Docs.ThanksMichele
2
0
2.8k
Aug ’17
How do you get the error code from an error?
Hi,Getting the error code from an error protocol would seem to be an important capability, but as a swift newbie I can't figure it out. I'd appreciate some wisdom on how this works.The specific situation is this:When using the ios Speech library SFSpeechRecognizer framework I want to specially handle some errors from the recognitionTask. The problem is I can't figure out how to extract the error code. I've looked all around and I couldn't find an example or explanation in the doc on how to get at it.The signature:func recognitionTask(with request: SFSpeechRecognitionRequest, resultHandler: @escaping (SFSpeechRecognitionResult?, Error?) -> Void) -> SFSpeechRecognitionTaskDrilling down on Error says it's protocol Error which doesn't help very much.When there is an error the local description show's there's a code:2018-10-20 12:33:49.037515-0700 readsay[55123:12025377] error: Optional(Error
3
0
3.9k
Oct ’18
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.
Topic: App & System Services SubTopic: General Tags:
Oct ’23
Reply to App freezes due to CoreTelephony.xpc
Im getting similar error while using CoreTelephony on unwantedCommunication Extension.I have linked CoreTelephony as linked library and this is my troublesome code.. let networkInfo = CTTelephonyNetworkInfo() let carrier = networkInfo.subscriberCellularProvider print(carrier);and my error log is: 2018-08-08 14:24:55.100318-0400 ReportSpam1Extension[4192:295308] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}Please help.
Aug ’18
Error in my code
My code was fine yesterday and I haven't changed it. When I opened up Xcode now Errors keep on coming out of nowhere. From 40-100 errors every time I refresh, but my code is fine I went over it 100 times. If anyone knows whats going on please let me know.
2
0
256
Jan ’17
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) [063E9D
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