question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running test on real iOS device fails because of app singing error

See original GitHub issue

The problem

I lately added added a new iPhone device to my automation environment, iPhone SE. This new iPhone is running iOS 14.7.1 When I plugged it, I took care to build the WebDriverAgentRunner on top of that new iPhone device.

The error which I am getting on the Appium server is:

[debug] [W3C] Encountered internal error running command: Error: Could not install '/Users/boazwarshawsky/workspace/builds/aeroscout_links/ios/ndev/AeroScoutLinks.app':
[debug] [W3C]   - Unexpected data: {"Error":"ApplicationVerificationFailed","ErrorDetail":-402620394,"ErrorDescription":"Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.6gzrqp/extracted/AeroScoutLinks.app : 0xe8008016 (The executable was signed with invalid entitlements.)"}
[debug] [W3C]   - 2021-10-04 08:45:55.394 ios-deploy[92385:2327435] [ !! ] Error 0xe8008016: The executable was signed with invalid entitlements. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
[debug] [W3C] 
[debug] [W3C]     at IOSDeploy.install (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/ios-deploy.js:56:15)

The xcode version which I am using is: 13.0

Environment

  • Appium version (or git revision) that exhibits the issue: 1.21.0
  • Last Appium version that did not exhibit the issue (if applicable): None
  • Desktop OS/version used to run Appium: Mac OS Big Sur
  • Node.js version (unless using Appium.app|exe): v12.9.1
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: 14.7.1
  • Real device or emulator/simulator: Real Device
  • Appium CLI or Appium.app|exe: cli

Details

What is weird, is that the test does running as expected with another older device I have (iPhone X, iOS 14.7.1) I don’t understand what is wrong with that new device.

I can confirm that I registered correctly this new iPhone device to my apple developer account portal. I can confirm that the same app bundle is running correctly on another iPhone device I have.

Link to Appium logs

https://github.com/bwomsm1/AppiumLogs/blob/master/appium_ios.log

Code To Reproduce Issue [ Good To Have ]

Just by running any iOS test

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KazuCocoacommented, Oct 4, 2021

another older device I have (iPhone X, iOS 14.7.1)

Did you sign /Users/boazwarshawsky/workspace/builds/aeroscout_links/ios/ndev/AeroScoutLinks.app with a new provisioning after adding the new device in the provisioning profile?

0reactions
mykola-mokhnachcommented, Oct 6, 2021

closed as not an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

UI Tests on real device broken on iOS 15.4 - Apple Developer
Run the UI test testExample which only starts the app, nothing more. Restart the attached phone; Try to run testExample again. Expectation: Test...
Read more >
iOS app testing. App installation failed. No code signature found
In my case, the problem was unsigned frameworks. Xcode 11 or above: Go to Build Phases, expand Embedded Frameworks and select all Code...
Read more >
Unable to build with XCode 14.0 · Issue #34673 - GitHub
XCode 14.0 is released since yesterday, and I have the following error while building a fresh app on a physical device: [...]/ios/Pods/Pods.
Read more >
Problems with Real device ios testing - Katalon Community
Hello, I'm new to Katalon Studio and trying to set it up for my mobile testing, but keep running into following error when...
Read more >
Code signing for iOS - App Center - Microsoft Learn
iOS apps must be signed to run on real devices. In App Center, this process requires uploading valid signing files generated using Apple's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found