react-native-unity
react-native-unity copied to clipboard
Use of undeclared identifier 'BASELIB_API'
I'm using
"@azesmway/react-native-unity": "^1.0.10",
"react": "18.3.1",
"react-native": "0.75.4"
Configured my iOS and Android projects according to the README. It works fine for Android, but when I build for iOS I get these errors:
Some of these errors are:
MyApp/node_modules/@azesmway/react-native-unity/ios/Il2CppOutputProject/IL2CPP/external/baselib/Include/C/Baselib_Debug.h:17:1 Use of undeclared identifier 'BASELIB_API'
MyApp/node_modules/@azesmway/react-native-unity/ios/Il2CppOutputProject/IL2CPP/external/baselib/Include/C/Baselib_Debug.h:4:1 A type specifier is required for all declarations
Not sure if it's relevant, but in the folder where UnityFramework.framework was created there were also libGameAssembly.a and libil2cpp.a which I didn't copy when I copied the UnityFramework.framework folder.
Another screenshot of the same errors:
Downgrading to "@azesmway/react-native-unity": "^1.0.7" worked for iOS.
@thechaudharysab i am already on this version still facing this error could you guide me
@thechaudharysab i am facing same problem .did you find any work around
@varunsdcet see the react-native version that I have shared. It should work with that particular react/RN version.
@thechaudharysab i am already on this version still facing this error could you guide me
Hello i am still this issue have you any idea how to fix
@thechaudharysab i am already on this version still facing this error could you guide me
Hello i am still this issue have you any idea how to fix
@varunsdcet I Gave up on this lib and used this lib its working fine just make sure you properly do setup given here