How to Test iOS App in the Cloud & Debug iPhone
Testing apps on iPhone is a critical step in your process. Here's how to test iOS apps — and how to debug iPhone.
How to Test iOS Apps & Debug iPhone
Here's how to test iOS apps (and debug on iPhone) in 3 steps:
- Connect to a cloud-based iOS device.
- Validate, debug, and profile your iOS app.
- Inspect and troubleshoot your web app in Safari.
In the following example, we walk through these steps using Perfecto DevTunnel.
Perfecto DevTunnel is a solution that helps enterprise teams integrate real iPhones and iPads into critical development paths.
Native mobile and web app developers now have instant access to the variety of devices needed to:
- Validate new features.
- Run Appium and XCTest scripts early.
- Quickly troubleshoot production issues from the comfort of their existing toolchain.
Here's a quick overview:
1. Connect to a Cloud-Based iOS Device
From the Perfecto cloud dashboard, you can easily create an SSH connection to your device, which enables XCode, Safari, and other profiling tools to seamlessly interact with it.
Launch your target platform from a wide variety of real devices, then click on the ‘DevTunnel’ widget:
2. Validate, Debug, and Profile Your Native App’s Real Experience in XCode
A secure session from your computer to the Perfecto test cloud enables the rest of your toolchain to interact with this device, just as if it is connected via a really long USB cable.
After installing the requisite components, you’ll see your device available in XCode:
Indeed, anywhere XCode queries for a list of available devices, your DevTunnel-connected Perfecto device is listed there. This is great when you want to see how a new feature will work on new or legacy platform versions.
DevTunnel also allows developers to run XCTest scripts on specific hardware, platform configurations, and under real user conditions. You can simulate scenarios like high network latency and call interruption through additional Perfecto WindTunnel features. This helps teams improve test flakiness and cover more of the real user than ever before.
Instrumentation and profiling tools — such as Allocations, Leaks, Counters, and Energy Log — also work with your Perfecto devices connected via DevTunnel:
3. Inspect & Troubleshoot Your Web App in Safari
For web app developers, you can use your DevTunnel connection to debug and troubleshoot web apps as well! When a mobile web browser is launched on the device, your iOS device now appears in the list of resources available to Safari Web Inspector:
Now that that you know how to test iOS apps and debug iPhones, learn how to make it easier.
Testing Apps on iPhone Is Easier With Perfecto
With less than 2 months until WWDC, there’s been no shortage of iOS platform changes since last year.
- 6 iOS updates since September.
- iPhone 4.x support retirement.
- iOS 10 render tests written in frameworks like Appium unusable until months after release.
The stability of the iOS development landscape has improved in the last year. But Apple continues to change what it means to develop rich mobile experiences quickly and reliably. iOS developers often fall back to manual testing. And they lose coding cycles until the technology ecosystem can catch up.
Integrating real devices from your Perfecto cloud into dev cycles early helps development teams ship less buggy new code and increase automated test coverage over the real user experience.
Learn more about debugging apps in the cloud by checking out our Remote Device Access page.
Or, get started testing with Perfecto today. Perfecto can also help you:
- Automate more tests.
- Apply real user conditions to your tests.
- Accelerate your testing.
Start your free trial today.