I’m trying to build automated test on ipad programmatically but i’m facing a probleme the server send me the following logs :
Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/build/libimobiledevice-macosx/ideviceinstaller
Error: write EPIPE
at exports._errnoException (util.js:890:11)
at WriteWrap.afterWrite (net.js:767:14)
The real problem is that I do not have build/libimobiledevice-macosx/ideviceinstaller in /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/
have i missed a step when i installed appium ?
thx already for your reply
i tried to find ideviceinstaller but without success … i’m searching on google for install at a special location but i don’t really know if it will work …
Do you get any output? I get this - /usr/local/bin/ideviceinstaller
if you don’t get any output. I would suggest you to go to this location and see if ideviceinstaller is present or not. And then add path to ideviceinstaller in your PATH variable in bash_profiles or bashrc
yes i get the same then i copied, like @Cauthon said, at the path asked
Mac-mini-de-admin:bin admin$ cd /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/build/libimobiledevice-macosx/
Mac-mini-de-admin:libimobiledevice-macosx admin$ ls
ideviceinstaller
but … when i run it …
[debug] [iOS] Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/build/libimobiledevice-macosx/ideviceinstaller
Error: write EPIPE
at exports._errnoException (util.js:890:11)
at WriteWrap.afterWrite (net.js:767:14)
Suman_Bala made some great points, that may be the reason it is having issues.
Another thought I had was authorize-ios. Did you install/run this? I used npm to install it by running npm install -g authorize-ios from the terminal. Once installed, I ran sudo authorize-ios.
If you haven’t run authorize-ios, I don’t believe you’ll be able to connect to iOS devices.
i didn’t installed node by myself on this computer … so i don’t really know how is installed node,
should i get the resources’s node_module or the appium’s node_module in path variable?
so yes i’ve done this step
… after a retry right now i face another issue … when i run my command line.I’ll restart to see if there is no another process that is breaking something
edit: it’s ok now i restarted and my command is working … but my goal is to make it work with a redirection at the end (>AppiumLog’+date.getHours()+""+date.getMinutes()+""+date.getSeconds()+’.txt’)
when i try to do it i appium tell me the error that we try to fix…
It was a java problem (a path problem) like @Suman_Bala said.
When i run my command line I do it with java and java don’t import environnement variable like bash do
So I have added environnement in the command, thx to @Cauthon and @Suman_Bala
It’s working fine now.
bye