Download

iOS Packaging Failed: Unable to instantiate instance of 'FreeType2'

Hi All,

I’m trying to package an iOS build of my game in OSX Sierra and I’m encountering an error that doesn’t not seem to include any real details on what is happening with the UnrealBuildTool (below). I have no issues building the WIndows and Android version on my Windows PC but I don’t have a pure blueprint project so I’m using a Mac to do the iOS build.

ERROR: Unable to instantiate instance of ‘FreeType2’ object type from compiled assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. Unreal Build Tool creates an instance of your module’s ‘Rules’ object in order to find out about your module’s requirements. The CLR exception details may provide more information: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.MissingMethodException: Method ‘Array.Empty’ not found.
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object] parameters) [0x00000] in <filename unknown>:0
— End of inner exception stack trace —
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object] parameters) [0x00000] in <filename unknown>:0
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object] parameters) [0x00000] in <filename unknown>:0
at UnrealBuildTool.RulesAssembly.CreateModuleRules (System.String ModuleName, UnrealBuildTool.ReadOnlyTargetRules Target, UnrealBuildTool.FileReference& ModuleFileName) [0x00000] in <filename unknown>:0

I don’t have any classes/actors using the FreeType2 name, is this possibly related to the use of Mono on Mac OS?. Any help here is greatly appreciated.

I’m running into the exact same issue, did you ever get anywhere with this?