Issues in Launching safari in real iPhone device

Hi
I am working on mobile web automation.
I am facing lot of obstacles in launching url in real device.

Steps that i have done (Learned till) :

  1. Code is running perfect in simulator
  2. Purchased developer License
  3. Installed Certificated on Mac
  4. Provisioning the device
  5. Downloaded the safari Launcher from GitHub
  6. Installed using xcode 5.1 (SDK 7.1) in iPhone device

My Desired Capabilities :
DesiredCapabilities capabilities = new DesiredCapabilities();
File app = new File("/Users/ebiztest/Documents/workspace/ControlCenter/iOSApplication/SafariLauncher.app");
/* Setup for Actual Device 8-29*/
capabilities.setCapability("browserName”,”safari”);
capabilities.setCapability("deviceName”,”iPhone”);
capabilities.setCapability(“platformVersion”,“7.1”);
capabilities.setCapability("platformName”,”iOS”);
capabilities.setCapability(“udid”,“318757c0a61a166603b7bde5ad9c11cf5bdb1e57”;
capabilities.setCapability(“app”,app.getAbsolutePath());

Next Obstacle (Error) :

error: Could not parse plist file (as binary) at /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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 /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings
info: [debug] Not setting locale because we’re using a real device

error: iOS log capture failed: spawn ENOENT
info: [debug] Fixing device was changed from:"

Appium Complete Log :

info: Appium REST http interface listener started on 127.0.01:4723
info: [debug] Non-default server args: {“address”:“127.0.01”,“defaultDevice”:true,“defaultCommandTimeout”:7200}
info: LogLevel: debug
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}
info: <-- GET /wd/hub/status 200 8.467 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.2.2”,“revision”:“cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4”}}}
info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/ebiztest/Documents/workspace/ControlCenter/iOSApplication/SafariLauncher.app",“platformVersion”:“7.1”,“browserName”:“Safari”,“platformName”:“iOS”,“udid”:“318757c0a61a166603b7bec5ad9c11cf5bdb1e57”,“deviceName”:“iPhone”}}

info: [debug] Configuring Safari session
info: [debug] Using local .zip from desired caps: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip
info: [debug] Copying local zip to tmp dir
info: [debug] /Applications/Appium.app/Contents/Resources/node_modules/appium/build/SafariLauncher/SafariLauncher.zip copied to /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/appium-app.zip
info: [debug] Unzipping /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/appium-app.zip
info: [debug] Testing zip archive: /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app
info: [debug] Creating new appium session 5d2a2141-edce-4c0e-a81c-8f1b901e90c8
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 /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.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 /var/folders/vj/k3615qdn2bq8qjyz7s32hdfr0000gn/T/11493-1796-gxn8cy/submodules/SafariLauncher/build/Release-iphoneos/SafariLauncher.app/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings
info: [debug] Not setting locale because we’re using a real device
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:

error: iOS log capture failed: spawn ENOENT
info: [debug] Fixing device was changed from:"

info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Starting iOS device log capture via deviceconsole
info: [debug] Cleaning up appium session
info: [debug] Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: spawn ENOENT)”,“code”:“ENOENT”,“errno”:“ENOENT”,“syscall”:“spawn”,“origValue”:“spawn ENOENT”},“sessionId”:null}

error: Failed to start an Appium session, err was: Error: spawn ENOENT
info: <-- POST /wd/hub/session 500 248.544 ms - 197
info: [debug] Not setting device type since we’re connected to a device
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 318757c0a61a166603b7bec5ad9c11cf5bdb1e57 --bundle com.bytearc.SafariLauncher
info: --> GET /wd/hub/status {}

can anyone help me fixing this issue

How to fix this?? I am using Mac Os 10.10.1 & Xcode 6.1 and

trying to launch the ios app through eclipse to perform some
testing but

getting this error dont
know how to reseolve this issue. I have updated

the appium to 1.3.4 but
still same. Tried to launch same ios app with

