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. Dismiss Notice

Bug Vivox in Ios mode has error

Discussion in 'Vivox (Voice & Text Chat)' started by ElegantUniverse, Oct 8, 2022.

  1. ElegantUniverse

    ElegantUniverse

    Joined:
    Sep 13, 2018
    Posts:
    78
    Hello, whenever I run unity on the editor (IOS platform ) I encounter this error and when I build the project for Xcode 14 and build the project on the Ios simulator, I encounter the second error log.
    Vivox version: "com.unity.services.vivox": "15.1.180000-pre.1"
    Unity Version: 2021.3.11 f1 LTS

    Code (CSharp):
    1. EntryPointNotFoundException: SWIGRegisterExceptionCallbacks_VivoxCoreInstance assembly:<unknown assembly> type:<unknown type> member:(null)
    2. VivoxCoreInstancePINVOKE+SWIGExceptionHelper..cctor () (at Library/PackageCache/com.unity.services.vivox@15.1.180000-pre.1/Runtime/VivoxUnity/swig/VivoxCoreInstancePINVOKE.cs:128)
    3. Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
    4. VivoxCoreInstancePINVOKE..cctor () (at Library/PackageCache/com.unity.services.vivox@15.1.180000-pre.1/Runtime/VivoxUnity/swig/VivoxCoreInstancePINVOKE.cs:148)
    5. Rethrow as TypeInitializationException: The type initializer for 'VivoxCoreInstancePINVOKE' threw an exception.
    6. VivoxUnity.Client.get_Initialized () (at Library/PackageCache/com.unity.services.vivox@15.1.180000-pre.1/Runtime/VivoxUnity/Client.cs:220)
    7. VivoxUnity.Client.Uninitialize () (at Library/PackageCache/com.unity.services.vivox@15.1.180000-pre.1/Runtime/VivoxUnity/Client.cs:165)
    8. VivoxManager.Awake () (at Assets/Neoki/Scripts/In-Game/VoiceChat/VivoxMobile/VivoxManager.cs:73)


    Xcode Error:



    Code (CSharp):
    1.     reinterpret_cast<PInvokeFunc>(SWIGRegisterExceptionCallbacks_VivoxCoreInstance)(____applicationDelegate0_marshaled, ____arithmeticDelegate1_marshaled, ____divideByZeroDelegate2_marshaled, ____indexOutOfRangeDelegate3_marshaled, ____invalidCastDelegate4_marshaled, ____invalidOperationDelegate5_marshaled, ____ioDelegate6_marshaled, ____nullReferenceDelegate7_marshaled, ____outOfMemoryDelegate8_marshaled, ____overflowDelegate9_marshaled, ____systemExceptionDelegate10_marshaled);


    [Update]
    The first error has gone, I updated Vivox package to "com.unity.services.vivox": "15.1.180001-pre.5",

    but I still have the second error in xcode.
     
    Last edited: Oct 8, 2022
  2. MurphyMurph_21

    MurphyMurph_21

    Joined:
    Jul 3, 2020
    Posts:
    73


    Are you using Vivox from the asset in the Unity Asset Store or are you downloading the iOS Unity SDK from
    the Vivox Developer Portal?
     
  3. ElegantUniverse

    ElegantUniverse

    Joined:
    Sep 13, 2018
    Posts:
    78
    None of them.
    I put
    Code (CSharp):
    1. "com.unity.services.vivox": "15.1.180001-pre.5"
    in the manifest.json file in the package folder and I let the unity to sync and resolve the package.

    tip: I use the simulator for my tests
     
    Last edited: Oct 9, 2022
  4. MurphyMurph_21

    MurphyMurph_21

    Joined:
    Jul 3, 2020
    Posts:
    73

    Oh ok, sorry I haven't tested out Unity's version yet (technically they are both Unity's) so I can't help you. I will download an IOS simulator at some point and try my project out and see if I get the same error
     
  5. emilyryan

    emilyryan

    Unity Technologies

    Joined:
    Nov 22, 2019
    Posts:
    129
    Hello!

    I am glad to hear you were able to resolve your first error of EntryPointNotFoundException. I'll post this here, in case you ever run into the error again, you can fix EntryPointNotFoundException by following this guide: https://support.unity.com/hc/en-us/...ointNotFoundException-Errors-on-Mac-for-Unity

    Regarding the second error you are seeing, unfortunately we do not support iOS Simulator at this time. You can feel free to follow this article for updates: https://support.unity.com/hc/en-us/...-Vivox-Does-Vivox-offer-iOS-Simulator-Support

    I will also take note of your post here to help gauge community interest in supporting the iOS Simulator for Vivox. Thank you for your time and I wish you the best with your development.
     
    MurphyMurph_21 likes this.
  6. MurphyMurph_21

    MurphyMurph_21

    Joined:
    Jul 3, 2020
    Posts:
    73
    @emilyryan Providing support for IOS simulator would be awesome!!! It would be helpful to devs like myself to be able to test on IOS without having to buy an apple iPhone to test out using Vivox.