# Cannot launch application on real iOS device - Original error : "null" cannot be coerced

**URL:** <https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [March 28, 2019, 11:36am UTC](https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074 "2019-03-28T11:36:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bisu1909](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bisu1909](https://forum.katalon.com/u/bisu1909)\
**Post date:** [March 28, 2019, 11:36am UTC](https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074/1 "2019-03-28T11:36:03Z")

</div>

Hi Team,  
I cannot start on Spy or Run test on my real iOS device, issue as below :

 ![23%20PM](https://europe1.discourse-cdn.com/katalon/original/2X/7/73b2fb7eddd740596c7f325ba924f6ea48455570.png)  
Although I successfully ran the test on terminal  
 ![43%20PM](https://europe1.discourse-cdn.com/katalon/original/2X/4/42ede30ee03e1f07b496dd09cfee9a64ccce91c7.jpeg)

I can go to Xcode\>Windows\>Devices and Simulator and install the application there just fine.

Some information :  
Katalon 6.1.0  
Appium : 1.12.1  
Xcode : 10.2

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [March 28, 2019, 3:33pm UTC](https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074/2 "2019-03-28T15:33:09Z")

</div>

Hi @bisu1909,

For best compatibility, it’s recommended that you use Appium Server 1.8.2-beta with Katalon 6.x and Xcode 10.x:

`npm install -g appium@1.8.2-beta`

Here are some other common troubleshooting tips that you can try as well:

> [@Troubleshooting Exceptions on Mobile - (Recommended: KS 7.x + Appium 1.15.1)](http://forum.katalon.com/t/troubleshooting-exceptions-on-mobile-appium-1-8-1-is-recommended/20285):
>
> Mobile Testing Exception Troubleshooting Tips Here are some common troubleshooting steps to take when you encounter errors trying to spy, record, or execute a mobile test in Katalon Studio: If you see one of the following exceptions, you should check your Appium installation: Execution Exception NullPointerException “java.util.HashMap cannot be cast to org.openqa.selenium.WebElement” “Unable to parse remote response” “Support for xcode 0.1 is not supported. please upgrade to version 7.3 or h…

Hope this helps,

Chris

---

<div class="post-metadata">

**Author:** ![bisu1909](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bisu1909](https://forum.katalon.com/u/bisu1909)\
**Post date:** [March 29, 2019, 6:34am UTC](https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074/3 "2019-03-29T06:34:23Z")

</div>

Thanks Chris for your quick response.  
However Appium 1.8.2 still does not work for me ☹

When I start test, I get the error unable to start app  
When I try to Spy/Record, it is still an old error, “null” cannot be coerced.

 ![40%20AM](https://europe1.discourse-cdn.com/katalon/original/2X/e/e677e7e549953296dd37391f97369364cfd04af7.png)

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [March 29, 2019, 7:45pm UTC](https://forum.katalon.com/t/cannot-launch-application-on-real-ios-device-original-error-null-cannot-be-coerced/22074/4 "2019-03-29T19:45:48Z")

</div>

Hi @bisu1909,

This might be a problem with the Coffee Timer ipa file that came as a sample. For the best results of running a test with that app, I would recommend rebuilding it for your machine. Here are some instructions on how to create a file that you can test:

> [@Problem with running 'sample test' in iOS](http://forum.katalon.com/t/problem-with-running-sample-test-in-ios/14540/2):
>
> Hi Connor, Thanks for sharing the output log - it’s very helpful when troubleshooting! From your log, I see a part that is probably causing the issue: [debug] [XCUITest] Verifying application platform [debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"] [XCUITest] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* [XCUITest] Simulator architecture appears to be unsupported by the '/var/folders/7g/21lzx8w51\_n1wh47vz05l\_zr0000gp/T/20181029-24155-ygn8wr.w898s/Payload/Coffee Timer.app' application. Make su…

Hope this helps,

Chris
