Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symbol not found: _UnityGetAudioEffectDefinitions in Google VR SDK

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:

enter image description here

enter image description here

How do I solve this?

like image 358
Roman Avatar asked Oct 19 '22 03:10

Roman


1 Answers

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;
}
like image 170
Ali Avatar answered Nov 02 '22 11:11

Ali