ios App hangs in ionic, while running using xcode - ios

After building our ionic app using :
cordova build ios
I ran it in my iphone 6 using xcode. It works great. Now when I kill the app in device and click on the app icon to launch it from the device it takes longer to launch, and stays in a hanged state, unable to even inspect it using safari.
(No way related to this question, still) there occurs no issues even if the app is killed in android. It works just fine.
Has anyone experienced such an issues? Is there a way out to it?

The issue is actually discussed in Ionic Forums. It's not of logic, but when you run via Xcode, there are controls of xcode associated to the build. So once we kill the app and restart it, the controls of Xcode are disconnected, so there are 2 issues:
1) Xcode maintains some active connection which is used for debugging purposes, while launching app via xcode.
2) If that connection is broken - to mess with the phone Xcode is expected to throw an error about a process being killed or something but to block the main-thread. But that doesn't happen.
3) It has something to do with how the XCode debugger works. Either the PC or the device is trying to poll each other constantly and if we deviate from what they are expecting it causes problems on the iPhone.
Although xcode detects if the phone is disconnected, but it still fails to detect if the app was killed

Related

Expo run:ios crashes on physical device, works everywhere else

I have a react native app that runs normally on simulators, builds fine and runs via testflight as expected. Whenever I try to run the app on my physical device (iPhone se2) one of two things happen.
(most frequent) app builds with no errors and hangs (as normal), but the app on my phone crashes when the splash screen comes up (again, no logs or errors)
expo builds but then exits and disconnects
I've tried
restarting everything
removing and reinstalling pod files
The only dependencies I've added since running it on my device last are a UI library (native base) and react-native-safari-view. I also only have 5gb of space left on my device (not sure if relevant)
Does anybody know how I can debug this better or what might be wrong?

Xcode Simulator and Actual iPhones run Cordova App slow. Error Timed-out while waiting for reply for WebPage_TouchEventSync

I packaged and built my app in Cordova for iOS. When I try to run the app on an emulator in Xcode it is SUPER slow (5sec or so from interaction to reaction). This result is shown on NEWER iPhone models as well. I put the app on my old iPhone 6 and it runs fine. This application also runs flawlessly on android and windows.
In the debugger window the only thing that shows up during these slow interactions is the following:
[IPC] Connection::waitForSyncReply: Timed-out while waiting for reply for WebPage_TouchEventSync from process 21078, id = 13
When you click more while waiting for the app to load, it just adds more of this error with an incremental ID.
I am running the most recent version of Cordova (10.0.0) and built the app with the most recent Cordova IOS build version (6.2.0).
Please let me know if anyone has ran into similar issues.
Thanks!

React Native iOS stuck on LaunchScreen

I test my app on the iOS simulator without a problem, on Android everything is fine, but when I download the app on the iPhone, it doesn't work. It gets stuck in the LaunchScreen and suddenly closes after about 10 seconds.
I have no clue why. I already tried a possible solution that was to specify the node version on the Build Phases > Bundle React Native code and images
App on Android already released but I'm facing this issue on iOS.
Debug
Same Wifi
No VPN on
Plug in your device via USB

Xcode 6.1 and Tesflight on iOS 8.1.1: Cannot attach to process

I am trying to debug an annoying issue where my app downloaded through Testflight randomly crashes (it doesn't when executed on my iDevice using Xcode), but I cannot attach the debugger to the running process. It says "Lost connection to device" every time I try to attach it. I can, however, attach it to the app if I execute the app directly from Xcode.
Any ideas area appreciated, thanks.

Warning dialog "The Service is Invalid" when building and running App in XCode 4

I'm being annoyed by a warning dialog XCode 4 shows everytime I want to run the App I'm developing... it says:
"The Service is invalid.
Please check your setup and try again.
(0xE8000022)."
See image attached:
Sometimes the App will load on the iPhone 4, sometimes it won't. It's a huge waste of time! Please if anyone knows how to help it let me know.
I though it was because I enabled iOS Device Discovery to Support Wirelessly Connected Devices. When I saw it was an useless feature I disabled it, but still have the same dialog showing up.
Well, I decided to invest some time on the issue... and I think I have an answer to it, restarting XCode 4 or swapping between versions of XCode 4 didn't helped it.
I was getting the warning dialog with two different iPhones, both iPhone 4, running iOS 5.0.1 (Build 9A405). Then, I tested with an iPad 2 running iOS 5.0.1 (Build 9A405) and the dialog did stopped popping out, so I restarted the iPhone 4s and the problem is not happening anymore, I can build and run smoothly again.
Just as I suspected, the issue must be some background process listening on the device that XCode 4 needs to talk with. This process dies at some point during development or during normal usage of the phone and does not restarts by itself, you need to turn off the device and turn it on again.

Resources