Hi,
I have two xcode in my system Version 5.1.1 (5B1008) and Version 5.0.2 (5A3005)
If I set the xcode path to Version 5.0.2 (5A3005) and if I run the appium starts but while set the xcode path to Version 5.1.1 (5B1008) and if I run the appium returns error. below are the logs,
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app
info: [debug] Using local app from command line: /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app
info: [debug] Creating new appium session e8fc73db-43c0-46fd-b16f-a9aed56c33ed
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] iOS SDK Version set to 7.1
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
error: Could not parse plist file (as binary) at /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
warn: Could not parse app Localizable.strings
info: [debug] Not setting locale
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir:
info: [debug] Dynamic env:
info: [debug] Dynamic bootstrap code:
info: [debug] Dynamic bootstrap path:
parseFileSync()
is deprecated. Use parseStringSync()
instead.
error: Could not parse plist file (as XML) at /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app/en.lproj/Localizable.strings
info: [debug] Reusing dynamic bootstrap:
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 7.* simulator log capture
info: [debug] User specified default device, letting instruments launch it
info: [debug] Checking whether instruments supports our device string
info: [debug] Getting list of devices instruments supports
info: [debug] Instruments is at: /Applications/Xcode 3.app/Contents/Developer/usr/bin/instruments
error: Could not pre-launch appium: Error: Command failed: /bin/sh: /Applications/Xcode: No such file or directory
info: [debug] Cleaning up appium session
If we set in xcode path: Version 5.0.2 (5A3005) and launch first time it throws an error log below,
info: [debug] Starting Appium in pre-launch mode
info: Pre-launching app
info: [debug] Using local app from command line: /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app
info: [debug] Creating new appium session 625932d6-b1a6-4bfd-acbb-ad97155272b3
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
error: Could not determine Xcode version:Could not parse Xcode version (xcodebuild output was: )
info: [debug] iOS SDK Version set to 7.0
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
error: Could not parse plist file (as binary) at /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
parseFileSync()
is deprecated. Use parseStringSync()
instead.
error: Could not parse plist file (as XML) at /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings
info: [debug] Not setting locale
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir:
info: [debug] Dynamic env:
info: [debug] Dynamic bootstrap code:
info: [debug] Dynamic bootstrap path:
info: [debug] Reusing dynamic bootstrap:
info: [debug] No iOS / app preferences to set
warn: Xcode version passed into log capture code as null, assuming Xcode 5
info: [debug] Starting iOS 7.* simulator log capture
info: [debug] User specified default device, letting instruments launch it
info: [debug] Instruments v < 7.1, not checking device string support
error: uncaughtException: Cannot read property ‘0’ of null date=Wed Sep 10 2014 18:05:12 GMT+0530 (IST), pid=42011, uid=1544962971, gid=271230641, cwd=/Applications/Appium.app/Contents/Resources/node_modules/appium, execPath=/Applications/Appium.app/Contents/Resources/node/bin/node, version=v0.10.31, argv=[/Applications/Appium.app/Contents/Resources/node/bin/node, /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/main.js, --address, 127.0.0.1, --command-timeout, 5000, --pre-launch, --app, /Users/gowtham.r/Desktop/Work/iOS/Automation/Sep08/Shoply.app, --show-sim-log, --default-device, --launch-timeout, 150000], rss=72314880, heapTotal=59255808, heapUsed=29955928, loadavg=[1.1630859375, 1.29931640625, 1.38037109375], uptime=1377641, trace=[column=35, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js, function=IOS.getDeviceString, line=883, method=getDeviceString, native=false, column=34, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js, function=, line=1021, method=null, native=false, column=5, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js, function=IOS.checkDeviceAvailable, line=1001, method=checkDeviceAvailable, native=false, column=10, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js, function=IOS.setDeviceAndLaunchSimulator, line=1019, method=setDeviceAndLaunchSimulator, native=false, column=21, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=610, method=null, native=false, column=17, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=249, method=null, native=false, column=13, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=iterate, line=149, method=null, native=false, column=25, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=160, method=null, native=false, column=21, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=251, method=null, native=false, column=34, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=615, method=null, native=false], stack=[TypeError: Cannot read property ‘0’ of null, at IOS.getDeviceString (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:883:35), at null. (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1021:34), at IOS.checkDeviceAvailable (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1001:5), at IOS.setDeviceAndLaunchSimulator (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios.js:1019:10), at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:610:21, at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:249:17, at iterate (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:149:13), at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:160:25, at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:251:21, at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:615:34]
After once again I launch it runs the app in simulator, that too even it throws session time out error 3 times, that logs below
info: [IOS_SYSLOG_ROW ] Sep 10 18:11:54 Dexteritys-Mac-mini-2.local SpringBoard[42146] : *** error reading settings archive file: <SBRootSettings: /Users/gowtham.r/Library/Application Support/iPhone Simulator/7.0.3/Documents/com.apple.springboard.settings/RootSettings.plist>
info: [IOS_SYSLOG_ROW ] Sep 10 18:11:54 Dexteritys-Mac-mini-2.local SpringBoard[42146] : *** error reading settings archive file: <SBRootSettings: /Users/gowtham.r/Library/Application Support/iPhone Simulator/7.0.3/Documents/com.apple.springboard.settings/RootSettings.previous.plist>
info: [IOS_SYSLOG_ROW ] Sep 10 18:11:54 Dexteritys-Mac-mini-2.local lsd[42153] : LaunchServices: Currently 0 installed placeholders: (
info: [IOS_SYSLOG_ROW ] )
info: [IOS_SYSLOG_ROW ] Sep 10 18:12:00 Dexteritys-Mac-mini-2.local SpringBoard[42146] : libMobileGestalt MobileGestalt.c:200: string SBNonDefaultSystemAppTag is not a valid gestalt question
info: [IOS_SYSLOG_ROW ] Sep 10 18:12:00 Dexteritys-Mac-mini-2.local SpringBoard[42146] : libMobileGestalt MobileGestalt.c:200: string hidden is not a valid gestalt question
info: [IOS_SYSLOG_ROW ] Sep 10 18:12:00 Dexteritys-Mac-mini-2.local SpringBoard[42146] : libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Sep 10 18:12:00 Dexteritys-Mac-mini-2.local SpringBoard[42146] : libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
info: [IOS_SYSLOG_ROW ] Sep 10 18:12:02 Dexteritys-Mac-mini-2.local SpringBoard[42146] : BTM: attaching to BTServer
info: [debug] [INST STDERR] 2014-09-10 18:12:04.500 instruments[42133:507] Recording cancelled : At least one target failed to launch; aborting run
info: [debug] [INST STDERR] Instruments Trace Error : Error Domain=com.apple.instruments Code=1 “Error Starting Recording” UserInfo=0x7fb6bb8d83c0 {NSLocalizedDescription=Error Starting Recording, NSLocalizedRecoverySuggestion=At least one target failed to launch; aborting run}
Instruments Trace Error : Failed to start trace.
info: [debug] [INSTSERVER] Instruments exited with code 253
info: [debug] Killall instruments
info: [debug] Instruments crashed on startup
info: [debug] Attempting to retry launching instruments, this is retry #3
info: [debug] Killall iPhoneSimulator
info: Launching instruments
Is anything I need to change in settings or somewhere to startup and run the app in simulator? if so please help me out
Thanks,
Gowtham Raja