[英]Unreal Engine 4 - iOS packaging error
I can't package EMPTY UE4 project (standart BP 2DSideScroller) for IOS in 4.17.2, 4.18.3 and 4.19 (Preview 5). 我无法在4.17.2、4.18.3和4.19(预览版5)中为IOS打包EMPTY UE4项目(标准BP 2DSideScroller)。
Here is the error: 这是错误:
UATHelper: Packaging (iOS): ********** COOK COMMAND COMPLETED **********
UATHelper: Packaging (iOS): ********** STAGE COMMAND STARTED **********
UATHelper: Packaging (iOS): Creating UE4CommandLine.txt
UATHelper: Packaging (iOS): Creating Staging Manifest...
UATHelper: Packaging (iOS): CookPlat IOS, this IOSPlatform
UATHelper: Packaging (iOS): UPL Init: None
UATHelper: Packaging (iOS): ERROR: System.FormatException: Input string was not in a correct format.
Any idea what is wrong? 知道有什么问题吗?
I recently faced this problem and for me it was due to an issue with the UnrealBuildTool source file IOSToolChain.cs
. 我最近遇到了这个问题,对我来说,这是由于UnrealBuildTool源文件
IOSToolChain.cs
。 See https://github.com/EpicGames/UnrealEngine/blob/64882dd8e6a8711364a3857047d31167102ed846/Engine/Source/Programs/UnrealBuildTool/Platform/IOS/IOSToolChain.cs#L68 for the offending line. 请参阅https://github.com/EpicGames/UnrealEngine/blob/64882dd8e6a8711364a3857047d31167102ed846/Engine/Source/Programs/UnrealBuildTool/Platform/IOS/IOSToolChain.cs#L68了解违规行。
The constructor is attempting to parse IOSSDKVersion
as a float, but on line 25 this is set to the string "latest", causing the conversion to throw an exception. 构造函数试图将
IOSSDKVersion
解析为一个浮点数,但是在第25行IOSSDKVersion
其设置为字符串“ latest”,从而导致转换引发异常。
This value is read via an XML build configuration file however, so setting the IOS SDK version directly in this file to a suitable value should fix the issue. 但是,此值是通过XML构建配置文件读取的,因此直接在此文件中将IOS SDK版本设置为合适的值应该可以解决此问题。
As an example, here's some XML that could be used in <user>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
: - 例如,下面的一些XML可以在
<user>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml
:-
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<IOSToolChain>
<IOSSDKVersion>11.4</IOSSDKVersion>
</IOSToolChain>
</Configuration>
Hope that helps! 希望有帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.