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

Handle plist opening errors #46

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

tothszabi
Copy link
Contributor

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a PATCH version update

Context

The step does not handle the plist opening/parsing errors and one of the customers ran into it.

The step is crashing for them because after the calling

xcodeproj.ReadPlistFile(infoPlistPath)

the returned map is empty and the step tries to insert a value in an uninitialised map.

The only way for that function call to return a nil map is if it either could not open or parse the file.

@tothszabi tothszabi merged commit 2fbcb51 into master May 7, 2024
1 check passed
@tothszabi tothszabi deleted the info-plist-error-handling branch May 7, 2024 13:58
@lpusok lpusok mentioned this pull request May 17, 2024
1 task
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