[AC-4823] Failed to verify code signature of [...].framework : [...] (The application does not have a valid signature.)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-03-10T14:45:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Alberto Marcone |
Assignee | Shak Hossain |
Created | 2017-02-24T14:42:35.000+0000 |
Updated | 2018-06-27T11:07:24.000+0000 |
Description
This happens whenever I try to run the application on a real device including a specific module (in this case the PSPDFKit module).
I get a generic error from Appcelerator Studio saying:
[ERROR] : An error occurred during build after 1m 41s 862ms
[ERROR] : Failed to install app on device (0xe800002d)
[ERROR] : For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements.
if I manually install the new generated ipa on the device I get the error from the console:
mobile_installation_proxy(MobileSystemServices)[173]: 0x16df17000 handle_install: Installation failed: Error Domain=MIInstallerErrorDomain Code=13
"Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.O4m8As/extracted/Payload/xxx.app/Frameworks/PSPDFKit.framework : 0xe8008019 (The application does not have a valid signature.)"
UserInfo={LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=147, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=
Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.O4m8As/extracted/Payload/xxx.app/Frameworks/PSPDFKit.framework : 0xe8008019 (The application does not have a valid signature.)}
this doesn't happen in applications that don't include that module.
Hello, Please share a sample project with the module included. We need to verify the issue.
you can get a sample app from here: https://github.com/PSPDFKit/Appcelerator-iOS/blob/master/example/app.js for a module demo key I'm going to page Peter, the creator and founder of PSPDFKit.
You can get a demo of our SDK here: https://pspdfkit.com/#trynow Just enter any data into the text fields, the demo link and eval license is all fully autogenerated. Ping me at peter@pspdfkit.com if you have any troubles and I can send you a custom eval license; just need your app bundle ID.
Hello, [~a.marcone], you should follow up with [~steipete]. It's your pspdfkit's licence issue. Thanks.
It's not a licensing issue - our licensing does not prevent the app to compile/link but would throw an exception at runtime. This is not the case here. The issue likely stems from the fact that we use a dynamic framework and somehow it's not correctly signed when Appcelerator builds the Xcode project. The PSPDFKit.framework is unsigned at distribution time based on Apple's best practices and needs to be signed at app build time (Xcode usually does that automatically)
Hello [~a.marcone], I think PSPDFKit.framework is a dynamic framework. That's why its showing error. Please visit https://github.com/csemrm/hook-embedded-frameworks Hope its solve your problem. Thanks
Hello [~a.marcone], Did you follow up with Mostafizur Rahman's guide?
Hello, Please update on your current progress. Is the issue still there?
I never gave any feedback, but the problem is still happening with the same library. [TRACE] : ** BUILD SUCCEEDED ** [INFO] : Finished building the application in 28s 131ms [INFO] : Installing app on device: iPad [ERROR] : An error occurred during build after *6m 52s 576ms* [ERROR] : Failed to install app on device (0xe800002d) [ERROR] : For some reason the app failed to install on the device. Try reconnecting your device and check your provisioning profile and entitlements. Just to recap the problem: - We follow the [steps](https://github.com/PSPDFKit/Appcelerator-iOS#how-to-build) to build and install the module - We run an empry project.