appium: Cannot install .ipa in iOS real device with appium

Version : 1.5.3 iOS : 9 Xcode: 8 and above

I am currently not able to install the .ipa file with appium.

I am able to install with ideviceinstaller manually with the command ideviceinstaller -i abc.ipa in the terminal

but in appium, when I run my cucumber tests, I get the following error, when i tries to install,

Encountered internal error running command: Error: Command failed: 
ideviceinstaller -u udid -i 
/var/folders/58/bqk7r15x7hv_l35vll1hg5_w0000gp/T/2017311-19876-
1upzlv/Payload/abc.app
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)

My env.rb file is

require "appium_lib"

def caps
 {
 caps:{ deviceName: "iPhone",
        platformName: "iOS",
        app: (File.join(File.dirname(__FILE__), "abc.ipa")),
        bundleId: "com.abc.abc",
        newCommandTimeout: "3600",
        appium_lib: { wait: 20,
                      debug: false
           }
      }
  }
 end


def server_url
 'http://0.0.0.0:4723/wd/hub'
end

Appium::Driver.new(caps)   
Appium.promote_appium_methods Object 

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

That should be possible. Have you read the README? https://github.com/appium/appium-desktop#appium-desktop-

Appium’s workflow is to unzip the ipa file:

[debug] [BaseDriver] Testing zip archive: /var/folders/58/bqk7r15x7hv_l35vll1hg5_w0000gp/T/2017313-27304-brbjw9/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/58/bqk7r15x7hv_l35vll1hg5_w0000gp/T/2017313-27304-brbjw9/Payload/CHEF'D.app'

And then when it tries to install that the command fails.

I can fix this, but it will not get into Appium 1.5.3.

Appium 1.5.3 does not understand Xcode 8+. Please upgrade to 1.6.4 and if this problem persists, post a link to a gist of the entire Appium server logs so that we can try to help.