Trying to get a real iOS device set up... please advise

I keep getting this when I try to launch my appium server while trying to run my tests on an iPhone 6+ Thoughts??

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --port “27753” --command-timeout “7200” --session-override --pre-launch --debug-log-spacing --platform-version “8.3” --platform-name “iOS” --app “com.sqor.mobile.dev” --udid “4cfe4eb56af598cb0e4b2efb64986320a233c747” --full-reset --show-ios-log --show-ios-log --default-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] App is an iOS bundle, will attempt to run as pre-existing

info: [debug] Creating new appium session 3230a421-7525-4b40-8afd-131830d2d05f
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 /Applications/Appium.app/Contents/Resources/node_modules/appium/com.sqor.mobile.dev/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.sqor.mobile.dev/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings assuming it doesn’t exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/andrew/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/andrew/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Reusing dynamic bootstrap: /Users/andrew/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 4cfe4eb56af598cb0e4b2efb64986320a233c747

info: [debug] App is not installed. Will try to install the app.

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Installing com.sqor.mobile.dev failed

the UDID, BundleID, platformVersion, deviceName, and platformName are all correct.

Edit: I don’t think my answer was correct. I will try to help though.

Have you tried putting the path to the .ipa file instead of the BundleID for the --app flag? That’s what I’d try first.

I turned off the bundleId option in the Appium GUI, and pressed Launch, got this in the logs…

Launching Appium with command: ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ lib/server/main.js --port “27753” --command-timeout “7200” --session-override --pre-launch --debug-log-spacing --platform-version “8.3” --platform-name “iOS” --app “/Users/andrew/Documents/SqorMobileiOS.app” --udid “4cfe4eb56af598cb0e4b2efb64986320a233c747” --full-reset --show-ios-log --show-ios-log --default-device

info: [debug] Starting Appium in pre-launch mode

info: Pre-launching app
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: [debug] Using local app from command line: /Users/andrew/Documents/SqorMobileiOS.app

info: [debug] Creating new appium session af30ce4d-e369-47aa-97a5-8eec54f154e4
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 /Users/andrew/Documents/SqorMobileiOS.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/andrew/Documents/SqorMobileiOS.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/andrew/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/andrew/Library/Application Support/appium/bootstrap/bootstrap-6745615c424bb0c0.js
info: [debug] Reusing dynamic bootstrap: /Users/andrew/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 4cfe4eb56af598cb0e4b2efb64986320a233c747

info: [debug] App is not installed. Will try to install the app.

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:35 QA-Chucks-iPhone-6 syslog_relay[2033] : syslog_relay found the ASL prompt. Starting…

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:35 QA-Chucks-iPhone-6 CLTM[21] : CLTM: _subscription 0x0, _subscribedChannels 0x0

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:40 QA-Chucks-iPhone-6 CLTM[21] : CLTM: _subscription 0x0, _subscribedChannels 0x0

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:41 QA-Chucks-iPhone-6 locationd[61] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 mobile_installation_proxy[1999] : LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 mobile_installation_proxy[1999] : LaunchServices: installing app with unknown bundleID

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 installd[1770] : 0x10050c000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/SqorMobileiOS.app” type Developer requested by mobile_installation_proxy (pid 1999)
info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 installd[1770] : 0x10050c000 -[MIInstaller performInstallationWithError:]: Installing

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 installd[1770] : 0x10050c000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of : 0xe800801c (Code not signed)

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 installd[1770] : 0x10050c000 -[MIInstaller performInstallationWithError:]: Verification stage failed

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 mobile_installation_proxy[1999] : 0x10051c000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of : 0xe800801c (Code not signed)” UserInfo=0x12f635230 {LibMISErrorNumber=-402620388, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=188, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of : 0xe800801c (Code not signed)}

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 mobile_installation_proxy[1999] : ERROR: MobileInstallationInstallForLaunchServices returned nil

info: [IOS_SYSLOG_ROW ] Sep 25 09:33:42 QA-Chucks-iPhone-6 mobile_installation_proxy[1999] : 0x10040c000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x12f6353a0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620388, ErrorDescription=Failed to verify code signature of : 0xe800801c (Code not signed)}

info: [debug] Cleaning up appium session

error: Could not pre-launch appium: Error: Command failed: /bin/sh -c ideviceinstaller -u 4cfe4eb56af598cb0e4b2efb64986320a233c747 -i /Users/andrew/Documents/SqorMobileiOS.app
ERROR: Install failed. Got error “ApplicationVerificationFailed” with code 0xe800801c: Failed to verify code signature of : 0xe800801c (Code not signed)

It looks like there is a problem with the way the app was signed by the certificate. I did a quick google search & found this: https://forums.coronalabs.com/topic/52738-apple-frustration-no-code-signature-found/

There is probably more out there.

Thank you. My lead iOS developer and I are investigating possible issues with the build. He assures me that the version I have has the correct certificate signed and such. Very frustrating. I am able to run tests using the iOS Simulator no problem. Just getting the real device set up has been super tough

Try installing the ipa using xcode manually and then launching Appium inspector. (Ensure Appium ios settings to same version\build of the ipa). I had issue where Appium was not able to install the app on real device, but once I installed through xcode instrumentation, inspector was launched successfully. Helped me to get the tests ready.

When you say install the app, do you mean directly install it onto the device through xcode?

Yes. dragging and dropping from your mac to the device listed in xcode

1 Like