question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install .ipa in iOS real device with appium

See original GitHub issue

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 

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
imurchiecommented, Apr 17, 2017

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

1reaction
imurchiecommented, Apr 13, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to launch install ipa to real ios device - Appium Discuss
Make sure your test device udid is added into the provisioning profile. This is to be done within the apple developer console. Once...
Read more >
How to install .ipa file using Appium code - Support
Try this code… you must have ipa file is build with developer sign and debug enabled to run it on real devices. File...
Read more >
Unable to install ipa file on real device built with github actions
Hi. I'm trying to install a ipa file on a real ios device using ideviceinstaller. The ipa file is built in github actions....
Read more >
Can't install .ipa file (only .app) - Support - Appium Discuss
i am working on an iphone (ios 8.1) device, When i am trying to install our .ipa application it fails with the below...
Read more >
Setup appium inspector to run ipa on real devices iphone
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Simulator architecture is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found