Hi Wreed,
Thanks for the response.
I could get the SafariLauncher launch on my iPhone. But now it crashed the very next second of its launch.
Things i did:
Connect iphone to the MAC, launched $ios_webkit_debug_proxy -c ec0eedd25d043834097e1e403c3cbc99e14634b6:27753 -d
launched appium server (with app path set to Safarilauncher.app) and clicked on Inspector.
Appium Log:
Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --address “127.0.0.1” --log-no-colors --platform-version “8.3” --platform-name “iOS” --app “/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app” --udid “ec0eedd25d043834097e1e403c3cbc99e14634b6” --device-name “MdmIphone” --native-instruments-lib
info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“app”:"/Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app",“udid”:“ec0eedd25d043834097e1e403c3cbc99e14634b6”,“address”:“127.0.0.1”,“logNoColors”:true,“nativeInstrumentsLib”:true,“deviceName”:“MdmIphone”,“platformName”:“iOS”,“platformVersion”:“8.3”}
info: Console LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 9.263 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 3.082 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 0.795 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: <-- GET /wd/hub/status 200 0.949 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”}}}
info: --> GET /wd/hub/sessions {}
info: [debug] Responding to client with success: {“status”:0,“value”:[]}
info: <-- GET /wd/hub/sessions 200 1.058 ms - 23 {“status”:0,“value”:[]}
info: --> POST /wd/hub/session {“desiredCapabilities”:{“platformName”:“iOS”,“platformVersion”:“8.3”,“newCommandTimeout”:“999999”,“automationName”:“Appium”,“deviceName”:“MdmIphone”}}
info: Client User-Agent string: Appium (unknown version) CFNetwork/720.3.13 Darwin/14.3.0 (x86_64)
info: [debug] Using local app from command line: /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app
info: [debug] Creating new appium session d8c673d0-37e4-4a5d-bec8-b197e47001c5
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.3
info: [debug] Not checking whether simulator is available since we’re on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Users/test/Desktop/Softwares/Appium/SafariLauncherapp/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/test/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“grouped”}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
info: [debug] Dynamic bootstrap path: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
info: [debug] Reusing dynamic bootstrap: /Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3”,“iOSSDKVersion”:“8.3”,“deviceName”:“MdmIphone”,“platformVersion”:“8.3”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘MdmIphone (8.3 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons
info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Not pre-launching simulator
info: [debug] Creating iDevice object with udid ec0eedd25d043834097e1e403c3cbc99e14634b6
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id ec0eedd25d043834097e1e403c3cbc99e14634b6 --bundle com.accenture.mobility.appfactory.dev1.SafariLauncher
info: [debug] App is installed.
info: [debug] fullReset not requested. No need to install.
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: [debug] Attempting to run app on real device with UDID ec0eedd25d043834097e1e403c3cbc99e14634b6
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 ec0eedd25d043834097e1e403c3cbc99e14634b6 com.accenture.mobility.appfactory.dev1.SafariLauncher -e UIASCRIPT “/Users/test/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 1.136 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 1.127 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: <-- GET /wd/hub/status 200 0.728 ms - 178 {“status”:0,“value”:{“build”:{“version”:“1.3.7”,“revision”:“72fbfaa116d3d9f6a862600ee99cf02f6d0e2182”},“isShuttingDown”:false},“sessionId”:“d8c673d0-37e4-4a5d-bec8-b197e47001c5”}
info: [debug] [INST STDERR] 2015-04-23 11:01:29.394 instruments[4225:105394] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] 2015-04-23 11:01:32.914 instruments[4225:105394] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
info: [debug] [INST] 2015-04-23 05:31:32 +0000 Fail: An error occurred while trying to run the script.
info: [debug] [INST] Instruments Trace Complete (Duration : 2.133358s; 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] Attempting to retry launching instruments, this is retry #1
info: [debug] Killall iOS Simulator
=================================================================
Please note that Safarilauncher was built from Xcode 6.3 for the iOS build 8.3 with a valid developer certificate and provisioning profile.
If you know the reason and solution for the issue I am facing. please let me know.
Thanks in advance.