You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Create exported functions to use codesigndoc from package
* Move to function ExportCodesigningFiles export logic
* Improve logging
* Move log file writing to a closure
* Rename GenerateXcodeArchive to BuildXcodeArchive
log.Errorf("Failed to save xamarin build output into file (%s), error: %s", logOutputFilePath, err)
176
-
} else {
177
-
isLogFileWritten=true
178
175
}
179
176
}
180
177
iferr!=nil {
181
-
log.Warnf("Last lines of build log:")
178
+
log.Warnf("Last lines of the build log:")
182
179
fmt.Println(stringutil.LastNLines(logOutput, 15))
180
+
181
+
log.Infof(colorstring.Yellow("Please check the build log to see what caused the error."))
183
182
fmt.Println()
184
-
ifisLogFileWritten {
185
-
log.Warnf("Please check the logfile (%s) to see what caused the error", logOutputFilePath)
186
-
log.Warnf(`and make sure that you can "Archive for Publishing" this project from Xamarin!`)
187
-
fmt.Println()
188
-
log.Infof("Open the project: %s", xamarinCmd.SolutionFilePath)
189
-
log.Infof(`And do "Archive for Publishing", after selecting the Configuration+Platform: %s|%s`, xamarinCmd.Configuration, xamarinCmd.Platform)
190
-
fmt.Println()
191
-
}
183
+
184
+
log.Errorf("Build failed.")
185
+
log.Infof(colorstring.Yellow("Open the project: ")+"%s", xamarinCmd.SolutionFilePath)
186
+
log.Infof(colorstring.Yellow(`And do "Archive for Publishing", after selecting the Configuration+Platform: `)+"%s|%s", xamarinCmd.Configuration, xamarinCmd.Platform)
187
+
fmt.Println()
188
+
192
189
returnArchiveError{toolXamarin, "failed to run xamarin build command: "+err.Error()}
0 commit comments