crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
350 stars 133 forks source link

'RNKakaoLogins.h' file not found 에러 #373

Closed taegeunkang closed 1 year ago

taegeunkang commented 1 year ago

Description

Version of kakao-login libraries 5.26

Version of react-native 0.71.3

Platforms you faced the error (IOS or Android or both?) iOS

Expected behavior 정상 빌드

Xcode상에서 AppDelegate.mm 파일에 다음과 같은 코드 삽입 후 빌드 진행하려 했으나 RNKakaoLogins.h를 찾지 못해 빌드가 진행되지 않습니다.

#import <RNKakaoLogins.h>
...
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
                                       sourceApplication:(NSString *)sourceApplication
                                              annotation:(id)annotation {
    if([RNKakaoLogins isKakaoTalkLoginUrl:url]) {
      return [RNKakaoLogins handleOpenUrl: url];
    }

    return NO;
}

다음과 같은 작업을 진행 후 다시 시도 했지만 결과가 똑같습니다.

Benj846 commented 1 year ago

같은 증상입니다 kakaoSDK 버전바꿔가면서 빌드할때마다 캐시 삭제하고 빌드했는데도 같은에러 지속적으로 발생합니다

Benj846 commented 1 year ago

Xcode 에서 AppDelegare.mm 파일에서 #import <RNKakaoLogins.h> 를 파일 맨위로 옮기고 xcode 에서 빌드 하면 일단 해결되긴합니다

아니면 프로젝트 전체 다시 하면 되다가, build 를 몇번하면 또 안되네요 eas 쪽 캐싱문제인지 rn seoul kakao login 문제인지 알수가없네요 ps: kakaoSdk 2.9.0 부터 2.14.0 까지 한번씩 다 해봤는데 같은 애러발생합니다