From 2fbcb5125a77a68595255850dbf9e008028fc733 Mon Sep 17 00:00:00 2001 From: Szabolcs Toth <54896607+tothszabi@users.noreply.github.com> Date: Tue, 7 May 2024 14:58:42 +0100 Subject: [PATCH] Handle plist opening errors (#46) --- step/step.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/step/step.go b/step/step.go index a57a690..1fb16b6 100644 --- a/step/step.go +++ b/step/step.go @@ -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