Running test on real iOS device fails because of app singing error
See original GitHub issueThe 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] [35m[W3C][39m Encountered internal error running command: Error: Could not install '/Users/boazwarshawsky/workspace/builds/aeroscout_links/ios/ndev/AeroScoutLinks.app':
[debug] [35m[W3C][39m - 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] [35m[W3C][39m - 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] [35m[W3C][39m
[debug] [35m[W3C][39m 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:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
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?closed as not an issue