Launching ios app on real device with appium gives error with ideviceinstaller - device

I'm tring to run appium tests on real device, but it fails at this step:
.
.
.
info: [debug] App is not installed. Will try to install the app.
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib
Reason: image not found
info: [debug] Error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app
dyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib
Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib
Reason: image not found
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n)","killed":false,"code":null,"signal":"SIGTRAP","cmd":"/bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/Myapp/capture_page_response_time/Build/Products/Debug-iphoneos/Myapp.app","origValue":"Command failed: /bin/sh -c ideviceinstaller -u 688d4920c35beee00c151029f0ec4fc177c2de08 -i /Users/a8/myapp/test/Build/Products/Debug-iphoneos/Myapp.app\ndyld: Library not loaded: /usr/local/lib/libusbmuxd.4.dylib\n Referenced from: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib\n Reason: image not found\n"},"sessionId":null}
What am i missing? I did install ideviceinstaller manually.
I'm using Xcode: 7.2, Appium: 1.3.13, iPhone: 5s, 6 , iOS 9.0
I saw similar posts, but did not find a solution that could help me.
One being: Appium iOS real device - issue with ideviceinstaller

Run ./reset.sh --ios --real-safari
the reset.sh file should be in the appium directory.
Hope this helps,
Liam

Related

xcode-select cannot locate clang, even after installing command line tools

When I try to run the clang command, I get the following error:
xcode-select: Failed to locate 'clang', requesting installation of command line developer tools.
And then I receive this pop-up:
However, no matter how many times I click "Install" - going through a 15-minute install process - I continue to get the same error.
I have also tried running xcode-select --install however that gives the following error:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I have also tried manually installing from here.
I'm on an M1 mac running macOS Monterey Version 12.5.
It also yields a core dump:
2022-09-19 10:51:04.669 xcodebuild[1541:17443] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'
2022-09-19 10:51:04.688 xcodebuild[1541:17443] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-21303/DVTFoundation/PlugInArchitecture/DataModel/DVTPlugIn.m:374
Details: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin)
Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.
NSBundle error: Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJC_CLASS_$_SimDiskImage)
Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability'
Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}
Object: <DVTPlugIn: 0x60000080b7a0>
Method: -loadAssertingOnError:error:
Thread: <_NSMainThread: 0x600002c402c0>{number = 1, name = main}
Hints:
Backtrace:
0 0x000000010653d410
1 0x000000010653caec
2 0x000000010653cc6c
3 0x00000001063eb2ac
4 0x00000001063b1118
5 0x00000001063af528
6 0x0000000181aa01b4
7 0x0000000181aaf414
8 0x000000010658158c
9 0x000000010655d4b0
10 0x00000001063af3c0
11 0x00000001063af5e0
12 0x00000001074372ec
13 0x0000000107436ae0
14 0x00000001074361e8
15 0x0000000104c70324
16 0x0000000104c21e0c
sh: line 1: 1543 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null
clang: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find clang 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument)
How can I install clang?
Please ensure Xcode packages are up-to-date — try running xcodebuild -runFirstLaunch.
This worked for me.
I had the same problem and updated Xcode, relinked paths etc, which didn't help.
What worked was opening Xcode after the update and accepting the prompt to load essential development tools (for macOS and iOS).
A bit hidden in the error message is also the CLI solution: "Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'."
You can also open Xcode, select the default runtime tools (MacOS and iOS in my case), then clang should run as normal.
I believe this is the same as doing #LanderTome's answer, but not able to verify.
After installing XCode 14.1 on MacOS Ventura 13.0.1, my clang didn't work with an error very similar to this, and repeatedly tried to install the XCode command line tools. It turns out that xcode-select was pointing to the command line tools that are part of the full XCode package, and failing to find clang in there. clang is included in the command line tools package, but not in some versions of the full XCode package.
What I did to fix it was:
sudo xcode-select -switch /Library/Developer/CommandLineTools
This switches the location that clang and other tools are run from. If you want to switch back to running them from the XCode package, you can use:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Error in installation of Octave on MacOS Monterey libgfortran.5.dylib