appium 1.3.3 GUI this app launches properly. Anyone can suggest

anything.

Above issue is observed with simulator 7.1,8.1 etc

By any chance can this be happening bcoz of “No signing
Identity found” in xcode

info: Welcome to Appium v1.3.4 (REV
056f5bd277987bed391aef04acf2be38ea161e50)

info: Appium REST http interface listener started on 0.0.0.0:4723

info: Console LogLevel: debug

info:

–> POST
/wd/hub/session

{“desiredCapabilities”:{“app”:"/Users/Anand/Library/Developer/Xcode/DerivedData/TestApp-dtutyhtjuncbbnhacstomnqkjttc/Build/Products/Debug-iphonesimulator/TestApp.app",“appium-version”:“1.0”,“platformVersion”:“7.1”,“browserName”:"",“platformName”:“iOS”,“udid”:“13FF8920-587E-4AF6-A3B9-AA32E81624EC”,“deviceName”:"iPhone

5s"}}

info: Client User-Agent string: Apache-HttpClient/4.3.4 (java
1.5)

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. : appium-version

info: [debug] Using local

app from desired caps:

/Users/Anand/Library/Developer/Xcode/DerivedData/TestApp-dtutyhtjuncbbnhacstomnqkjttc/Build/Products/Debug-iphonesimulator/TestApp.app

info: [debug] Creating new appium session
2eb74755-4582-46cf-97b9-78b548cfa1b9

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] Could not parse
plist file (as binary) at

/Users/Anand/Library/Developer/Xcode/DerivedData/TestApp-dtutyhtjuncbbnhacstomnqkjttc/Build/Products/Debug-iphonesimulator/TestApp.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/Anand/Library/Developer/Xcode/DerivedData/TestApp-dtutyhtjuncbbnhacstomnqkjttc/Build/Products/Debug-iphonesimulator/TestApp.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:

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/Anand/Library/Application Support/appium/bootstrap

info:

[debug] Dynamic env:

{“nodePath”:"/usr/local/bin/node",“commandProxyClientPath”:"/Users/Anand/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“sendKeyStrategy”:“grouped”}

…o: [debug] Dynamic bootstrap code: // This file is
automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path:
/Users/Anand/Library/Application
Support/appium/bootstrap/bootstrap-723f69bfa90dadc3.js

info: [debug] Reusing dynamic bootstrap:
/Users/Anand/Library/Application
Support/appium/bootstrap/bootstrap-723f69bfa90dadc3.js

info:

[debug] Getting device
string from opts:

{“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1.1”,“iOSSDKVersion”:“8.1”,“deviceName”:"iPhone

5s",“platformVersion”:“7.1”}

info: [debug] fixDevice is on

info: [debug] Final device string is: ‘iPhone 5s (7.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

error: Log capture did not start in a reasonable amount of time

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Log
capture did not start in a reasonable amount of time

info: [debug] Error: Log capture did not start in a reasonable
amount of time

at null._onTimeout

(/Users/Anand/appium/lib/devices/ios/ios-log.js:137:10)

at Timer.listOnTimeout

as ontimeout

info:

[debug] Responding to
client with error:

{“status”:33,“value”:{“message”:"A
new session could not be created.

(Original error: Log capture did not start in a reasonable
amount of

time)",“origValue”:"Log capture did not
start in a reasonable amount of

time"},“sessionId”:null}

info: <-- POST /wd/hub/session 500 11780.237 ms - 234

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid
13FF8920-587E-4AF6-A3B9-AA32E81624EC

info:

[debug] Couldn’t find
ideviceinstaller, trying built-in at

/Users/Anand/appium/build/libimobiledevice-macosx/ideviceinstaller

info:

[debug] Checking app
install status using:

/Users/Anand/appium/build/fruitstrap/fruitstrap isInstalled --id

13FF8920-587E-4AF6-A3B9-AA32E81624EC --bundle com.TestAppparking.mobile