Skip to content

Conversation

@TamarMilchtaich
Copy link
Contributor

@TamarMilchtaich TamarMilchtaich commented Mar 17, 2025

Support XCFrameworks expectedSignature property, and add the expected expectedSignature to the target dependency, to be verified against the actual signature.

More about XCFramework's siganture:
https://developer.apple.com/documentation/Xcode/verifying-the-origin-of-your-xcframeworks

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 17, 2025
@TamarMilchtaich TamarMilchtaich marked this pull request as draft March 17, 2025 12:51
return .framework(path: path, status: status, condition: condition)
case .xcframework:
return .xcframework(path: path, status: status, condition: condition)
// TODO: throw some error? log warning? this is very general, but from what I can tell it's only called from a non-xcframework contexts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

WDYT? Not sure how to treat this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this utility is being used from here where we can access the file reference through the build file, wouldn't we have the information that we need to set the right value here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually this seems OK now, there were some changes here following the review on tuist/tuist, and it makes sense now

From what I can tell, the path dependency mapper is used here (frameworks, no signature is required) and here (signature propagated, as expected)

So probably just need to remove the TODO

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

@TamarMilchtaich TamarMilchtaich force-pushed the xcframeworks-expected-signature branch from c367a1d to 5da3a82 Compare April 7, 2025 12:42
@TamarMilchtaich
Copy link
Contributor Author

Fixed & squashed the fixes into one commit

@pepicrft
Copy link
Contributor

pepicrft commented Apr 7, 2025

Fixed & squashed the fixes into one commit

Let's then wait until tuist/tuist is ready.

@TamarMilchtaich TamarMilchtaich force-pushed the xcframeworks-expected-signature branch from 5da3a82 to 67d8b0c Compare April 9, 2025 08:06
@TamarMilchtaich
Copy link
Contributor Author

Pushed the following change (and only this):
notSigned -> unsigned

@TamarMilchtaich TamarMilchtaich force-pushed the xcframeworks-expected-signature branch 2 times, most recently from ab00ad3 to d609f81 Compare April 10, 2025 14:51
@TamarMilchtaich TamarMilchtaich force-pushed the xcframeworks-expected-signature branch from d609f81 to 2fae634 Compare April 23, 2025 08:07
@TamarMilchtaich
Copy link
Contributor Author

Pushed the following change (and only this):
signedByApple -> signedWithAppleCertificate

@TamarMilchtaich TamarMilchtaich force-pushed the xcframeworks-expected-signature branch from 2fae634 to b1094a9 Compare April 29, 2025 18:51
@TamarMilchtaich TamarMilchtaich marked this pull request as ready for review April 29, 2025 18:51
TamarMilchtaich and others added 3 commits April 30, 2025 14:50
Support XCFrameworks expectedSignature property, and add the expected
expectedSignature to the target dependency, to be verified against the
actual signature.
@pepicrft pepicrft force-pushed the xcframeworks-expected-signature branch from 5ce3dd5 to f703041 Compare April 30, 2025 12:50
@pepicrft pepicrft merged commit 81df161 into tuist:main Apr 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants