When I launch the App on Real Iphone 5s device using Appium 1.3.1 and XCode 6.0.1, the App launches but then hangs while trying loading the initial page.
Real Device: IPhone 5s [ I did turned the Developer Enable UI Automation flag on the device]
Appium Version : 1.3.1
IOS Version: ios 8.0
XCode: 6.0.1
See what I use for Capabilities below and how i launch the app:
DesiredCapabilities maCapabilities = new DesiredCapabilities();
maCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,
"iOS");
maCapabilities.setCapability("device", "iphone");// apple
maCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION,
"8.0");
maCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME,
"iPhone");
maCapabilities.setCapability("target", "iOS");
maCapabilities.setCapability("udid",
"87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e");
maCapabilities.setCapability(MobileCapabilityType.APP,
"com.savewave.SavingStar");
maCapabilities.setCapability("showIOSLog", "true");
driver = new IOSDriver(new URL("http://0.0.0.0:4723/wd/hub"),
maCapabilities);
See output from console log below:
info: Welcome to Appium v1.3.1 (REV 1160ce02bb89c354cb99317985123acf39f0e7d3)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: [debug] Non-default server args: {“log”:"/tmp/appium.log",“defaultDevice”:true,“showSimulatorLog”:true,“defaultCommandTimeout”:7200}
warn: Deprecated server args: {"–show-sim-log":“use instead: --show-ios-log”}
info: Console LogLevel: debug
info: File LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: <-- GET /wd/hub/status 200 4.853 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: <-- GET /wd/hub/status 200 1.591 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: <-- GET /wd/hub/status 200 1.921 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}}
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“com.savewave.SavingStar”,“platformVersion”:“8.0”,“showIOSLog”:“true”,“deviceName”:“iPhone”,“platformName”:“iOS”,“target”:“iOS”,“device”:“iphone”,“udid”:“87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e”}}
info: Client User-Agent string: Apache-HttpClient/4.3.1 (java 1.5)
warn: Converting cap showIOSLog from string to boolean. This might cause unexpected behavior.
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : target, device
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session ba2b783a-6e17-47cd-95ff-bd3463884874
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
error: xcrun threw an error Error: Command failed:
error: Stderr:
error: Stdout:
info: [debug] Getting sdk version from xcrun with a timeout
error: xcrun threw an error Error: Command failed:
error: Stderr:
error: Stdout:
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 8.0
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 /Applications/Appium.app/Contents/Resources/node_modules/appium/com.savewave.SavingStar/en.lproj/Localizable.strings
parseFileSync()
is deprecated. Use parseStringSync()
instead.
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.savewave.SavingStar/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/kshieh/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}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
…
info: [debug] Dynamic bootstrap path: /Users/kshieh/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Reusing dynamic bootstrap: /Users/kshieh/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.0.1”,“iOSSDKVersion”:“8.0”,“deviceName”:“iPhone”,“platformVersion”:“8.0”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone (8.0 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 87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e
info: [debug] Couldn’t find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e --bundle com.savewave.SavingStar
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 87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e
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 87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e com.savewave.SavingStar -e UIASCRIPT “/Users/kshieh/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [IOS_SYSLOG_ROW ] Nov 7 12:11:54 iPhone syslog_relay[277] : syslog_relay found the ASL prompt. Starting…
info: [IOS_SYSLOG_ROW ] Nov 7 12:11:54 iPhone mobile_installation_proxy[148] : 0x1006c0000 handle_connection: Could not receive request from host.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:00 iPhone syncdefaultsd[1650] : (Note ) marked “com.me.keyvalueservice” topic as “ignored” on (null)
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:00 iPhone syncdefaultsd[1654] : (Note ) SYDAlwaysOnAccount: no account (null)
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:00 iPhone syncdefaultsd[1654] : (Note ) SYDAccount: no account
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:00 iPhone syncdefaultsd[1654] : (Note ) SYDPIMAccount: no account (null)
info: [debug] [INST STDERR] 2014-11-07 12:12:04.129 instruments[7488:2107] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : Entitlement com.apple.multitasking.termination required to kill applications.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone mediaserverd[19] : ‘’ com.savewave.SavingStar(pid = 689) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone mediaserverd[19] : ‘’ com.savewave.SavingStar(pid = 689) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.savewave.SavingStar[0x64d][689]) : Service exited due to signal: Killed: 9
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone backboardd[51] : ALS: SetDisplayFactor: factor=1.0000
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : [MPUSystemMediaControls] Enabling lock screen media controls updates for screen turning on.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone backboardd[51] : MultitouchHID: detection mode: 255->6 (deferring until bootloaded)
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : Application ‘UIKitApplication:com.savewave.SavingStar[0x64d]’ exited abnormally via signal.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : [MPUSystemMediaControls] Updating supported commands for now playing application.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : [MPUSystemMediaControls] Updating supported commands for now playing application.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone SpringBoard[48] : [MPUSystemMediaControls] Updating supported commands for now playing application.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone backboardd[51] : MultitouchHID: device bootloaded
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone backboardd[51] : MultitouchHID: detection mode: 6->3
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:09 iPhone backboardd[51] : MultitouchHID: detection mode: 3->3
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone kernel[0] : xpcproxy[1656] Container: /private/var/mobile/Containers/Data/Application/40E4143D-0668-4476-A2C3-98623A39F0F9 (sandbox)
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone locationd[55] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone SavingStar[1656] : assertion failed: 12A365: libxpc.dylib + 51947 [ACFE5F1E-68D9-3D24-9B65-D604403A9625]: 0x7d
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone Unknown[1656] :
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone SavingStar[1656] : [DEBUG] Reading stylesheet from: /private/var/mobile/Containers/Bundle/Application/A120A45A-5695-4F8A-A4B9-6660A7E4E0A9/SavingStar.app/stylesheet.plist
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:11 iPhone SavingStar[1656] : [INFO] SavingStar/4.3.7 (3.4.1.446dfb1)
info: Instruments is ready to receive commands
info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: “target = $.target();\nau = $;\n$.isVerbose = true;\n”
info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;
info: [debug] [INST] 2014-11-07 17:12:16 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“SavingStar”,“label”:“SavingStar”,“value”:null,"…
info: [debug] Socket data received (7748 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“SavingStar”,“label”:“SavingStar”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0",“x”:0,“y”:20,“width”:320,“height”:548},">":[{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:tr
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 7200 secs
info: [debug] Appium session started with sessionId ba2b783a-6e17-47cd-95ff-bd3463884874
info: <-- POST /wd/hub/session 303 35436.927 ms - 9
info: --> GET /wd/hub/session/ba2b783a-6e17-47cd-95ff-bd3463884874 {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:“iOS”,“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“warnings”:{},“desired”:{“app”:“com.savewave.SavingStar”,“platformVersion”:“8.0”,“showIOSLog”:true,“deviceName”:“iPhone”,“platformName”:“iOS”,“target”:“iOS”,“device”:“iphone”,“udid”:“87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e”},“app”:“com.savewave.SavingStar”,“platformVersion”:“8.0”,“showIOSLog”:true,“deviceName”:“iPhone”,“platformName”:“iOS”,“target”:“iOS”,“device”:“iphone”,“udid”:“87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e”},“sessionId”:“ba2b783a-6e17-47cd-95ff-bd3463884874”}
info: <-- GET /wd/hub/session/ba2b783a-6e17-47cd-95ff-bd3463884874 200 2.369 ms - 698 {“status”:0,“value”:{“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:“iOS”,“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“warnings”:{},“desired”:{“app”:“com.savewave.SavingStar”,“platformVersion”:“8.0”,“showIOSLog”:true,“deviceName”:“iPhone”,“platformName”:“iOS”,“target”:“iOS”,“device”:“iphone”,“udid”:“87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e”},“app”:“com.savewave.SavingStar”,“platformVersion”:“8.0”,“showIOSLog”:true,“deviceName”:“iPhone”,“platformName”:“iOS”,“target”:“iOS”,“device”:“iphone”,“udid”:“87df22d04a204b5b5d0d6cdf562e9bf34be0fd3e”},“sessionId”:“ba2b783a-6e17-47cd-95ff-bd3463884874”}
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1653] : (Note ) mstreamd: Not monitoring for external power.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1653] : (Note ) PS: Media stream daemon stopping.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1653] : (Note ) AS: <MSIOSAlbumSharingDaemon: 0x15552a780>: Shared Streams daemon has shut down.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1653] : (Warn ) mstreamd: mstreamd shutting down.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1659] : (Note ) mstreamd: mstreamd starting up.
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:23 iPhone mstreamd[1659] : (Note ) PS: Media stream daemon starting…
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:39 iPhone kernel[0] : 041189.976333 wlan0.A[20935] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x0)
info: [IOS_SYSLOG_ROW ] Nov 7 12:12:44 iPhone kernel[0] : 041194.986423 wlan0.A[20936] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x1)
Any thoughts or ideas on why this is happening?