Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode error when trying to run Unity3D app

Tags:

xcode

ios

unity3d

I am trying to run my iOS app that I developed in Unity on XCode but I am getting this error:

dyld: Symbol not found: _gEnableStylusTouch Referenced from: /Users//Library/Developer/CoreSimulator/Devices/91CAEC4E-6706-4B87-AA7A-323CB629C56E/data/Containers/Bundle/Application/E591C7A6-EA53-470E-BDF0-8CF2C3DDF686/dsapp.app/dsapp Expected in: flat namespace in /Users//Library/Developer/CoreSimulator/Devices/91CAEC4E-6706-4B87-AA7A-323CB629C56E/data/Containers/Bundle/Application/E591C7A6-EA53-470E-BDF0-8CF2C3DDF686/dsapp.app/dsapp

This is only happening when I am running on the iPhone6 simulator. It works on all the simulators before iPhone6.

Here are some details of my environment:

Unity3D version: 5.3.3f1

XCode version: 7.2.1

Does anyone know how I can get rid of this error, I have read other related questions that say this problem has to do with linked frameworks and libraries but I am still unsure of how I can solve this issue. Any help is appreciated.

EDIT

Note that I am also getting this error when I submit to the apple store. It needs to be fixed otherwise I can't get my app in the store.

Added screenshots below.

enter image description here


enter image description here

like image 375
Ogen Avatar asked Feb 27 '16 04:02

Ogen


People also ask

Can you use Xcode for Unity?

Build the Xcode projectDepending on your versions of Unity and Xcode, you may be able to select Build and Run instead. In this instance, Unity will automatically open the built project in Xcode and run it on a connected device, if possible.

Can you run Unity on iOS?

Building games for iOS. Bring your game to life with Unity, the chosen platform for over 60% of the top-grossing mobile games on the Apple App Store.

Can you use Unity with Swift?

You can use any Swift code in your Unity project. You can call Swift void's from Unity but also actual return types. You can pass on variables from Unity to the Swift Functions.


1 Answers

In the Unity3D player settings for iOS, I changed the scripting backend from Mono to IL2CPP and selected Universal as my architecture and it worked. I submitted to the apple store with no errors and it was successfully reviewed and accepted. I'm not exactly sure why it solved the issue, I was just fiddling around with different options.

like image 158
Ogen Avatar answered Sep 27 '22 18:09

Ogen