Here is the error that I get when trying to run Unity3D project (Sample Treasure Hunter) in XCode iPhone 5S simulator.
dyld: Symbol not found: _UnityGetAudioEffectDefinitions
Referenced from: /Users/romanmac/Library/Developer/CoreSimulator/Devices/333B47B5-B6BC-41E4-BD6D-611A9B4CE1DA/data/Containers/Bundle/Application/D8B8D3EF-F872-42F8-8407-3EC20B13474E/ProductName.app/ProductName
Expected in: flat namespace
in /Users/romanmac/Library/Developer/CoreSimulator/Devices/333B47B5-B6BC-41E4-BD6D-611A9B4CE1DA/data/Containers/Bundle/Application/D8B8D3EF-F872-42F8-8407-3EC20B13474E/ProductName.app/ProductName
(lldb)
On device it works fine.
Unity 5.4.0f3 Personal Xcode 7.3.1 (7D1014)
Here is settings for iOS player:
How do I solve this?
Basically you can modify createUnityView
in your CardboardAppController.mm
to:
- (UnityView *)createUnityView {
#if !TARGET_OS_SIMULATOR
UnityRegisterViewControllerListener(self);
UnityRegisterAudioPlugin(UnityGetAudioEffectDefinitions);
#endif
UnityView* unity_view = [super createUnityView];
#if !TARGET_OS_SIMULATOR
createUiLayer(self, (UIView *)unity_view);
#endif
return unity_view;
}
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