Git Product home page Git Product logo

Comments (9)

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Complete Logs:
Appium_Error_Logs.txt

from appium-ios-simulator.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

What happen when you run below command?

[debug] [W3C] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent -destination id=9717068F-24C9-48CA-94FF-0CC105CAF636 IPHONEOS_DEPLOYMENT_TARGET=13.7 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO

from appium-ios-simulator.

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Hi @KazuCocoa,

Thanks for your response.

I am getting the below error :

Testing failed:
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app (1862) encountered an error (Failed to create a bundle instance representing '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest'. Check that the bundle exists on disk.)

** TEST EXECUTE FAILED **

I can confirm the bundle does exist in the said location.

Digitals-Mac-mini:appium-webdriveragent digitalautomation$ cd build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/PlugIns/
Digitals-Mac-mini:PlugIns digitalautomation$ ls
WebDriverAgentRunner.xctest
Digitals-Mac-mini:PlugIns digitalautomation$

Also tried to build and test the WebDriverAgent.xcodeproj in Xcode but no luck. Getting the same error.

Thanks.

from appium-ios-simulator.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

I guess your command failed to create proper files because of permission issue.
We recommend not to install appium as sudo, but I guess yours were installed as sudo. (since your module was in /usr/local/lib/node_modules/appium)

Make sure you have not installed Node or Appium with sudo, otherwise you'll run into problems).

http://appium.io/docs/en/about-appium/getting-started/

Could you fix the permission for the appium directory?

from appium-ios-simulator.

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Hi @KazuCocoa , Thanks for your response.

I used the below command to install appium:
npm install -g appium
For installing some of the dependencies (Ex: ios-deploy , ideviceinstaller) i used homebrew commands.

from appium-ios-simulator.

KazuCocoa avatar KazuCocoa commented on July 19, 2024

It seems you built npm (node) environment as root permission. So, npm install -g appium was also installed as root.
Common solutions are building node env without root or you can also change your local permission in /usr/local/lib/node_modules/appium. You can google both ways.

from appium-ios-simulator.

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Hi @KazuCocoa ,

I have uninstalled appium and node from my system.
Then installed node : brew install node

Now, when I am trying to install appium, I am getting the below error:

npm install -g appium
npm notice
npm notice New patch version of npm available! 7.0.3 -> 7.0.5
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.5
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/digitalautomation/.npm/_logs/2020-10-24T23_15_20_672Z-debug.log

Do you know what causes this NOENT error?

Thanks

from appium-ios-simulator.

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Uninstalled node that was installed using brew and reinstalled using NodeJs installer. This error is resolved.
However, I am still getting the error when trying to build the test app:

Testing failed:
WebDriverAgentRunner:
WebDriverAgentRunner-Runner.app (7152) encountered an error (Failed to create a bundle instance representing '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest'. Check that the bundle exists on disk.)

from appium-ios-simulator.

prachuryasahoo avatar prachuryasahoo commented on July 19, 2024

Issue has been Resolved

Error :
WebDriverAgentRunner-Runner.app (7152) encountered an error (Failed to create a bundle instance representing '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Build/Products/Debug-iphonesimulator/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest'. Check that the bundle exists on disk.)

Resolution:
Navigate to the directory: cd /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent
Rename build to Build : mv build Build

from appium-ios-simulator.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.