Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

Type '[Assembly-CSharp]xxx' has an extra field 'xxx' of type 'xxx' in the player and thus can't be serialized

$
0
0
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!

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>