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.

Tests not starting when app is a bitrise URL

See original GitHub issue

The problem

Not able to start the test with app as a bitrise URL.

An unknown server-side error occurred while processing the command. Original error: Could not extract Info.plist from application: Plist file doesn't exist: '... appium-app.app/Info.plist' (Selenium::WebDriver::Error::UnknownError)

Environment

  • Appium version (or git revision) that exhibits the issue: 1.11.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.9.1
  • Desktop OS/version used to run Appium:
  • Node.js version (unless using Appium.app|exe):
  • Npm or Yarn package manager:
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Real Device
  • Appium CLI or Appium.app|exe:

Details

The file downloaded is saved as .app but it is actually an .ipa file, so tests are failing to start as there is no plist file on the root.

An unknown server-side error occurred while processing the command. Original error: Could not extract Info.plist from application: Plist file doesn't exist: '... appium-app.app/Info.plist' (Selenium::WebDriver::Error::UnknownError)

On version 1.9.1 it is working properly as the app is downloaded as .ipa then unzipped and everything works.

Link to Appium logs

[Appium] Welcome to Appium v1.11.0
[Appium] Non-default server args:
[Appium]   port: 4725
[Appium] Appium REST http interface listener started on 0.0.0.0:4725
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"platformName":"ios","platformVersion":"12.1.2","deviceName":"ipod_unity","automationName":"XCUITest","app":"my-app-link","udid":"my_udid","reinstall":false,"fullReset":false,"noReset":true},"capabilities":{"alwaysMatch":{"platformName":"ios","appium:platformVersion":"12.1.2","appium:deviceName":"ipod_unity","appium:automationName":"XCUITest","appium:app":"my_app_link
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"ios","platformVersion":"12.1.2","deviceName":"ipod_unity","automationName":"XCUITest","app":"my_app_link","udid":"my_udid","reinstall":false,"fullReset":false,"noReset":true},null,{"alwaysMatch":{"platformName":"ios","appium:platformVersion":"12.1.2","appium:deviceName":"ipod_unity","appium:automationName":"XCUITest","appium:app":"my_app_link...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1550328914060 (15:55:14 GMT+0100 (CET))
[Appium] Creating new XCUITestDriver (v2.105.1) session
[Appium] Capabilities:
[Appium]   platformName: ios
[Appium]   platformVersion: 12.1.2
[Appium]   deviceName: ipod_unity
[Appium]   automationName: XCUITest
[Appium]   app: my_app_link
[Appium]   udid: my_udid
[Appium]   reinstall: false
[Appium]   fullReset: false
[Appium]   noReset: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"ios","plat... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: reinstall.
[BaseDriver] Session created with session id: e251c686-f945-4620-8efb-6c48c80e0fcf
[debug] [XCUITest] Current user: 'test'
[debug] [XCUITest] Available devices: my_udid
[debug] [XCUITest] Creating iDevice object with udid 'my_udid'
[XCUITest] Determining device to run tests on: udid: 'my_udid', real device: true
[debug] [XCUITest] Xcode version set to '10.1'
[debug] [XCUITest] iOS SDK Version set to '12.1'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1550328914742 (15:55:14 GMT+0100 (CET))
[BaseDriver] Using downloadable app 'my_app_link'
[debug] [BaseDriver] 'my_app_link' (11.51 MB) has been downloaded to '/var/folders/ts/1_cvp8455wvcm6ydygcw1yjw0000gn/T/2019116-40525-1g41zs4.0xklvgf1or/appium-app.app' in 24.567s
[debug] [BaseDriver] Approximate download speed: 4.54 MB/s
[debug] [BaseDriver] Event 'appConfigured' logged at 1550328939857 (15:55:39 GMT+0100 (CET))
[debug] [XCUITest] Checking whether app '.../appium-app.app' is actually present on file system
[debug] [XCUITest] App is present
[Support] Error: Plist file doesn't exist: '.../appium-app.app/Info.plist'
[Support]     at Object.wrappedLogger.errorAndThrow (node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
[Support]     at Object.parsePlistFile (node_modules/appium/node_modules/appium-support/lib/plist.js:22:11)
[iOS] Error: Could not extract Info.plist from application: Plist file doesn't exist: '.../appium-app.app/Info.plist'
[iOS]     at Object.wrappedLogger.errorAndThrow (node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
[iOS]     at extractPlist (node_modules/appium/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
[XCUITest] Error: Could not extract Info.plist from application: Plist file doesn't exist: '.../appium-app.app/Info.plist'
[XCUITest]     at Object.wrappedLogger.errorAndThrow (node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
[XCUITest]     at extractPlist (node_modules/appium/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1550328939900 (15:55:39 GMT+0100 (CET))
[debug] [W3C] Encountered internal error running command: Error: Could not extract Info.plist from application: Plist file doesn't exist: .../appium-app.app/Info.plist'
[debug] [W3C]     at Object.wrappedLogger.errorAndThrow (node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
[debug] [W3C]     at extractPlist (node_modules/appium/node_modules/appium-ios-driver/lib/app-utils.js:14:9)
[HTTP] <-- POST /wd/hub/session 500 25878 ms - 859
[HTTP]

Code To Reproduce Issue [ Good To Have ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Feb 16, 2019

I don’t see any problems here. The downloaded file is only going to be extracted if either response headers point to the fact it is an archive or the file extension itself.

0reactions
lock[bot]commented, Feb 18, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS Running tests in host application fails - Bitrise Discussions
The way to fix this is to set a host application for the test target, so it is running inside an application which...
Read more >
System dialog blocks the tests to run - Bitrise
When a FBSnapshot TestCase is run, it launches the app and launches a system alert dialog asking the user for permission for push...
Read more >
Testing - Bitrise Docs
Check out our testing Steps for iOS, Android, and cross-platform apps: from Xcode tests through Flutter tests to Android Lint, you can review...
Read more >
Registering a test device - Bitrise Docs
You can register a test device easily by opening Safari on your iOS device and accessing the Test devices page from your Profile....
Read more >
Running Xcode tests - Bitrise Docs
Running Xcode tests and deploying their results to Bitrise do not require any code signing files. So don't worry about them just yet!...
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