# Launching ios app on real device with appium gives error with ideviceinstaller

**URL:** <https://discuss.appium.io/t/launching-ios-app-on-real-device-with-appium-gives-error-with-ideviceinstaller/8033>\
**Category:** Support\
**Created:** [January 21, 2016, 5:13pm UTC](https://discuss.appium.io/t/launching-ios-app-on-real-device-with-appium-gives-error-with-ideviceinstaller/8033 "2016-01-21T17:13:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![silvernsmile](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@silvernsmile](https://discuss.appium.io/u/silvernsmile)\
**Post date:** [January 21, 2016, 5:13pm UTC](https://discuss.appium.io/t/launching-ios-app-on-real-device-with-appium-gives-error-with-ideviceinstaller/8033/1 "2016-01-21T17:13:53Z")

</div>

I’m tring to run appium tests on real device, but it fails at this step:

.  
.  
.  
info: [debug] App is not installed. Will try to install the app.  
info: [debug] Cleaning up appium session  
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture\_page\_response\_time/Build/Products/Debug-iphoneos/Myapp.app  
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib  
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib  
Reason: image not found

info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture\_page\_response\_time/Build/Products/Debug-iphoneos/Myapp.app  
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib  
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib  
Reason: image not found

```
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

```

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture\_page\_response\_time/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n)”,“killed”:false,“code”:null,“signal”:“SIGTRAP”,“cmd”:"/bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture\_page\_response\_time/Build/Products/Debug-iphoneos/Myapp.app",“origValue”:“Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/myapp/test/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n”},“sessionId”:null}

What am i missing? I did install ideviceinstaller manually. I’m using Xcode: 7.2, Appium: 1.3.13, iPhone: 5s, 6 , iOS 9.0

I saw other people have reported similar issues, but did not see any solution so far.

It would be great to hear any pointers to get this problem solved.

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [January 21, 2016, 6:08pm UTC](https://discuss.appium.io/t/launching-ios-app-on-real-device-with-appium-gives-error-with-ideviceinstaller/8033/2 "2016-01-21T18:08:36Z")

</div>

Check this thread:

> [@Using AppiumDriverLocalService to run tests on IOS failed](https://discuss.appium.io/t/using-appiumdriverlocalservice-to-run-tests-on-ios-failed/7891):
>
> Hi all, I’m working with Appium for the past few months and everything worked really good. My next goal is to run Appium from the command line, so i was following this tutorial : [Start and Stop Appium Server Programmatically](http://aksahu.blogspot.in/2015/10/start-and-stop-appium-server.html) the service runs and works good. mAppiumService = AppiumDriverLocalService.buildService(new AppiumServiceBuilder() .usingDriverExecutable(new File(appiumNodeFile)) .withAppiumJS(new File(appiumJSFile)) .withIPAddress(mAppiumServerAddress).usingPort(…

Hopefully the answers provided there will help you.