When I try to install Octave on MacOS Monterey I get the error below. It cannot find the libgfortran in the location it is searching for. But when I locate gfortran.5.dylib it is installed in /opt/local/lib/gcc-devel/libgfortran.5.dylib
The error for octave:
:debug:destroot Executing proc-post-org.macports.destroot-destroot-1
:debug:destroot system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-6.4.0: ./run-octave -cli -q -f -H --eval 'try; pkg prefix /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/share/octave/packages /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/lib/octave/packages; pkg global_list /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/share/octave/octave_packages; pkg -verbose -global rebuild; disp(lasterror.message); catch; exit(1); end_try_catch;'
:info:destroot dyld[40228]: Library not loaded: #rpath/libgfortran.5.dylib
:info:destroot Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-6.4.0/src/.libs/octave-cli
:info:destroot Reason: tried: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-6.4.0/libinterp/.libs/libgfortran.5.dylib' (no such file), '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/octave-6.4.0/liboctave/.libs/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file)
:info:destroot Command failed: ./run-octave -cli -q -f -H --eval 'try; pkg prefix /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/share/octave/packages /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/lib/octave/packages; pkg global_list /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/work/destroot/opt/local/share/octave/octave_packages; pkg -verbose -global rebuild; disp(lasterror.message); catch; exit(1); end_try_catch;'
:info:destroot Killed by signal: 6
:error:destroot Failed to destroot octave: command execution failed
:debug:destroot Error code: NONE
:debug:destroot Backtrace: command execution failed
:debug:destroot while executing
:debug:destroot "$post $targetname"
:error:destroot See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_octave/octave/main.log for details.

gdal dyld: Library not loaded Reason: image not found

➜ ishan git:(master) ✗ ogr2ogr -f GPKG ./testgpkg.gpkg combining_elevation_coastline_data.csv -oo X_POSSIBLE_NAMES=x -oo Y_POSSIBLE_NAMES=y -a_srs 'EPSG:4326'
dyld: Library not loaded: #rpath/libpoppler.91.dylib
Referenced from: /Users/ishansrivastava/miniconda/lib/libgdal.26.dylib
Reason: image not found
[1] 94711 abort ogr2ogr -f GPKG ./testgpkg.gpkg combining_elevation_coastline_data.csv -oo
I am trying to convert a csv file into a geopackage file
things i tried:
1.
brew update
brew upgrade
brew cleanup
reinstalled xcode command line tools
3.
https://stackoverflow.com/a/50261326/7806805
4.
https://stackoverflow.com/a/17704255/7806805
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic: can't open file: exefile (No such file or directory)
https://stackoverflow.com/a/62011143/7806805
what finally worked:
conda update -c rdonnellyr -c main --all

nginx on mac - dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib

I have installed nginx on mac using source. Commands used are as below.
cd pcre-8.40
/configure --prefix=/Users/nginx_folder/
make && make install && make clean
cd ..
cd ngnix-1.10.3
/configure --prefix=/Users/nginx_folder/ --with-pcre=../pcre-8.40 --with-http_ssl_module
make && make install && make clean
After installing when i ran nginx it is throwing below error.
Error:
-----------
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced from: /Users/nginx_folder/nginx/sbin/./nginx
Reason: no suitable image found.
Can any one help me resolving this error?

dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib

I used to use an AppleScript from years, but since a few days, I cannot run it anymore
I have the error message
"dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib
Referenced from: /usr/bin/php
Reason: image not found"
"dyld: Library not loaded: /usr/lib/libnetsnmp.25.dylib
Referenced from: /usr/bin/php
Reason: image not found (1005)"
Any idea how I can fix that
Many thanks
I had same problem with PHP after updated the OS X system and solved by this (type this in terminal console):
sudo ln -s /usr/lib/libnetsnmp.30.dylib /usr/lib/libnetsnmp.25.dylib
Hope this helps you as well.

Resources