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

CodeSign line format #169

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Conversation

pyrtsa
Copy link
Contributor

@pyrtsa pyrtsa commented Dec 7, 2023

The current version of xcbeautify fails to parse CodeSign lines correctly.

Step(s) to reproduce. In a modularised Xcode project (don't know if that detail matters!), xcodebuild produces output lines of shape:

CodeSign .../Widget.appex (in target 'FooWidget' from project 'Foo' at path '.../FooProject.xcodeproj')
CodeSign .../Foo.app (in target 'FooApp' from project 'Foo' at path '.../FooProject.xcodeproj')

Expected output. I would expect xcbeautify to produce output like:

Signing Widget.appex
Signing Foo.app

Actual output. Mind the special characters:

Signing FooProject.xcodeproj')
Signing FooProject.xcodeproj')

This PR fixes the above, while allowing the old format without any (in target '*' ...) suffix to parse, as well. (The existing testCodesign() unit test was left as is to assert that.)

@pyrtsa pyrtsa requested review from a team, waltflanagan and kwridan December 7, 2023 13:48
Copy link
Owner

@cpisciotta cpisciotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pyrtsa! Appreciate the detailed feedback, your help fixing this, and backing it with a test 🚀

@cpisciotta cpisciotta added this pull request to the merge queue Dec 12, 2023
Merged via the queue into cpisciotta:main with commit aaf72d8 Dec 12, 2023
2 checks passed
@cpisciotta
Copy link
Owner

@pyrtsa This is available with version 1.1.1.

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

Successfully merging this pull request may close these issues.

2 participants