[Mac][Automation Tool]: Shipping Build failure due to unused variable warnings in engine and third party plugin code

I’m trying to create a packaged build of my project for Mac and everything loads up in the editor and works just fine; however, when I try to package I get the following build “errors” (warnings as errors):

UATHelper: Packaging (Mac): CopyBuildToStagingDirectory.Automation.cs(1929,13): error CS0219: Warning as Error: The variable NoExtensionWithDot' is assigned but its value is never used PackagingResults: Error: The variable NoExtensionWithDot’ is assigned but its value is never used

UATHelper: Packaging (Mac): LuminPlatform.Automation.cs(637,11): error CS0219: Warning as Error: The variable `ElfName’ is assigned but its value is never used

Please see log attached.link text

Is there a way that I can disable this Warnings as Errors for shipping builds on Mac? or any other workaround to remove the problem files from the project (we’re not using the lumin runtime, for instance, and all related plugins are disabled in the project.)

I have the same errors when packagin for iOS. Looks like a bug