-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instruments crashes on startup (Appium 1.3.3) #4126
Comments
What are the desired capabilities you are sending in to the server? |
|
Might be worth mentioning: it does launch the simulator. I'm unable to run tests against a physical device. |
It launches and runs on the simulator? Or just launches and then crashes? Also, can you give the caps that are received by the server? There should be a log line. Mostly, what is the value of |
It launches simulator but not app.
APP_BINARY is (the equivalent of) testapp.app. |
Ah, ok. Thanks. I'm investigating. |
I'm confused by the logs saying Instruments is trying to install Does Instruments work if you manually start it (the command is in the server logs, but not the snippet given above). |
Yeah, sorry, I've manually edited these logs from [company name] to testapp. I know I'm being a pain but need to check that I'm ok with posting company stuff publicly here before I do. The log should say:
|
HI Appium 1.3.3 info: --> POST /wd/hub/session {"desiredCapabilities":{"platformVersion":"8.1","app":"/Users/user/Desktop/VeriTestAF/VeriTestAF_Web/FunctionLibraries/InternationalMountains.app","platformName":"iOS","deviceName":"iPhone 5"}} info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5) info: [debug] Using local app from desired caps: /Users/user/Desktop/VeriTestAF/VeriTestAF_Web/FunctionLibraries/InternationalMountains.app info: [debug] Removing any remaining instruments sockets info: [debug] Cleaned up instruments socket /tmp/instruments_sock info: [debug] Setting Xcode folder info: [debug] Setting Xcode version info: [debug] Setting iOS SDK Version info: [debug] Getting sdk version from xcrun with a timeout info: [debug] iOS SDK Version set to 8.1 info: [debug] Checking whether instruments supports our device string info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1.1","iOSSDKVersion":"8.1","deviceName":"iPhone 5","platformVersion":"8.1"} info: [debug] fixDevice is on info: [debug] Not auto-detecting udid, running on sim info: [debug] Parsed app Info.plist (as binary) info: [debug] Wrote new app Info.plist with device type info: [debug] Cleaning sim data files info: [debug] Executing: xcrun simctl erase 065EC636-090F-49CE-B991-4DD35B883C51 info: [debug] Cleaning app data files warn: Applications directory /Users/user/Library/Developer/CoreSimulator/Devices/065EC636-090F-49CE-B991-4DD35B883C51/data/Containers/Data/Application doesn't exist. Have you run this simulator before? info: Couldn't find app directories to delete. Probably it's not installed info: [debug] Not pre-launching simulator info: [debug] No device id or app, not installing to real device. info: --> GET /wd/hub/status {} info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"},"isShuttingDown":false},"sessionId":"6c4848e1-b1f8-4349-9f6c-e5e768439e02"} info: <-- GET /wd/hub/status 200 1.623 ms - 178 {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"},"isShuttingDown":false},"sessionId":"6c4848e1-b1f8-4349-9f6c-e5e768439e02"} info: [debug] [INST] Waiting for device to boot... info: [debug] [INST] 2014-12-10 11:03:35 +0000 Fail: The target application appears to have died info: [debug] [INST] Instruments Trace Complete (Duration : 3.272536s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: Launching instruments info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator) info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 5 (8.1 Simulator)" /Users/user/Desktop/VeriTestAF/VeriTestAF_Web/FunctionLibraries/InternationalMountains.app -e UIASCRIPT "/Users/user/Library/Application Support/appium/bootstrap/bootstrap-a4a902c9cce7b6cb.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] [INST] Waiting for device to boot... info: [debug] [INST] 2014-12-10 11:03:44 +0000 Fail: The target application appears to have died info: [debug] [INST] Instruments Trace Complete (Duration : 2.824008s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: Launching instruments info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator) info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 5 (8.1 Simulator)" /Users/user/Desktop/VeriTestAF/VeriTestAF_Web/FunctionLibraries/InternationalMountains.app -e UIASCRIPT "/Users/user/Library/Application Support/appium/bootstrap/bootstrap-a4a902c9cce7b6cb.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] [INST] Waiting for device to boot... info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 8.) : Failed to launch process with bundle identifier 'com.yourcompany.InternationalMountains' info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: Launching instruments info: [debug] Attempting to run app on iPhone 5 (8.1 Simulator) info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w "iPhone 5 (8.1 Simulator)" /Users/user/Desktop/VeriTestAF/VeriTestAF_Web/FunctionLibraries/InternationalMountains.app -e UIASCRIPT "/Users/user/Library/Application Support/appium/bootstrap/bootstrap-a4a902c9cce7b6cb.js" -e UIARESULTSPATH /tmp/appium-instruments info: [debug] [INST] 2014-12-10 11:03:54 +0000 Fail: The target application appears to have died info: [debug] [INST] Instruments Trace Complete (Duration : 1.253203s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Cleaning sim data files info: [debug] Executing: xcrun simctl erase 065EC636-090F-49CE-B991-4DD35B883C51 info: [debug] Executing: xcrun simctl erase 065EC636-090F-49CE-B991-4DD35B883C51 info: [debug] Cleaning app data files warn: Applications directory /Users/user/Library/Developer/CoreSimulator/Devices/065EC636-090F-49CE-B991-4DD35B883C51/data/Containers/Data/Application doesn't exist. Have you run this simulator before? warn: Applications directory /Users/user/Library/Developer/CoreSimulator/Devices/065EC636-090F-49CE-B991-4DD35B883C51/data/Containers/Bundle/Application doesn't exist. Have you run this simulator before? error: Failed to start an Appium session, err was: Error: Instruments crashed on startup |
Even I'm facing same issue any help on this to get started. xcode version: 6.1.1 Appium: 1.3.1 info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Killing any other simulator daemons info: [debug] Cleaning sim data files info: [debug] Executing: xcrun simctl erase F25D7D9A-3384-4F0B-97BB-BCA33267C81A info: [debug] Cleaning app data files warn: Applications directory /Users/Administrator/Library/Developer/CoreSimulator/Devices/F25D7D9A-3384-4F0B-97BB-BCA33267C81A/data/Containers/Data/Application doesn't exist. Have you run this simulator before? error: Failed to start an Appium session, err was: Error: Instruments crashed on startup info: [debug] Cleaning up appium session info: --> GET /wd/hub/status {} info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"}}} info: <-- GET /wd/hub/status 200 5.239 ms - 104 {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"}}} info: --> GET /wd/hub/status {} info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"}}} info: <-- GET /wd/hub/status 200 3.759 ms - 104 {"status":0,"value":{"build":{"version":"1.3.3","revision":"34e21b01b87d4e3959e1c97c0a8d0b1a610bdc78"}}} info: --> GET /wd/hub/status {} |
Have you tried using the |
@imurchie , I am facing the same issue. Flag |
Hi , Same error I have experienced in my first sample script, not able to launch simulator and install our QA App build. below are specifications Mac OSx: 10.8.5 Appreciate your kind support. Regards, |
What is in the iOS system logs? |
@imurchie : Any suggestions on this. Please suggest on above error. Regards, |
The above error? Make sure that |
@imurchie: I did make progress on this. Previous configuration was not compatible (MAC 10.8.5 & Xcode 5.1.1) with IOS 8.0. After all might be seeing this error. Latest configuration (Mac 10.9.4 , Xcode 6.1.1) with IOS 8.1 iPhone 6 device with "Developer" option enable and all settings were appropriate. Receiving "Instruments crashes on startup". I was requesting for signed and provisioned build for this test. But dev team is saying doesn't need provision as our enterprise build will get install on the iPhone device. Manual team is installing the build and doing their test. So , I have proceed with enterprise build with latest IOS Appium setup to check the Dev team comment and installation of ipa file. Please see Simple code that have writhed to install and launch app. public class Test1 {
@test
} In this situation it is installed the build and received the "Crash" error. Hope above code don't have any error in it. I have seen the appium log. It is giving the error . "Failed to launch process with bundle identifier 'com.XXXX.j4u.entprod' " , this bundle identifier i have captured from info.plist I am not sure whether this is because of enterprise build or not signed build. I am seeing app is installed , manually I am able to launch the installed app. Please see the below appium log and assist me in this. |
Manual testing is fine with an app not signed by a developer certificate. Apple's instruments, however, won't be able to automate it. Try running the instruments command on its own: /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 /tmp/appium-instruments/instrumentscli0.trace -w e47ba3300ef7bcbb943db3240b5213813a5d3938 com.vons.j4u.entprod -e UIASCRIPT "/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0943baae6b1d6f5b.js" -e UIARESULTSPATH /tmp/appium-instruments |
@imurchie, this command doesn't return anything for me. I was able to solve the issue, though. Usually I just grab .app files from the Jenkins. But this time I built .app locally in Xcode with proper developer profile and it worked. Now I can continue installing .app from Jenkins, so I had to built .app in Xcode once only. That sounds odd to me. However, I was able to fix two devices this way... |
@imurchie: Thanks for your response. Predominantly , when to use given command? could you please give some detailed guidelines in order to crack this issue? Regards, |
That command is what Appium is using to launch your app with Instruments. I just pulled it from your log file. Apple's tools cannot launch your application, unfortunately. Usually this means that it is either built for the wrong target (e.g., trying to run a build for a real device on the simulator, or vice versa) or that it is not signed right for the device. |
@imurchie : I have received build which is included device udid under test. Instruments Usage Error : Specified target process is invalid: com.XXXXX.j4u.entprod as per your suggestion , i have copied above command from the log and executed , received same error. please see below log and suggest me what could be the reason for this. Dev team is said device udid is included. I am seeing App is not installed. Could you please assist me. 2015-02-11 18:33:25:720 - info: Welcome to Appium v1.3.4 (REV c8c79a8) |
It looks like the app is not being installed? Can you try installing it manually (either using Xcode or following this)? Also, you can search for this problem, and post, on the Appium discuss list. |
Any update on this? |
Closing due to inactivity |
I'm having same problem... It installs the app in real device and then cannot lunch it. This is the command where it fails:
And the response error is:
|
I'm facing the same issue "Instruments crashes on startup" info: [debug] Starting Appium in pre-launch mode info: Pre-launching app info: [debug] Using local .ipa from command line: /Users/QABPA/Downloads/MatrixeServicesV4_02.ipa info: [debug] /Users/QABPA/Downloads/MatrixeServicesV4_02.ipa copied to /var/folders/fj/cv23bkdd5b9cdx8gly3kn36m0000gt/T/115710-5716-1g8ulcs/appium-app.zip info: [debug] Unzipping /var/folders/fj/cv23bkdd5b9cdx8gly3kn36m0000gt/T/115710-5716-1g8ulcs/appium-app.zip info: [debug] Zip archive tested clean info: [debug] Unzip successful info: [debug] Using locally extracted app: /var/folders/fj/cv23bkdd5b9cdx8gly3kn36m0000gt/T/115710-5716-1g8ulcs/Payload/MatrixeServices.app info: [debug] Creating new appium session 9b4d8e30-67ad-46ed-a411-65f41402f808 info: [debug] Could not parse plist file (as binary) at /var/folders/fj/cv23bkdd5b9cdx8gly3kn36m0000gt/T/115710-5716-1g8ulcs/Payload/MatrixeServices.app/en.lproj/Localizable.strings info: [debug] Reusing dynamic bootstrap: /Users/QABPA/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js info: [debug] Creating iDevice object with udid 8cf7c3786c7fdc22a664beef69bd64520ef91082 info: [debug] App is not installed. Will try to install the app. info: [debug] Installing ipa found at /Users/QABPA/Downloads/MatrixeServicesV4_02.ipa info: [debug] Nothing found on device, going ahead and installing. info: [IOS_SYSLOG_ROW ] Aug 10 15:58:49 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:46 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:58:49 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:49 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:49 Credits-iPod-touch mobile_installation_proxy[1502] : LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x16e5fa90> com.acinfotech.eServicesSTG info: [IOS_SYSLOG_ROW ] Aug 10 15:58:50 Credits-iPod-touch installd[1322] : 0x403000 -[MIInstaller performInstallationWithError:]: Installing info: [IOS_SYSLOG_ROW ] Aug 10 15:58:50 Credits-iPod-touch profiled[1225] : (Note ) MC: Provisioning profiles changed info: [IOS_SYSLOG_ROW ] Aug 10 15:58:50 Credits-iPod-touch installd[1322] : SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName] info: [IOS_SYSLOG_ROW ] Aug 10 15:58:51 Credits-iPod-touch installd[1322] : 0x403000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.acinfotech.eServicesSTG at /private/var/mobile/Containers/Data/Application/58058854-4DCB-4C08-9220-E26B86C519C3 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:51 Credits-iPod-touch installd[1322] : 0x403000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.acinfotech.eServicesSTG at /private/var/mobile/Containers/Bundle/Application/35350549-44B3-4970-BE71-173B8B6AFEDE info: [IOS_SYSLOG_ROW ] Aug 10 15:58:51 Credits-iPod-touch installd[1322] : 0x403000 -[MIInstaller performInstallationWithError:]: Staging: 1.64s; Waiting: 0.00s; Installation: 1.06s; Overall: 2.71s info: [IOS_SYSLOG_ROW ] Aug 10 15:58:51 Credits-iPod-touch lsd[73] : LaunchServices: Updating identifier store info: [IOS_SYSLOG_ROW ] Aug 10 15:58:51 Credits-iPod-touch syncdefaultsd[1522] : (Note ) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x156454b0> info: [IOS_SYSLOG_ROW ] Aug 10 15:58:52 Credits-iPod-touch SpringBoard[42] : libMobileGestalt MobileGestalt.c:841: stand-alone-contacts is static and will never generate a notification info: [IOS_SYSLOG_ROW ] Aug 10 15:58:52 Credits-iPod-touch SpringBoard[42] : libMobileGestalt MobileGestalt.c:841: still-camera is static and will never generate a notification info: [IOS_SYSLOG_ROW ] Aug 10 15:58:52 Credits-iPod-touch SpringBoard[42] : libMobileGestalt MobileGestalt.c:841: nike-ipod is static and will never generate a notification info: [IOS_SYSLOG_ROW ] Aug 10 15:58:52 Credits-iPod-touch SpringBoard[42] : Installed apps did change. info: [IOS_SYSLOG_ROW ] Added: {( info: [IOS_SYSLOG_ROW ] Aug 10 15:58:54 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:54 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:58:54 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:54 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] Starting command proxy. info: [debug] Instruments socket server started at /tmp/instruments_sock info: [debug] Starting instruments info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: Launching instruments info: [IOS_SYSLOG_ROW ] Aug 10 15:58:56 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:56 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch DTMobileIS[1392] : Could not create service named com.apple.instruments.server.services.launchdaemon info: [IOS_SYSLOG_ROW ] Aug 10 15:58:57 Credits-iPod-touch notification_proxy[1319] : 0x355000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error! info: Launching instruments info: [debug] Attempting to run app on real device with UDID 8cf7c3786c7fdc22a664beef69bd64520ef91082 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:02 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:02 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:03 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:03 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:03 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:03 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Killall iOS Simulator info: [IOS_SYSLOG_ROW ] Aug 10 15:59:03 Credits-iPod-touch notification_proxy[1319] : 0x2d3000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error! info: [IOS_SYSLOG_ROW ] Aug 10 15:59:04 Credits-iPod-touch assistant_service[1391] : the local store doesn't allow tasks and we have no default calendar :( info: Launching instruments info: [debug] Attempting to run app on real device with UDID 8cf7c3786c7fdc22a664beef69bd64520ef91082 info: [debug] And extra without-delay env: {} info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch DTMobileIS[1392] : Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn info: [IOS_SYSLOG_ROW ] Aug 10 15:59:08 Credits-iPod-touch notification_proxy[1319] : 0x3d9000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error! info: Launching instruments info: [debug] Attempting to run app on real device with UDID 8cf7c3786c7fdc22a664beef69bd64520ef91082 info: [debug] 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 /tmp/appium-instruments/instrumentscli0.trace -w 8cf7c3786c7fdc22a664beef69bd64520ef91082 com.acinfotech.eServicesSTG -e UIASCRIPT "/Users/QABPA/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js" -e UIARESULTSPATH /tmp/appium-instruments info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22 info: [IOS_SYSLOG_ROW ] Aug 10 15:59:14 Credits-iPod-touch lockdownd[25] : Could not set socket option SO_OPPORTUNISTIC: Invalid argument info: [debug] [INSTSERVER] Instruments exited with code 253 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] fullReset requested. Will try to uninstall the app. info: [debug] Removed com.acinfotech.eServicesSTG info: [debug] Cleaning up appium session error: Could not pre-launch appium: Error: Instruments crashed on startup |
I'm new to appium, and I'm trying to run an example using the following code
But I'm getting the following error, the emulator loads and then is closed nfo: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5) |
it seems that check "Use Native Instrument Library" on Appium iOS setting panel fixes this issue. |
It is already checked but I'm still getting the message, I tried with this app error: Could not get the bundleId from app. info: [debug] Could not parse plist file (as binary) at /var/folders/mj/ysvr7x097ynb626pxp6f2zbm0000gn/T/116010-71466-zn65h1/UICatalog/UICatalog/Images.xcassets/AppIcon.app/en.lproj/Localizable.strings error: Could not set the bundleId from app. |
@kirillzhukov-cc How do you build app from Xcode to developer profile? @tfcardoso |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Instruments is crashing for me on startup, using iOS 8.1 on a mac with Xcode 6.
This isn't a new issue, but I thought that this would be fixed by appium 1.3.3.
Console output:
The text was updated successfully, but these errors were encountered: