Skip to content

Commit

Permalink
Handle plist opening errors (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
tothszabi authored May 7, 2024
1 parent 84a6897 commit 2fbcb51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion step/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ func (u Updater) updateVersionNumbersInInfoPlist(helper *projectmanager.ProjectH

u.logger.Printf("Updating Info.plist at %s", infoPlistPath)

infoPlist, format, _ := xcodeproj.ReadPlistFile(infoPlistPath)
infoPlist, format, err := xcodeproj.ReadPlistFile(infoPlistPath)
if err != nil {
return err
}

oldVersion := infoPlist["CFBundleVersion"]
newVersion := strconv.FormatInt(bundleVersion, 10)
infoPlist["CFBundleVersion"] = newVersion
Expand Down

0 comments on commit 2fbcb51

Please sign in to comment.