Fehler beim Senden von E-Mails über iOS-App mit Unity

Ich arbeite an einem Schulprojekt und versuche, Daten zu protokollieren, die aus einem Spiel stammen, das ich in Unity erstellt habe.

Mein Problem ist, dass ich die Daten der App per E-Mail senden möchte. Alles funktioniert einwandfrei, E-Mails werden mit den Daten usw. gesendet. Wenn ich die App jedoch auf einem iOS-Gerät erstelle, wird die E-Mail nicht gesendet.

Ich habe keine Fehler in Unity, aber ich erhalte diesen Fehler in Xcode, wenn ich die App erstelle. Siehe den Fehler unten. Ich hoffe jemand kann mir helfen.

Schöne Grüße

Georgi Iliev

MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Net.Configuration.MailSettingsSectionGroup'.
  at Mono.Security.Authenticode.AuthenticodeBase.GetSecurityEntry () [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.GetSectionGroupInstance (System.Configuration.SectionGroupInfo group) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSectionGroupCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Net.Mail.SmtpClient..ctor (System.String host, Int32 port) [0x00000] in <filename unknown>:0 
  at MonoGmail.Start () [0x00000] in <filename unknown>:0 

(Filename: currently not available on il2cpp Line: -1)

added @programmers Lösung und bekam einen neuen gemischten Fehler.

MissingMethodException: Method not found: 'Default constructor not found...ctor() of System.Net.Configuration.MailSettingsSectionGroup'.
  at StartMenu.CloseApp () [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigInfo.CreateInstance () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.Comparer`1[T].get_Default () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.GetSectionGroupInstance (System.Configuration.SectionGroupInfo group) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSectionGroupCollection.get_Item (System.String name) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.GetSection (System.String path) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.MonoTODOAttribute..ctor () [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Net.Mail.SmtpClient..ctor (System.String host, Int32 port) [0x00000] in <filename unknown>:0 
  at System.Net.Mail.SmtpClient..ctor (System.String host) [0x00000] in <filename unknown>:0 
  at Mono_Gmail.Start () [0x00000] in <filename unknown>:0 
  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 
  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 
  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 
  at System.Array.GetGenericValueImpl[T] (Int32 pos, .T& value) [0x00000] in <filename unknown>:0 
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)
System.Array:GetGenericValueImpl(Int32, T&)

(Filename: currently not available on il2cpp Line: -1)

Antworten auf die Frage(2)

Ihre Antwort auf die Frage