Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    September 2018
    Posts
    4

    Unity3d iOS build error

    I downloaded the teamspeak3 Unity3d package, and build the example scene "Minimal_Mobile" on iOS platform.

    When I build into my iPhone device xcode console log show this error:
    Scripting Backend settings: IL2CPP
    Click image for larger version. 

Name:	Screen Shot 2018-09-03 at 11.55.24 AM.png 
Views:	148 
Size:	59.5 KB 
ID:	17067

    Unity Player Settings:
    Click image for larger version. 

Name:	Screen Shot 2018-09-03 at 12.16.54 PM.png 
Views:	159 
Size:	50.0 KB 
ID:	17069

    Scripting Backend settings: Mono2x
    Click image for larger version. 

Name:	Screen Shot 2018-09-03 at 12.18.03 PM.png 
Views:	149 
Size:	42.9 KB 
ID:	17068

    Unity Player Settings:
    Click image for larger version. 

Name:	Screen Shot 2018-09-03 at 12.16.29 PM.png 
Views:	122 
Size:	49.4 KB 
ID:	17070

    Here is my environment:
    TeamSpeak Unity3d Package: TeamSpeak_SDK_3.0.4_2017_05_17_Unity3D_5.unitypack age
    OS: MacOS 10.13.6 (High Sierra)
    Unity3d: 5.6.1f1
    Xcode: 9.4.1
    Bitcode: No

    Anyone has any idea whats going on?

    Thank you.

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

    Pls try this steps:

    - In Unity, add all objective-c (.m/.mm) files from the iOS/Data folder to platform iOS
    In Xcode:
    - add compiler flag "-fno-objc-arc" to all objective-c files
    - Architectures change from "armv7" to "Standard architectures"
    - Set "Enable Bitcode" to No
    - Search for "Header Search Paths" and add "$(SRCROOT)/Libraries/TeamSpeak/iOS/Data
    - open "Info.plist" from the project navigator and add the key "NSMicrophoneUsageDescription" with some text describing the reason for mic access like "voice chat"

    Regard
    Alex

  3. #3
    Join Date
    September 2018
    Posts
    4

    Solved

    Hi @Alex,

    Thanks for the solution. I finally able to build into my iOS device.

    and I figure out why Im hitting the xcode error, because all the objective-c files under "../iOS/Data" are not included in xcode project.

    The root cause is my python version is different with the package.

    For those who facing the same issue, try the following steps:
    1. Find "TeamSpeak/iOS/PostBuild/PostBuildTeamspeakScript".
    2. Edit it with your text editor.
    3. Replace "python2.6" to "python" (In my machine "python" is my python alias).
    4. Make a iOS build in Unity.
    5. Open the "TeamSpeakBuildLogFile.txt" in your Unity project.
    6. Check has any "Start of python script" and "Saved project:" log or not. (If no, means "TeamspeakRunner.py" not running)


    Thank you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. iOS SDK example does not build
    By Speakfloppy in forum General Questions
    Replies: 4
    Last Post: February 28th, 2018, 03:27 PM
  2. Whisperlist Unity3d
    By sdrnavin in forum Game Engines
    Replies: 2
    Last Post: October 20th, 2016, 06:50 AM
  3. Replies: 0
    Last Post: September 26th, 2015, 10:45 AM
  4. Update rc1 build:14377 to rc1 build:14468
    By k3nZo in forum Linux / FreeBSD
    Replies: 11
    Last Post: June 3rd, 2011, 01:11 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
  •