cpisciotta / xcbeautify

A little beautifier tool for xcodebuild
MIT License
947 stars 67 forks source link

CodeSign line format #169

Closed pyrtsa closed 9 months ago

pyrtsa commented 9 months ago

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.)

cpisciotta commented 9 months ago

@pyrtsa This is available with version 1.1.1.