I have used " BuildPipeline.BuildPlayer( scenes.ToArray(), "../iOSProject", BuildTarget.iPhone, BuildOptions.None );
" to generate an XCode Project, but there happened some errors:
Type '[Assembly-CSharp]LoginAccountExceptionHandler' has an extra field 'quickLoginPlatform' of type 'Apollo.ApolloPlatform' in the player and thus can't be serialized
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
Build:iOSBuild() (at Assets/Editor/Build.cs:38)
And the related code is,
public class LoginAccountExceptionHandler
{
#if UNITY_IPHONE || UNITY_ANDROID
public enum QuickLoginState
{
Default = 0,
}
public QuickLoginState quickLoginState = QuickLoginState.Default;
public Apollo.ApolloPlatform quickLoginPlatform = ApolloPlatform.Wechat;
#endif
}
Please give me some tips to solve this error~We are expecting for a reply!
↧