Hi,
I'm starting Netflix application (8.6 ipa) from Appium 1.5.2 connected to iPad mini device with iOS 9.3.2,
with these capabilities:
Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' build/lib/main.js --command-timeout "7200" --session-override --debug-log-spacing --platform-version "8.4" --platform-name "iOS" --app "/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa" --udid "99a093d37ad2ab93e0fafd00320689438fcba433" --no-reset --show-ios-log --device-name "iPad 2" --native-instruments-lib --isolate-sim-device
[Appium] Welcome to Appium v1.5.2
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] isolateSimDevice: true
[Appium] debugLogSpacing: true
[Appium] defaultCommandTimeout: 7200
[Appium] platformName: 'iOS'
[Appium] platformVersion: '8.4'
[Appium] deviceName: 'iPad 2'
[Appium] app: '/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa'
[Appium] udid: '99a093d37ad2ab93e0fafd00320689438fcba433'
[Appium] noReset: true
[Appium] nativeInstrumentsLib: true
[Appium] showIOSLog: true
The application is launched\installed on device but its keep closing and opening!
As I got from some posts it might be related to the .ipa itself that doesn't support debugging, one of the posts suggested resigning the ipa again but I didnt get the opportunity to check it yet.
Anyway, when trying to load the inspector from Appium it's failing with:
LOG::
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium] --platform-version => --default-capabilities '{"platformVersion":"8.4"}'
[Appium] --device-name => --default-capabilities '{"deviceName":"iPad 2"}'
[Appium] --app => --default-capabilities '{"app":"/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa"}'
[Appium] -U,--udid => --default-capabilities '{"udid":"99a093d37ad2ab93e0fafd00320689438fcba433"}'
[Appium] --no-reset => --default-capabilities '{"noReset":true}'
[Appium] --native-instruments-lib => --default-capabilities '{"nativeInstrumentsLib":true}'
[Appium] --show-ios-log => --default-capabilities '{"showIOSLog":true}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] platformName: 'iOS'
[Appium] platformVersion: '8.4'
[Appium] deviceName: 'iPad 2'
[Appium] app: '/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa'
[Appium] udid: '99a093d37ad2ab93e0fafd00320689438fcba433'
[Appium] noReset: true
[Appium] nativeInstrumentsLib: true
[Appium] showIOSLog: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.2","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 16 ms - 83
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.2","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 10 ms - 83
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 4 ms - 40
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"8.4","app":"/resources/IPA/Netflix 8.6.0.ipa","automationName":"Appium","udid":"99a093d37ad2ab93e0fafd00320689438fcba433","deviceName":"iPad 2"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","platformVersion":"8.4","app":"/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa",...
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] platformName: 'iOS'
[Appium] platformVersion: '8.4'
[Appium] app: '/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa'
[Appium] automationName: 'Appium'
[Appium] udid: '99a093d37ad2ab93e0fafd00320689438fcba433'
[Appium] deviceName: 'iPad 2'
[Appium] noReset: true
[Appium] nativeInstrumentsLib: true
[Appium] showIOSLog: true
[BaseDriver] Session created with session id: 2df3cd66-3bf7-45ac-8d50-478e43f1febd
[debug] [iOS] Not auto-detecting udid.
[BaseDriver] Using local app '/Users/galil/Documents/workspace/peerapp/PeerApp_Automation/resources/IPA/Netflix 8.6.0.ipa'
[debug] [BaseDriver] Copying local zip to tmp dir
[debug] [BaseDriver] Unzipping /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/201656-2287-15zvf4o/appium-app.zip
[debug] [BaseDriver] Testing zip archive: /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/201656-2287-15zvf4o/appium-app.zip
[BaseDriver] Unzipped local app to '/var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/201656-2287-15zvf4o/Payload/Argo.app'
[debug] [iOS] Removing any remaining instruments sockets
[debug] [iOS] Cleaned up instruments socket /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/instruments_sock
[debug] [iOS] No language specified. Using default strings
[debug] [iOS] Strings file not found. Looking in 'en.lproj' directory
[debug] [iOS] Parsed app 'Localizable.strings'
[debug] [ios-app-utils] Getting bundle ID from app
[iOS] Extracted bundleID: com.netflix.Netflix from app: /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/201656-2287-15zvf4o/Payload/Argo.app
[debug] [iOS] Creating instruments
[debug] [UIAuto] Preparing bootstrap code
[debug] [UIAuto] Dynamic bootstrap dir: /Users/galil/Library/Application Support/appium/bootstrap
[debug] [UIAuto] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js","instrumentsSock":"/var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
[debug] [UIAuto] Dynamic bootstrap code: /
...
[debug] [UIAuto] Dynamic bootstrap path: /Users/galil/Library/Application Support/appium/bootstrap/bootstrap-9382bcaacfa1c9c5.js
[debug] [UIAuto] Reusing dynamic bootstrap: /Users/galil/Library/Application Support/appium/bootstrap/bootstrap-9382bcaacfa1c9c5.js
[debug] [iOS] Reset not set, not ending real device
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[debug] [iOS] Creating iDevice object with udid 99a093d37ad2ab93e0fafd00320689438fcba433
[debug] [iOS] App is installed.
[debug] [iOS] fullReset not requested. No need to install.
[debug] [iOS] Starting UIAutoClient, and launching Instruments.
[debug] [UIAuto] Instruments socket server started at /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/instruments_sock
[debug] [Instruments] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
[debug] [Instruments] Attempting to launch instruments, this is try #1
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on real device with UDID '99a093d37ad2ab93e0fafd00320689438fcba433'
[debug] [Instruments] Found Insruments-Without-Delay: /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-instruments/thirdparty/iwd7
[debug] [Instruments] 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 /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/appium-instruments/instrumentscli0.trace -w 99a093d37ad2ab93e0fafd00320689438fcba433 com.netflix.Netflix -e UIASCRIPT "/Users/galil/Library/Application Support/appium/bootstrap/bootstrap-9382bcaacfa1c9c5.js" -e UIARESULTSPATH /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/appium-instruments'
[debug] [Instruments] And launch timeouts (in ms): {"global":90000}
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad kernel[0] <Notice>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42004
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad SpringBoard[54] <Warning>: Unable to get pid for 'UIKitApplication:com.netflix.Netflix[0x439a]': No such process (err 3)
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad com.apple.xpc.launchd[1] (UIKitApplication:com.netflix.Netflix[0x439a][252]) <Warning>: FairPlay decryption failed on binary.
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad SpringBoard[54] <Warning>: Bootstrapping failed for <FBApplicationProcess: 0x128870970; com.netflix.Netflix; pid: -1>
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad SpringBoard[54] <Warning>: [FBSystemService] Error launching com.netflix.Netflix: Unspecified (1)
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad SpringBoard[54] <Warning>: [FBSystemService] Error launching com.netflix.Netflix: Unspecified (1)
[iOSLog] [IOS_SYSLOG_ROW] Jun 6 14:51:05 PeerApp-iPad SpringBoard[54] <Warning>: Application 'UIKitApplication:com.netflix.Netflix[0x439a]' exited due to FairPlay failure.
[HTTP] <-- GET /wd/hub/status - - ms - -
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -
[HTTP] --> GET /wd/hub/status {}
[MJSONWP] Calling AppiumDriver.getStatus() with args: []