Can you test replaykit in the simulator in Xcode? - ios

Im in the ipad air 2 simulator and trying to test replaykit and see if the window pops up to view the video of the recorded screen. When I do that I get an error saying this. Is that because Im testing it in the simulator?
plugin com.apple.ReplayKit.RPVideoEditorExtension interrupted
Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.ReplayKit.RPVideoEditorExtension" UserInfo={NSDebugDescription=connection to service named com.apple.ReplayKit.RPVideoEditorExtension}

I ran into this issue as well in the simulator. It breaks in there. On-device it's fine. Searching the internet this seems to always be the case.

Related

Unity IOS Build weird BoringSSL error

I made a simple game with Unity and get built for IOS. When I try to build this app by XCode and run on my usb connected device, I see only unity logo and when app goes to first screen, it shows black screen and stucks there. In XCode log window, It says :
2018-05-25 02:35:46.906244+0300 helloworld[7424:2571959] [BoringSSL]
Function boringssl_session_errorlog: line 2871
[boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed
because the connection was cleanly shut down with a close_notify alert
Weird is that I never use internet connection in the app. Can anyone help to solve this problem?

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.

UIDocumentInteractionController only shows file name and size when previewing

I have a very weird situation. My app tries to preview a pdf file using UIDocumentInteractionController and it sometimes works and other ones don't. I can not see any difference when it works and when it doesn't.
Some clues:
The file is big (> 45 MB). With smaller files it works
The file exists and the url is correct (checked before trying to preview it)
Some memory warnings appear. But they also appear sometimes than UIDocumentInteractionController is able to open the file. So I don't think it's related
I'm testing on devices (iPad running iOS 8, but base sdks of app is iOS 7), not in simulator
The only warning I see always that it doesn't work and I don't see when it works is the following:
: Received unkown error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" UserInfo=0x14583dd0 {Message=Service Connection Interrupted}
In order to narrow the problem I've done an app that the only thing that it does is to preview a file. After testing I've discovered:
On iOS 7 it always works perfectly
On iOS 8 sometimes it works, but if you try with bigger files (>100 MB) it doesn't work
It seems an iOS 8 bug, but if any of you have any idea it would be really appreciated.

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.

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.

Resources