AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
273 stars 196 forks source link

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

Closed RyuWoong closed 1 month ago

RyuWoong commented 3 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 3 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 1 month ago

+1

RyuWoong commented 1 month 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```