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

Fix inaccurate embedded framework comparator results #33

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

kwridan
Copy link
Contributor

@kwridan kwridan commented Nov 28, 2019

Resolves: #32

Describe your changes

  • Embedded frameworks that had no settings/attributes within Xcode (e.g. the "Code Sign on Copy" not selected) were omitted from the list of frameworks considered for comparison
  • To resolve this we now consider all frameworks (as long as they have a path set)
  • Fixtures have been updated to test for this scenario

Test plan

  • Run xcdiff -g dependencies -v with the Fixtures folder
  • Verify the ProjectFramework.framework is listed as having different code sign attributes

Resolves: bloomberg#32

- Embedded frameworks that had no settings/attributes within Xcode (e.g. the "Code Sign on Copy" not selected) were omitted from the list of frameworks considered for comparison
- To resolve this we now consider all frameworks (as long as they have a `path` set)
- Fixtures have been updated to test for this scenario

Test Plan:

- Run `xcdiff -g dependencies -v` with the `Fixtures` folder
- Verify the `ProjectFramework.framework` is listed as having different code sign attributes

Signed-off-by: Kassem Wridan <kwridan@bloomberg.net>
Copy link
Contributor

@adamkhazi adamkhazi left a comment

Choose a reason for hiding this comment

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

Tested and looks good 🚀

}
return nil
}
}

private func codeSignAttributes(for file: PBXBuildFile) -> Bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice fix!

@kwridan kwridan merged commit 5e40ad1 into bloomberg:master Nov 29, 2019
@kwridan kwridan deleted the fix/embedded-frameworks branch November 29, 2019 07:15
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.

Comparing embedded frameworks with different codeSignOnCopy yields inaccurate results
2 participants