Hi Team,
Am new to Appium , am working on ipad app with Xcode. Below are the credential which am using. App launch and it getting crashed and loops to install in the iPad. can anyone help me out.
Mac Version : 10.10.5 (14F27)
Appium Version : 1.4.8
Device is : ipad 2 (8.4)
My code is
public void setUp() throws MalformedURLException {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(“platformName”, “iOS”);
caps.setCapability(“platformVersion”, “8.4”); //Replace this with your iOS version
caps.setCapability(“deviceName”, “adidasTest”);
caps.setCapability(CapabilityType.PLATFORM, “Mac OS X”);
caps.setCapability(“udid”, “bad3fca9fd2abcddea6dfc8cfe916036d55344ac”);
caps.setCapability(“BundleID”, “com.skava.adidascatalog”);
String appapth ="/Users/apple/Desktop/Appium/SkavaAssociate_151017.ipa";
caps.setCapability(“app”, appapth);
//caps.setCapability( “app” ,“AdidasCatalog”);
driver = new RemoteWebDriver(new URL(“http://0.0.0.0:4723/wd/hub”), caps);
driver.manage().timeouts().implicitlyWait(120,TimeUnit.SECONDS);
}
Appium Log is
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. : BundleID, platform
info: [debug] Using local .ipa from desired caps: /Users/apple/Desktop/Appium/SkavaAssociate_151017.ipa
info: [debug] Copying local zip to tmp dir
info: [debug] /Users/apple/Desktop/Appium/SkavaAssociate_151017.ipa copied to /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/appium-app.zip
info: [debug] Unzipping /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/appium-app.zip
info: [debug] Testing zip archive: /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/appium-app.zip
info: [debug] Zip archive tested clean
info: [debug] Unzip successful
info: [debug] Using locally extracted app: /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/Payload/SkavaAssociate.app
info: [debug] Creating new appium session ed3c3b11-8d3a-4db1-b148-28cb5c7f0533
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Auto-detecting iOS udid…
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/Payload/SkavaAssociate.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 /var/folders/b_/3qzhp7ms5gj_8zfwn1nkmqr00000gn/T/115918-8801-5gvg21/Payload/SkavaAssociate.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/apple/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/apple/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Reusing dynamic bootstrap: /Users/apple/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Attempting iOS device log capture via libimobiledevice idevicesyslog
info: [debug] Creating iDevice object with udid bad3fca9fd2abcddea6dfc8cfe916036d55344ac
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 bad3fca9fd2abcddea6dfc8cfe916036d55344ac
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 bad3fca9fd2abcddea6dfc8cfe916036d55344ac com.skava.adidascatalog -e UIASCRIPT “/Users/apple/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [debug] [INST STDERR] 2015-10-18 08:25:20.136 instruments[8816:300684] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.skava.adidascatalog was denied. The app must be signed with a development identity (e.g. iOS Developer).
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 #1
info: [debug] Killall iOS Simulator
info: Launching instruments
info: [debug] Attempting to run app on real device with UDID bad3fca9fd2abcddea6dfc8cfe916036d55344ac
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 bad3fca9fd2abcddea6dfc8cfe916036d55344ac com.skava.adidascatalog -e UIASCRIPT “/Users/apple/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js” -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {}
info: [debug] And launch timeouts (in ms): {“global”:90000}
info: [debug] [INST STDERR] 2015-10-18 08:25:33.182 instruments[8822:300877] WebKit Threading Violation - initial use of WebKit from a secondary thread.
info: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.skava.adidascatalog was denied. The app must be signed with a development identity (e.g. iOS Developer).
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 #2
info: [debug] Killall iOS Simulator