Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to sign an Application #139

Closed
rcM0D opened this issue Jun 4, 2022 · 2 comments
Closed

Unable to sign an Application #139

rcM0D opened this issue Jun 4, 2022 · 2 comments

Comments

@rcM0D
Copy link

rcM0D commented Jun 4, 2022

Good day, I was trying to resign an application DVIA.
MacOS 12.4 M1
applesign version 4.0.0

Here is the switches that I used

applesign -i 749AD577AB7889A809D075F444A1B27F4649063D -m aa799d52-56aa-4c8b-964e-b31654b9bf8b.mobileprovision -a DVIA-v2-swift.ipa -c

Error:

"Error: stdout:
stderr: Failed to parse entitlements: AMFIUnserializeXML: syntax error near line 12"

swiftos.dylib","/Users/user/Downloads/Sample/DVIA-v2-swift.ipa.da820bec-31fb-47db-92fd-7582398cb558/Payload/DVIA-v2.app/Frameworks/libswiftsimd.dylib"]
Orphan: ["/Users/user/Downloads/Sample/DVIA-v2-swift.ipa.da820bec-31fb-47db-92fd-7582398cb558/Payload/DVIA-v2.app/libswiftRemoteMirror.dylib"]
Cleaning up /Users/user/Downloads/Sample/DVIA-v2-swift.ipa.da820bec-31fb-47db-92fd-7582398cb558
Error: stdout:
stderr: Failed to parse entitlements: AMFIUnserializeXML: syntax error near line 12

Not sure what I'm missing here.

But when I downgrade to version 3.9.3, the applesign is working.
Any help will do! TIA

@trufae trufae closed this as completed in f5cba92 Jun 5, 2022
@trufae
Copy link
Member

trufae commented Jun 5, 2022

Thanks for reporting!

I have investigated the issue and wrote a fix for it. Seems like the latest plist parser from Apple is a bit more strict. Read this for some context electron/osx-sign#218 the regression was introduced after updating the plist dependency which had some different default settings that make codesign tool unhappy.

I just released applesign 4.0.1 with the fix.

@rcM0D
Copy link
Author

rcM0D commented Jun 6, 2022

Thanks for reporting!

I have investigated the issue and wrote a fix for it. Seems like the latest plist parser from Apple is a bit more strict. Read this for some context electron/osx-sign#218 the regression was introduced after updating the plist dependency which had some different default settings that make codesign tool unhappy.

I just released applesign 4.0.1 with the fix.

Thank you for the quick fix as always!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants