vmurin / react-native-azure-auth

React Native library implementing Azure AD OAuth2 API
MIT License
85 stars 65 forks source link

IOS build error for conflicting variables #143

Closed raajnadar closed 2 years ago

raajnadar commented 2 years ago
azure

Showing All Errors Only

/node_modules/react-native-azure-auth/ios/AzureAuth.m:81:30: Implicit declaration of function 'RCTMakeError' is invalid in C99 Showing All Errors Only /node_modules/react-native-azure-auth/ios/AzureAuth.m:81:30: Declaration of 'RCTMakeError' must be imported from module 'React.RCTUtils' before it is required Showing All Errors Only /node_modules/react-native-azure-auth/ios/AzureAuth.m:81:30: Conflicting types for 'RCTMakeError' Can we get this solved? RN 0.64.3 and expo SDK 44 Related issue for other packages https://github.com/expo/expo/issues/15622#issuecomment-997141629
vmurin commented 2 years ago

Hi Nadar,

thanks for reporting! The problem should be fixed in release 1.8.3 I will appreciate a short feedback

vmurin commented 2 years ago

Another important consideration: this library is non meant to be used in expo mode. So you should actually eject first to be able use it.

I think it is the main reason for the problem and will close the issue. Feel free to reopen if you have a new input

raajnadar commented 2 years ago

I am using expo bare workflow, I was aware that this package won't work with expo go as we have native dependencies.

P.S. - The logs are from xcode so it was obvious that the app was ejected.

vmurin commented 2 years ago

OK. Then try please the new release

amanraj0505 commented 2 years ago

I am getting the following error: Undefined symbols for architecture x86_64: "_RCTMakeError", referenced from: -[AzureAuth presentSafariWithURL:] in AzureAuth.o "_RCTRegisterModule", referenced from: +[AzureAuth load] in AzureAuth.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

with "react": "17.0.2", "react-native": "0.67.2", "react-native-azure-auth": "^1.8.4",

any suggestion??

amanraj0505 commented 2 years ago

Using react native CLI

amanraj0505 commented 2 years ago
Screenshot 2022-11-08 at 1 19 32 PM
nizzam commented 1 year ago
Screenshot 2022-11-08 at 1 19 32 PM

Have found any solution ?