Hi All,
I am using following configuration to run my scripts on IOS simulator.
Mac O.S -10.9.5
Xcode - 6.2.2
Simulator - Iphone 6 (8.1 simulator)
When launching the app through appium GUI. Simulator launches the app in a loop and finally gets crashed.
Below are the appium logs.
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app
info: [debug] Using local .ipa from command line: /Users/pratyush/Desktop/Cleartrip_Adco47.ipa
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/pratyush/Desktop/Cleartrip_Adco47.ipa copied to /var/folders/f4/28x2pxyj19b_977czhn11ty80000gp/T/115213-902-ub2d0x/appium-app.zip
info: [debug] Unzipping /var/folders/f4/28x2pxyj19b_977czhn11ty80000gp/T/115213-902-ub2d0x/appium-app.zip
info: [debug] Testing zip archive: /var/folders/f4/28x2pxyj19b_977czhn11ty80000gp/T/115213-902-ub2d0x/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/f4/28x2pxyj19b_977czhn11ty80000gp/T/115213-902-ub2d0x/Payload/Cleartrip.app
info: [debug] Creating new appium session 8aca62f9-bafe-472f-941d-3061291ebefe
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] 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] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
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/pratyush/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/pratyush/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
info: [debug] Reusing dynamic bootstrap: /Users/pratyush/Library/Application Support/appium/bootstrap/bootstrap-2911698fabce8e2c.js
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] Final device string is: ‘iPhone 5 (8.1 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 9845da05660d230e24b425daab68cb8ab3188243
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 9845da05660d230e24b425daab68cb8ab3188243 --bundle com.cleartrip.iphoneapp
info: [debug] App is not installed. Will try to install the app.
info: [debug] Installing ipa found at /Users/pratyush/Desktop/Cleartrip_Adco47.ipa
info: [debug] Creating iDevice object with udid 9845da05660d230e24b425daab68cb8ab3188243
info: [debug] Nothing found on device, going ahead and installing.
info: [IOS_SYSLOG_ROW ] Mar 13 16:03:51 Mohameds-iPhone syncdefaultsd[320] : (Note ) marked “com.me.keyvalueservice” topic as “opportunistic” on <APSConnection: 0x16611480>
info: [IOS_SYSLOG_ROW ] Mar 13 16:03:51 Mohameds-iPhone kernel[0] : flow_divert_token_set (0): Failed to get the key unit from the token: 22
Thanks In Advance
