View Full Version : Unity3d iOS build error

September 3rd, 2018, 05:18 AM
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

Unity Player Settings:

Scripting Backend settings: Mono2x

Unity Player Settings:

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.

September 3rd, 2018, 05:07 PM

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"


September 4th, 2018, 11:05 AM
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:

Find "TeamSpeak/iOS/PostBuild/PostBuildTeamspeakScript".
Edit it with your text editor.
Replace "python2.6" to "python" (In my machine "python" is my python alias).
Make a iOS build in Unity.
Open the "TeamSpeakBuildLogFile.txt" in your Unity project.
Check has any "Start of python script" and "Saved project:" log or not. (If no, means "TeamspeakRunner.py" not running)

Thank you. :o