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 ProvisioningProfile.team_identifier type interface #440

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented Nov 18, 2024

There are provisioning profiles which do not have a TeamIdentifier key in their plist. Currently ProvisioningProfile.team_identifier property returns None in this case, which is conflicting with the type signature of this property. That can cause third party usages to fail that expect that the value of this property is always str. As with missing team name, default to empty string instead of None in case of missing value.

Note that is doesn't seem to be possible to generate such profiles any more and those are just remnants from past.

@priitlatt priitlatt added the bug Something isn't working label Nov 18, 2024
@priitlatt priitlatt marked this pull request as ready for review November 18, 2024 11:00
@priitlatt priitlatt merged commit dcda8b5 into master Nov 18, 2024
11 checks passed
@priitlatt priitlatt deleted the bugfix/provisioning-profile-default-team-identifier branch November 18, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants