A problem when using Nice Vibrations in Unity
I have just added Nice Vibrations to my Unity project and now I get this error while building the whole React Native + Unity app on rect-native-unity-view compile step:
Module 'UnityFramework_NiceVibrationsPrivate' not found (https://prnt.sc/10cremj)
UnityFramework_NiceVibrationsPrivate is described in module.modulemap file in Nice Vibrations library (https://prnt.sc/10crh5p):
module UnityFramework_NiceVibrationsPrivate {
header "UnitySwift-Bridging-Header.h"
export *
}
It connects swift and Obj-C code:
MMNViOSCoreHapticsInterface.swift -> UnityFramework_NiceVibrationsPrivate -> UnitySwift-Bridging-Header.h:
#import <Foundation/Foundation.h>
#import <CoreHaptics/CoreHaptics.h>
#import "UnityInterface.h"
typedef void (*HapticCallback)();
Nice Vibrations has post process script to add some dependencies when building Xcode project from Unity:
https://prnt.sc/10crmx7 https://prnt.sc/10cro72
Unity Framework compiles OK https://prnt.sc/10crqcr , but has warning:
Umbrella header for module 'UnityFramework' does not include header 'UnitySwift-Bridging-Header.h'
When build comes to react-native-unity-view, I get the error https://prnt.sc/10crsgk
I will be grateful for any help or ideas in solving the problem
Did you ever fix this? We're having the same problem and I thought I fixed it before but it broke again randomly
No, I had to use another asset
Did someone fixed this issue?
Did anyone fixed this?
I am also getting same issue. can anyone help?
I swapped to this plugin instead: https://github.com/CandyCoded/HapticFeedback
Here is the solution.
1- Type "MMNV" on project searchbar.
2- Click on "MMNV Path Definition" SO.
3- On inspector you must assign "UnitySwift-Bridging-Header"
That's it. You can build without getting any errors.
I'm still getting this issue when trying to build despite having UnitySwift-Bridging-Header assigned. Is there a fix for this issue?