AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
284 stars 202 forks source link

redefinition of 'SUCCESS' as different kind of symbol #541

Closed RyuWoong closed 5 months ago

RyuWoong commented 7 months ago

Report

Plugin Version

6.13.1

On what Platform are you having the issue?

ios

What did you do?

Run build

What did you expect to happen?

Build Success but error

What happened instead?

redefinition of 'SUCCESS' as different kind of symbol

i'm using this lib. "@react-native-seoul/naver-login": "3.0.0",

naveridlogin-sdk-ios/NaverThirdPartyLogin.framework/Headers/NaverThirdPartyLoginConnection.h:11:

typedef enum {
    SUCCESS = 0, // <--- here
    PARAMETERNOTSET = 1,
    CANCELBYUSER = 2,
    NAVERAPPNOTINSTALLED = 3 ,
    NAVERAPPVERSIONINVALID = 4,
    OAUTHMETHODNOTSET = 5,
    INVALIDREQUEST = 6,
    CLIENTNETWORKPROBLEM = 7,
    UNAUTHORIZEDCLIENT = 8,
    UNSUPPORTEDRESPONSETYPE = 9,
    NETWORKERROR = 10,
    UNKNOWNERROR = 11
} THIRDPARTYLOGIN_RECEIVE_TYPE;

Please provide any other relevant information.

-

github-actions[bot] commented 7 months ago

👋 Hi @RyuWoong and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

dev-jaylim commented 5 months ago

+1

RyuWoong commented 5 months ago

@dev-jaylim Hi, there

Here is Solution. step 1. open AppDelgate.mm step 2. find line "import AppsFlyerLib.h" step 3. fix it to the content below


#import <AppsFlyerLib/AppsFlyerLib.h>
#else
#import "AppsFlyerLib.h"
#endif```