Hello, colleagues!
I am using iPhone 5s (iOS 9.3.2). Enable UI Automation on device. As for computer - OSX Sierra 10.12.2, Xcode 7.1.3, Appium v1.6.0-beta3.
Install/uninstall works by appium, but as for launch ipa, displayed error:
Instruments exited with code: 255
[Instruments] Error launching instruments: Instruments crashed on startup
[debug] [Instruments] Attempting to launch instruments, this is try #5
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID ‘6adfff10640ea716cf7f67ad5bb3f1c4c58d1657’
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] Spawning instruments with command: ‘/Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /var/folders/pd/167xb75974q_yf1lfgpp4ty40000gn/T/appium-instruments/instrumentscli0.trace -w 6adfff10640ea716cf7f67ad5bb3f1c4c58d1657 com.waverleysoftware.matrix -e UIASCRIPT “/Users/olga/Library/Application Support/appium/bootstrap/bootstrap-8e4aba1858c48c47.js” -e UIARESULTSPATH /var/folders/pd/167xb75974q_yf1lfgpp4ty40000gn/T/appium-instruments’
[debug] [Instruments] And extra without-delay env: {}
[debug] [Instruments] And launch timeouts (in ms): {“global”:90000}
[debug] [Instruments] [INST STDERR] Instruments Usage Error: Specified target process is invalid: com.waverleysoftware.matrix
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
[debug] [Instruments] Instruments exited with code: 255
[Instruments] Error launching instruments: Instruments crashed on startup
[Instruments] Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Instruments.launch$ (lib/instruments.js:223:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Instruments.launch$ (lib/instruments.js:223:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[MJSONWP] Encountered internal error running command: Error: We exceeded the number of retries allowed for instruments to successfully start; failing launch
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at Instruments.launch$ (lib/instruments.js:223:15)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
Check this:
instruments -s devices
Known Devices:
MacBook Pro — Olga [C42DA309-5A03-5CD7-834D-AEFB5385762C]
iPhone (9.3.2) [6adfff10640ea716cf7f67ad5bb3f1c4c58d1657]
And this:
ideviceinstaller -i /Users/olga/Downloads/matrix.ipa
WARNING: could not locate iTunesMetadata.plist in archive!
WARNING: could not locate Payload/Matrixx Mobile.app/SC_Info/Matrixx Mobile.sinf in archive!
Copying ‘/Users/olga/Downloads/matrix.ipa’ to device… DONE.
Installing ‘com.waverleysoftware.matrix’
- CreatingStagingDirectory (5%)
- ExtractingPackage (15%)
- InspectingPackage (20%)
- TakingInstallLock (20%)
- PreflightingApplication (30%)
- InstallingEmbeddedProfile (30%)
- VerifyingApplication (40%)
- CreatingContainer (50%)
- InstallingApplication (60%)
- PostflightingApplication (70%)
- SandboxingApplication (80%)
- GeneratingApplicationMap (90%)
- Complete
Could you help me resolved this issue, please