Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application verification fails on ios 15 with an older version of Xcode #600

Closed
avazquezdev opened this issue Oct 7, 2021 · 7 comments · Fixed by #606
Closed

Application verification fails on ios 15 with an older version of Xcode #600

avazquezdev opened this issue Oct 7, 2021 · 7 comments · Fixed by #606

Comments

@avazquezdev
Copy link

Issue details

Starting with iOS 15, the system checks a new signature format (DER) so that applications can run on current OS.
For lower versions of XCode 12.5 it is necessary to include the generate-entitlement-der flag.

Robovm must sign with generate-entitlement-der flag for older XCode versions.

Reproduction steps/code

Build and run a app in real device with iOS15 in Xcode 12.4

Robovm output
Caused by: org.robovm.libimobiledevice.LibIMobileDeviceException: ApplicationVerificationFailed
        at org.robovm.libimobiledevice.util.AppLauncher$1.error(AppLauncher.java:1006)
        at org.robovm.libimobiledevice.Callbacks.callInstproxyCallback(Callbacks.java:64)
ideviceinstaller output
Install: CreatingStagingDirectory (5%)
Install: ExtractingPackage (15%)
Install: InspectingPackage (20%)
Install: TakingInstallLock (20%)
Install: PreflightingApplication (30%)
Install: InstallingEmbeddedProfile (30%)
Install: VerifyingApplication (40%)ERROR: Install failed. Got error "ApplicationVerificationFailed" with code 0xe8008029: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.19Noon/extracted/myapp.app : 0xe8008029 (The code signature version is no longer supported.)

check signature:

codesign -dvvvvv myapp.app

I check under Page size in the signature and -5 and -7 values is not present.

Configuration

Build Tools:

  • Gradle plugin

Versions:

  • Robovm: 2.3.14
  • XCode: 12.4
  • JDK: 11
  • Mac mini 2012
  • XCode 12.4
  • macOS Catalina

Build Targets:

  • iPhone XR device (iOS 15)

References

https://www.browserstack.com/question/917
https://developer.apple.com/forums/thread/682775?page=2
https://stackoverflow.com/questions/68467306/the-code-signature-version-is-no-longer-supported

@bachtrong43
Copy link

check your certificate in keychain access, I think it is not trusted

@avazquezdev
Copy link
Author

check your certificate in keychain access, I think it is not trusted
Hi, I check my certificate and I did not find any problems and it is a valid certificate.
Do you suggest any other test?

Thanks!!

@bachtrong43
Copy link

Try to update your xcode, I think xcode 12.4 does not support ios 15

@guillerodriguez
Copy link

Try to update your xcode, I think xcode 12.4 does not support ios 15

You clearly haven’t even tried to read the original issue report? The OP is saying that starting with iOS 15 the signature format has changed and that for XCode <= 12.4 the generate-entitlement-der flag is now necessary.

The suggestion here is to patch RoboVM to pass this flag so that it is possible to use XCode <= 12.4 if needed.

@dkimitsa
Copy link
Contributor

hi All, I will add and test it probably today

@dkimitsa
Copy link
Contributor

please report if there is any issue with it especially in projects that contains another frameworks/extension

@avazquezdev
Copy link
Author

Thanks dkimitsa! The problem is solve.

please report if there is any issue with it especially in projects that contains another frameworks/extension

No problem, If I found any issue more, I will report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants