Custom Keyboard: Hub connection error - ios

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.

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

Unit Testing, iOS, DTXProxyChannel error 1

I sometimes start to get the following error
2017-04-02 18:55:22.645937+0200 Stamps[730:111791] Connection peer
refused channel request for
"dtxproxy:XCTestDriverInterface:XCTestManager_IDEInterface"; channel
canceled Failed to run tests: The operation
couldn’t be completed. (DTXProxyChannel error 1.)
Last time, when this happened, I just did some random actions with clean my project, remove derived data etc., and it was fixed. Now, it happens again - just after a start of the app, it closes and log contains this error.
What does it mean and is there any workaround here?
I use XCode 8.3, Swift 3.1, test on device 6s with 10.3 installed.
Surprisingly, to fix this, I just replugged my iPhone to another port

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.

iOS 8 custom keyboard crash when debugging

Issue
Most times, when I try to debug my custom keyboard extension, I receive the following error and then the keyboard disappears (presumably crashes, so the system removes it from screen and replaces it with the standard keyboard)
plugin com.db.Trype.TrypeKeyboard interrupted
(Note: Trype is the name of my keyboard.)
Process
I am debugging the keyboard the following way:
I have the keyboard extension as a target.
I've modified the TrypeKeyboard scheme to run my app executable on launch.
The keyboard has been added in the Simulator's Settings App.
I've tried different version of Xcode-Beta and tried restarting the simulator, computer, etc., all to a varying degree of temporary success.
Anyone else run into this error and have a suggestion?
Update:
Here is an accompanying error message. Maybe there is some way to print out more of the UserInfo?
viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3
"The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)"
UserInfo=0x7fc99c900a50 {Message=Service Connection Interrupted}
After messing around with it some more, I'm beginning to conclude this is an iOS 8/Xcode bug with the way that extensions are debugged.
Xcode sometimes seems to build project and install multiple versions of the extension keyboard into the iOS simulator. It also occasionally kills the extension and reloads it. Very strange behavior. Just sitting and staring at the debugging sidebar shows it get killed (disappear) and then relaunch.
The first is a successful launch.
The second is an unsuccessful launch where the extension appears to hang and wait to attach.

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