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.
Added screenshots below.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With