The operation couldn’t be completed. (OSStatus error -54.) - ios

I get the above error when trying to run a project from Xcode on a simulator. When I click details it says:
The operation couldn’t be completed. (OSStatus error -54.)
Domain: NSOSStatusErrorDomain
Code: -54
User Info: {
NSDebugDescription = installForLaunchServices;
"_LSFunction" = "-[_LSInstaller installApplication:atURL:withOptions:installType:reply:]";
"_LSLine" = 717;
}
System Information : macOS Version 10.15.4 (Build 19E287)
Xcode 11.4 (16134)
It was working last night. It worked once this morning. Then it stopped working when I try to run a simulator from not just one project but others as well. What is this error saying and how do I fix it?

Restarting the simulator solved it in my case.

I needed to update my Xcode to 11.4.1. Not sure what happened that made this error occur in the first place when Xcode 11.4 was working fine for weeks, but that solved my problem.

For me, Device/Erase All Content and Settings solved it.

This may happen when no app has registered such a scheme.

Related

Receiving error: {"status":-1,"error":"The operation couldn’t be completed. No space left on device"} using 'cordova-plugin-advanced-http'

I have recently been receiving the following error from 'cordova-plugin-advanced-http'.
{"status":-1,"error":"The operation couldn’t be completed. No space left on device"}
Using this plugin within my project, most of the time, all API calls are successful, however, sometimes, I receive this error message. Not on any particular API call either. I can't for the life of me figure out why nor have I found much online to narrow the problem down.
The project uses:
Ionic 6.19.1
Capacitor 3.5.1
Angular 13.3.8
I have recently updated all three frameworks because this problem was occurring on older versions too but updating them has not resolved the issue.
All devices using my project are iPads (IOS).
Has anyone come across this problem before, know why I am receiving this error, or know how to fix the issue?
Thank you in advance!
UPDATE
The device is printing the following error when a call fails with the above error code:
finished with error [28] Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask
Solution
Hey team - came across a similar post, where the answer solved my problem. Check it out if you're stuck on in similar situation:
https://forum.ionicframework.com/t/downloading-appflow-update-on-ios-gets-to-16-then-errors-with-the-operation-couldn-t-be-completed-no-space-left-on-device/222534

Error while running my first IOS app on Xcode

I just created my new iOS project as a single view app and tried running it with no codes added, but there appears just a blank black window in the iOS simulator, and it generates the below error:
"The operation couldn't be completed. (Mach error -308 -(ipc/mig)server died)"
Have a look at this question:
Swift Playground and Simulator Error (ipc/mig) server died, Unable to boot the iOS Simulator
Hopefully that will help you too.

Custom Keyboard: Hub connection error

recently I was playing around with the custom keyboard extension in iOS 8 Beta with Swift (Xcode beta 6), but I keep getting this error when I run it on a simulator, it seems to be quite random and I've no idea what causes it:
plugin com.name.app.extensionName interrupted
Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)" (connection to service named com.name.app.extensionName) UserInfo=0x7b087720 {NSDebugDescription=connection to service named com.name.app.extensionName}
I have no idea what to do. I can't test the app on a real device at the moment, therefore I'm stuck here. It happens on all types of simulators, I already reset them and restarted Xcode and my computer.
I hope you can give me any advice or maybe even know a fix!
I had this problem in Today Extension written in Objective-C. After updating to XCode 6.0.1 and building my project it started saying about missing ARM64 Architecture. When added arm64 it started working well. Try to play with it
I tried a variety of things to resolve this and ultimately what fixed it was "cleaning" my application (on the "Product" menu). I don't know what that really does, but I "cleaned" it, then restarted the simulator and suddenly everything is working again.

iOS8/Simulator - error in SFHFKeychainUtils, SFHFKeychainUtilsErrorDomain error -34018

I have just downloaded XCode 6 and adjusted my application to run under it.
It seems to work just fine, however I use SFHFKeychainUtils, and when I run the application in the simulator I get the error:
error getting UUID: The operation couldn’t be completed. (SFHFKeychainUtilsErrorDomain error -34018.)
Looking at the code, I'm not quite sure why I would get that error. I also do not get that error running my application on an iOS7 device running from XCode6, just the simulator, so I think it's an iOS 8 error.
Any thoughts on resolving this?
Error code 34018. It happens when client has neither application-identifier nor keychain-access-groups entitlements.
iOS 8 is BETA version and doesn’t support Keychain Access developer APIs on the simulator at the moment.
iOS 8 beta Release Notes

Swift Playground and Simulator Error (ipc/mig) server died, Unable to boot the iOS Simulator

When I try to do anything in Playground, this pops up before I even finish typing a word.
Error running playground.
Failed to launch iOS stub for playground: The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died).
and when I just try to run IOS Simulator I get the following error
Unable to boot the iOS Simulator.
oh and this error just popped up
An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)
I tried rebooting, I closed out and opened again, I deselected file and reselected. Just keeps happening. Anyone have a solution?
Your firewall is blocking the debugger, you need to allow it to connect:
TCP out 127.0.0.1:63748
Or allow the debugserver process open access (whichever you, or your firewall, prefer(s)).
Upon enabling it, and restarting Xcode everything should work like a charm.
Note/Update:
If you're having trouble finding, or allowing, the debugserver simply try, temporarily, disabling your firewall and restart xcode. Does the playground work? Oh, and don't forget to make sure you've got the assistant view open and the output box showing.
Currently the Xcode 6 beta needs to reside in \Applications for the playground and simulator to work. After you move it there you need to reboot.
This error popped up for me when I closed the simulator before Xcode finished attaching my application to it. Opening the simulator and running the app again solved this problem.

Resources