Ogen
Ogen

Reputation: 6709

XCode error when trying to run Unity3D app

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

Upvotes: 7

Views: 2284

Answers (1)

Ogen
Ogen

Reputation: 6709

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.

Upvotes: 2

Related Questions