BUG: Crash if BundleDisplayName or BundleName have invalid characters?

4.10.4. Building an IOS app from Windows machine. Throws exception if you have a ‘&’ character in one of the two fields mentioned in the title: Easy enough to fix but probably should check for that rather than making the user guess what it may be =)

MainFrameActions: Packaging (iOS): UnrealBuildTool: Running SSH on 10.2.1.86 ... 
MainFrameActions: Packaging (iOS): UnrealBuildTool: Execute took 00:00:00.2090152
MainFrameActions: Packaging (iOS): UnrealBuildTool:  ... deleting staging files on the Mac
MainFrameActions: Packaging (iOS): UnrealBuildTool:  ... working folder: "/Users/gamedev/UE4/Builds/APPDEV7/D/UE4/UnrealEngine/LiveAndLearn/Binaries/IOS"
MainFrameActions: Packaging (iOS): UnrealBuildTool:  ... rm -rf Payload
MainFrameActions: Packaging (iOS): UnrealBuildTool:  ... full command: 10.2.1.86 "/Users/gamedev/UE4/Builds/APPDEV7/D/UE4/UnrealEngine/LiveAndLearn/Binaries/IOS" rm -rf Payload
MainFrameActions: Packaging (iOS): UnrealBuildTool: Running SSH on 10.2.1.86 ... 
MainFrameActions: Packaging (iOS): UnrealBuildTool: Execute took 00:00:00.2110235
MainFrameActions: Packaging (iOS): UnrealBuildTool: 
MainFrameActions: Packaging (iOS): UnrealBuildTool: ----------
MainFrameActions: Packaging (iOS): UnrealBuildTool: Executing command 'Clean' ...
MainFrameActions: Packaging (iOS): UnrealBuildTool: Cleaning temporary files from PC ... 
MainFrameActions: Packaging (iOS): UnrealBuildTool:  ... cleaning: D:\UE4\UnrealEngine\LiveAndLearn\Intermediate\IOS-Deploy\LiveAndLearn\Shipping\
MainFrameActions: Packaging (iOS): UnrealBuildTool: 
MainFrameActions: Packaging (iOS): UnrealBuildTool: Staging files before copying to Mac ...
MainFrameActions: Packaging (iOS): UnrealBuildTool: IPP ERROR: Application exception: System.Xml.XmlException: An error occurred while parsing EntityName. Line 27, position 16.
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlTextReaderImpl.ParseEntityName()
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlTextReaderImpl.ParseEntityReference()
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlTextReaderImpl.Read()
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlDocument.Load(XmlReader reader)
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at System.Xml.XmlDocument.LoadXml(String xml)
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at iPhonePackager.Utilities.PListHelper.CreateFromFile(String Filename) in d:\UE4\UnrealEngine\Engine\Source\Programs\IOS\iPhonePackager\Utilities.cs:line 202
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at iPhonePackager.CompileTime.CopyFilesNeededForMakeApp() in d:\UE4\UnrealEngine\Engine\Source\Programs\IOS\iPhonePackager\CompileTime.cs:line 171
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at iPhonePackager.CompileTime.CreateApplicationDirOnMac() in d:\UE4\UnrealEngine\Engine\Source\Programs\IOS\iPhonePackager\CompileTime.cs:line 521
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at iPhonePackager.CompileTime.PackageIPAOnMac() in d:\UE4\UnrealEngine\Engine\Source\Programs\IOS\iPhonePackager\CompileTime.cs:line 560
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at iPhonePackager.Program.Main(String[] args) in d:\UE4\UnrealEngine\Engine\Source\Programs\IOS\iPhonePackager\iPhonePackager.cs:line 796
MainFrameActions: Packaging (iOS): UnrealBuildTool: ERROR: System.Exception: IPP ERROR: Application exception: System.Xml.XmlException: An error occurred while parsing EntityName. Line 27, position 16.
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at UnrealBuildTool.IOSToolChain.PostBuildSync(UEBuildTarget Target) in d:\UE4\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\IOS\IOSToolChain.cs:line 1254
MainFrameActions: Packaging (iOS): UnrealBuildTool:    at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments) in d:\UE4\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 2006
MainFrameActions: Packaging (iOS): UnrealBuildTool: Total build time: 280.03 seconds
MainFrameActions: Packaging (iOS): CommandUtils.Run: Run: Took 280.072614s to run UnrealBuildTool.exe, ExitCode=1
MainFrameActions: Packaging (iOS): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (iOS): Program.Main: ERROR: AutomationTool terminated with exception:

Jeff,

Thanks for bringing this to our attention. I have tested this and put in a bug for this issue. UE-27805 is the Jira number if you’d like to check on it in a few weeks or so.

Thanks!