Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.5.3] 빌드 과정에서 에러가 발생합니다. #24

Open
ujeon opened this issue Sep 24, 2024 · 3 comments
Open

[7.5.3] 빌드 과정에서 에러가 발생합니다. #24

ujeon opened this issue Sep 24, 2024 · 3 comments

Comments

@ujeon
Copy link

ujeon commented Sep 24, 2024

안녕하세요, 7.5.3 버전을 사용하는 프로젝트에서 빌드 과정 중 컴파일에러가 발생합니다.

  • 환경
    Xcode 15.0.1
    swift version 5.0

  • podfile :

...
pod 'NAMSDK', '7.5.3'
pod 'NAMSDK/MediationNDA', '7.5.3'
...

프로젝트는 react native로 되어있으며, AppDelegate.mm 에서는 다음과 같이 GFPAdManagerDelegate 설정이 되어있습니다 :

#import <GFPSDK/GFPSDK.h>
...

  GFPAdConfiguration *configuration = [[GFPAdConfiguration alloc] init];
  [GFPAdManager setupWithPublisherCd:@"HELLOW_WORLD" target:self configuration:configuration completionHandler:^(GFPError * _Nullable error) {
    NSLog(@"NAM Setup ERROR: %@", error);
  }];

...

- (GFPATTAuthorizationStatus)attStatus {
  if (@available(iOS 14.5, *)) {
    switch (ATTrackingManager.trackingAuthorizationStatus) {
      default:
      case ATTrackingManagerAuthorizationStatusNotDetermined:
        return GFPATTAuthorizationStatusNotDetermined;

      case ATTrackingManagerAuthorizationStatusRestricted:
        return GFPATTAuthorizationStatusRestricted;

      case ATTrackingManagerAuthorizationStatusDenied:
        return GFPATTAuthorizationStatusDenied;

      case ATTrackingManagerAuthorizationStatusAuthorized:
        return GFPATTAuthorizationStatusAuthorized;
    }
  } else {
    if ([[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled]) {
      return GFPATTAuthorizationStatusAuthorized;
    }
    return GFPATTAuthorizationStatusNotDetermined;
  }
}

발생한 에러는 다음과 같습니다 :
Screenshot 2024-09-24 at 3 29 00 PM

감사합니다.

@shhan-sys
Copy link
Contributor

shhan-sys commented Sep 26, 2024

@ujeon 님, 안녕하세요
#import <GFPSDK/GFPSDK.h>
형태가 아닌 @import GFPSDK;
형태로 적용을 부탁드리겠습니다~

@bean5389
Copy link

bean5389 commented Nov 8, 2024

@ujeon 님, 안녕하세요.
혹시 해당 이슈 해결하셨나요?

@ujeon
Copy link
Author

ujeon commented Nov 8, 2024

@bean5389 아뇨.. 해결하지 못하였습니다.
@shhan-sys 님께서 알려주신 방법과 여타 다른 방법을 적용해보았으나 이슈가 발생하는 상황이었습니다.

(현재는 SDK를 사용하고 있지 않아서 팔로업하지 않고 있었습니다.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants