Comments (9)
Complete Logs:
Appium_Error_Logs.txt
from appium-ios-simulator.
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.
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.
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.
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.
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.
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.
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.
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)
- Should be able to get the log path for a simulator HOT 1
- cleanup code in there,
- minor cleanup HOT 1
- Action required: Greenkeeper could not be activated 🚨
- 1.5 cleanup HOT 1
- setPermission probably doesn't work, WDA stops HOT 10
- isShutdown() not working HOT 4
- Settings update methods should indicate their own status
- Xcode 9.3 wrong path in buildBundlePathMap HOT 4
- about log HOT 1
- locale bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-ios-simulator.