- Home /
U3DXT Social.Mail causes Json Exception
Hi,
i'm trying to send an attachment via mail using U3DXT SocialXT.Mail()-function.
XCode says:
Exception: Exception of type 'System.Exception' was thrown. at SimpleJson.JsonObject.get_Count () [0x00000] in :0 at UnityEngineInternal.TypeInferenceRuleAttribute..ctor (TypeInferenceRules rule) [0x00000] in :0 at U3DXT.Core.CoreXT._Init () [0x00000] in :0 at U3DXT.Core.CoreXT..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at U3DXT.iOS.Native.Internals._SocialInit..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at U3DXT.iOS.Native.MessageUI.MFMailComposeViewController..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at MailAnything.Start () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'U3DXT.Core.CoreXT' threw an exception. at U3DXT.iOS.Native.Internals._SocialInit..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at U3DXT.iOS.Native.MessageUI.MFMailComposeViewController..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at MailAnything.Start () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'U3DXT.iOS.Native.Internals._SocialInit' threw an exception. at U3DXT.iOS.Native.MessageUI.MFMailComposeViewController..cctor () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 at MailAnything.Start () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0 Rethrow as TypeInitializationException: The type initializer for 'U3DXT.iOS.Native.MessageUI.MFMailComposeViewController' threw an exception. at MailAnything.Start () [0x00000] in :0 at System.Array+InternalEnumerator`1[System.Byte].get_Current () [0x00000] in :0
I get the same error when i run the MailAnything example on my iPad3 with iOS 8.3.
Any ideas how to fix this error?
Thanks in advance!
Edit: I'm using Unity version 5.1.0f3
Your answer
