Appium 1.5.2 with iOS 9.3.2 Device

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: []

I tried resignining the ipa using this manual:

http://dev.mlsdigital.net/posts/how-to-resign-an-ios-app-from-external-developers/

With an iPhone Developer Certificate of a Development Provisioning Profile that I created for my Developer ID, then I start failing on:


[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad installd[47] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=PeerApp; Version=433, ShortVersion=8.6.0>

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad profiled[134] <Notice>: (Note ) MC: Provisioning profiles changed

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad securityd[93] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad securityd[93] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad installd[47] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:02 PeerApp-iPad profiled[134] <Notice>: (Note ) MC: Updating MIS trust...

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad securityd[93] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad securityd[93] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad installd[47] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad installd[47] <Notice>: MIS: entitlement 'get-task-allow' has value not permitted by provisioning profile 'iOS Team Provisioning Profile: *'

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad installd[47] <Notice>: MIS: entitlement 'get-task-allow' has value not permitted by provisioning profile 'iOS Development Profile'

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad installd[47] <Error>: 0x16e087000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.DQgnDK/extracted/Payload/Argo.app : 0xe8008016 (The executable was signed with invalid entitlements.)

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad installd[47] <Error>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Verification stage failed

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad mobile_installation_proxy[179] <Error>: 0x16e1bb000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.DQgnDK/extracted/Payload/Argo.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.DQgnDK/extracted/Payload/Argo.app : 0xe8008016 (The executable was signed with invalid entitlements.)}

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad iaptransportd[69] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x126e1c820> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad homed[124] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x125e6af80> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad nsurlsessiond[114] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x135560310> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad SpringBoard[54] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x127e10f90> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad itunesstored[100] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x156667650> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad BTServer[61] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x12762c720> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad atc[38] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x13f72f460> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad UserEventAgent[23] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x13fe96090> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad apsd[94] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x12de622f0> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad mobile_installation_proxy[179] <Error>: 0x16e247000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620394, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.DQgnDK/extracted/Payload/Argo.app : 0xe8008016 (The executable was signed with invalid entitlements.)}

[iOSLog] [IOS_SYSLOG_ROW] Jun 7 08:15:03 PeerApp-iPad profiled[134] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (

[iOSLog] [IOS_SYSLOG_ROW] "<LSApplicationProxy: 0x15de65e40> PeerApp <(null) *Not found in database*>"

[iOSLog] [IOS_SYSLOG_ROW] )

[debug] [iOS] Starting UIAutoClient, and launching Instruments.

[debug] [UIAuto] Instruments socket server started at /var/folders/g4/d3yt8gxs33v7rzwy3vp07sfh0000gn/T/instruments_sock

[HTTP] <-- GET /wd/hub/status - - ms - -

[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 PeerApp -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}

Appium 1.5.2 with iOS 9.3.2 Device
 
 
Q