Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Third party asset doesn't run in il2cpp but run fine in mono backend scripting

Discussion in 'Editor & General Support' started by UDN_95d15aec-21fc-4522-872f-690c08afd765, Feb 8, 2023.

  1. UDN_95d15aec-21fc-4522-872f-690c08afd765

    UDN_95d15aec-21fc-4522-872f-690c08afd765

    Joined:
    Jun 16, 2017
    Posts:
    2
    Hi, I've been build my project using third party asset https://github.com/sebheron/TikTokLiveSharp, when I use mono everything works normally all comments shows up. But when I use il2cpp, comments doesn't show up anymore. I'm trying to use preserve the attribute, in case there's a possibility of script stripping, but it doesn't help at all. Any idea what's wrong with this?
     
    Last edited: Feb 8, 2023
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    32,332
    Does that package use System.Diagnostics.Process? I know IL2CPP doesn't implement this feature.

    Otherwise, look in the device runtime logs for clues and exceptions.
     
  3. UDN_95d15aec-21fc-4522-872f-690c08afd765

    UDN_95d15aec-21fc-4522-872f-690c08afd765

    Joined:
    Jun 16, 2017
    Posts:
    2
    It does, they use System.Diagnostics. Is there any solution for Android/IOS build?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    32,332
    I think there might be but I haven't done it. You might check over in the Platforms / Android group:

    https://forum.unity.com/forums/android.30/

    There might even be a simple drop-in solution, but I'm not sure.