appium: XCUITest iOS 12: Failed to load Info.plist from bundle

The problem

Getting error Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app.

Happens every other time I run an XCUI session.

e.g.) I run a session once, it works, I run a session again it gets that error, I run a session again it works, …

Capabilities:

{
  "platformName": "iOS",
  "automationName": "XCUITest",
  "deviceName": "iPhone 6",
  "platformVersion": "12.0",
  "showIOSLog": false,
  "showXcodeLog": false,
  "app": "/Users/danielgraham/appium-xcuitest-driver/test/assets/UICatalog-iphonesimulator.app"
}

Environment

  • Appium version (or git revision) that exhibits the issue: latest master
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: MacOS
  • Node.js version (unless using Appium.app|exe): 8
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: CLI

Uses Xcode 10 beta latest

Link to Appium logs

[simctl] Error: simctl error running 'install': An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
[simctl] This app could not be installed at this time.
[simctl] Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[simctl] Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[simctl] Underlying error (domain=MIInstallerErrorDomain, code=35):
[simctl] 	Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[simctl]     at Object.wrappedLogger.errorAndThrow (/Users/danielgraham/appium/node_modules/appium-support/lib/logging.js:78:13)
[simctl]     at simCommand$ (/Users/danielgraham/appium/node_modules/node-simctl/lib/simctl.js:50:11)
[simctl]     at tryCatch (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[simctl]     at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[simctl]     at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[simctl]     at GeneratorFunctionPrototype.invoke (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[XCUITest] Error: simctl error running 'install': An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
[XCUITest] This app could not be installed at this time.
[XCUITest] Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[XCUITest] Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[XCUITest] Underlying error (domain=MIInstallerErrorDomain, code=35):
[XCUITest] 	Failed to load Info.plist from bundle at path /Users/danielgraham/Library/Developer/CoreSimulator/Devices/F613F592-6050-4AB2-BE63-A468C58D607F/data/Library/Caches/com.apple.mobile.installd.staging/temp.7UHiFq/extracted/Payload/UICatalog-iphonesimulator.app
[XCUITest]     at Object.wrappedLogger.errorAndThrow (/Users/danielgraham/appium/node_modules/appium-support/lib/logging.js:78:13)
[XCUITest]     at simCommand$ (/Users/danielgraham/appium/node_modules/node-simctl/lib/simctl.js:50:11)
[XCUITest]     at tryCatch (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[XCUITest]     at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[XCUITest]     at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[XCUITest]     at GeneratorFunctionPrototype.invoke (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

Code To Reproduce Issue [ Good To Have ]

Run these capabilities from Appium Desktop:

{
  "platformName": "iOS",
  "automationName": "XCUITest",
  "deviceName": "iPhone 6",
  "platformVersion": "12.0",
  "showIOSLog": false,
  "showXcodeLog": false,
  "app": "/Users/danielgraham/appium-xcuitest-driver/test/assets/UICatalog-iphonesimulator.app"
}

Run session over-and-over

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 38 (14 by maintainers)

Most upvoted comments

Closing this as it cannot be reproduced anymore

What do you mean it cannot be reproduced anymore? As @mariuszmachniakavanade stated above, this is perfectly reproducible even with final XCode 10 release. Have you performed any investigation on your end?

I investigated this further.

I was able to reproduce this code=35 issue in launching WebDriverAgent when I ran multiple xcodebuild at the same time. The situation could easy to happen when I tried to invoke tests on multiple simulators.

In my environment, 2 parallel had no issue. But this seldom happened in 3 or 4 parallel cases. I was not sure this was actually xcodebuild’s internal issue, but this happened in xcode build layer.

in WebDriverAgent case, we can avoid this sometimes. We already have retry logic for https://github.com/appium/appium-xcuitest-driver/blob/cbc45e964e17cbd195e3a646b3b11a48156797b8/lib/wda/webdriveragent.js#L198

:note: A couple of friends of mine told me they also faced this issue, Failed to load Info.plist, when they ran their app on simulator 12.0 x Xcode 10.0. It was fixed after restarting Xcode or machines. They simply built and ran their app. It was not Appium related. Thus, I assume xcodebuild or simulator has a trouble.

:note: A couple of friends of mine told me they also faced this issue, Failed to load Info.plist, when they ran their app on simulator 12.0 x Xcode 10.0. It was fixed after restarting Xcode or machines. They simply built and ran their app. It was not Appium related. Thus, I assume xcodebuild or simulator has a trouble.

I am facing this issue and not using Apium on this project. A reset of my simulator fixed it. Indeed a bug but somewhere between xCode 10 and the simulator

Closing as fixed.

Try appium@beta