Forum

Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2017
    Posts
    1

    Trouble building Unity SDK Example for iOS

    Hi, I'm trying to build the Unity Quickstart example for iOS and run into 2 problems.

    The first is a C# compilation error because of a redeclared variable 'error' in TeamSpeakClient.cs line 181 (inside the #if UNITY_IPHONE block):

    Code:
            uint error;
            if (!started && !connected)
            {
    #if UNITY_IPHONE && !UNITY_EDITOR
    		uint error = TeamSpeakInterface.ts3client_initClientLib(ref cbs, ref cbs_rare, (int)(LogTypes.LogType_FILE | LogTypes.LogType_CONSOLE), null,null);
    #elif UNITY_ANDROID && !UNITY_EDITOR
    Fixing this leads to the second problem, a "Plugins colliding with each other" for the libts3client.a library, here's the error from the Unity editor console:

    Code:
    Plugin 'libts3client.a' is used from several locations:
     Assets/TeamSpeak/iOS/Data/simulator/libts3client.a would be copied to <PluginPath>/libts3client.a
     Assets/TeamSpeak/iOS/Data/device/libts3client.a would be copied to <PluginPath>/libts3client.a
    Please fix plugin settings and try again.
    Is the iOS Unity support in a state where it is supposed to be working, or are there any known issues and I should wait until these are resolved?

    Versions are: Unity 5.6.0f3 Personal, macOS 10.12.5 Beta, Xcode 8.3.2

    Thanks!

  2. #2
    Join Date
    May 2016
    Location
    Idar-Oberstein
    Posts
    163
    An update for the Unity SDK Example is in the works.

    UNITY_IPHONE has recently been deprecated by Unity for UNITY_IOS (not sure if that's your version, but a thing to keep in mind).
    uint error = should ofc be error =

    Unity doesn't handle it well that we got two sdk client libraries for the two architectures. We're looking into making that more convenient, you can workaround this by simply moving the .a that isn't part of your build target (i.e. when building for the simulator, moving the one in device/) out of the folder structure temporarily.

  3. #3
    Join Date
    January 2016
    Location
    Munich / Bavaria
    Posts
    16
    Hi,

    you can download the new unity3d 5 plugin from our website.

    We fix the IOS and Android problems.

    kind regards

    Alex

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. building, compiling on linux
    By elixcyr in forum General Questions
    Replies: 2
    Last Post: December 13th, 2016, 09:13 AM
  2. Noob question about building my own server computer
    By Isver in forum Server Support
    Replies: 1
    Last Post: January 6th, 2014, 01:40 PM
  3. Building a Server for Teamspeak
    By Fast6 in forum Server Support
    Replies: 4
    Last Post: June 2nd, 2013, 08:09 PM
  4. options when building for plugin for Mac
    By Screech in forum Client Plugins / Lua Scripts
    Replies: 2
    Last Post: December 13th, 2010, 03:40 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •