naver / nam-sdk-ios

Other
4 stars 3 forks source link

네이티브 심플 광고 연동 문의 #3

Closed hm138 closed 2 years ago

hm138 commented 2 years ago

네이티브 심플 광고 연동 관련 아래 내용 확인 부탁드립니다.

  1. 네이티브 이미지형 광고 뷰 생성 가이드에 따라 진행시, Referencing Outlets 에 하기 아래 빨간색 박스안의 mediaView 가 보이지 않습니다.

    20220530_1358
  2. mediaView 보이지 않아 강제로 아래와 같이 mediaView 적용시, Crash 현상 나타나고 있습니다.

    20220530_1414

[Crash Log]

2022-05-30 14:18:55.147719+0900 NaverADDemo[18912:4499887] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x2818a4c80 NaverADDemo.NativeSimpleAdView:0x10560eec0.width == UIStackView:0x10510b950.width   (active)>",
    "<NSLayoutConstraint:0x2818a6990 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.trailing >= NaverADDemo.NativeSimpleAdView:0x10560eec0.trailing   (active)>",
    "<NSLayoutConstraint:0x2818a6df0 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.centerX == NaverADDemo.NativeSimpleAdView:0x10560eec0.centerX   (active)>",
    "<NSLayoutConstraint:0x2818a4fa0 'UIView-leftMargin-guide-constraint' H:|-(10)-[UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':UIStackView:0x10510b950 )>",
    "<NSLayoutConstraint:0x2818a47d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide']-(10)-|(LTR)   (active, names: '|':UIStackView:0x10510b950 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x2818a6990 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.trailing >= NaverADDemo.NativeSimpleAdView:0x10560eec0.trailing   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2022-05-30 14:18:55.148823+0900 NaverADDemo[18912:4499887] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x2818a4c80 NaverADDemo.NativeSimpleAdView:0x10560eec0.width == UIStackView:0x10510b950.width   (active)>",
    "<NSLayoutConstraint:0x2818a6b70 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.leading <= NaverADDemo.NativeSimpleAdView:0x10560eec0.leading   (active)>",
    "<NSLayoutConstraint:0x2818a6df0 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.centerX == NaverADDemo.NativeSimpleAdView:0x10560eec0.centerX   (active)>",
    "<NSLayoutConstraint:0x2818a4fa0 'UIView-leftMargin-guide-constraint' H:|-(10)-[UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':UIStackView:0x10510b950 )>",
    "<NSLayoutConstraint:0x2818a47d0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide']-(10)-|(LTR)   (active, names: '|':UIStackView:0x10510b950 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x2818a6b70 'UISV-canvas-connection' UILayoutGuide:0x2802907e0'UIViewLayoutMarginsGuide'.leading <= NaverADDemo.NativeSimpleAdView:0x10560eec0.leading   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2022-05-30 14:18:55.151279+0900 NaverADDemo[18912:4499887] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/5476F773-08A9-4E29-9F94-94BC88EFF7C5/NaverADDemo.app> (loaded)' with name 'GFPNDAReasonCollectionViewCell''
*** First throw call stack:
(0x1808950fc 0x1990d0d64 0x1808ec230 0x1831dcd18 0x182e7cefc 0x182e4868c 0x104b43778 0x182fd1a18 0x182eca3c8 0x182e1de64 0x182e30798 0x184593138 0x184585958 0x184599f80 0x1845a2874 0x1845850b0 0x1831e6cc0 0x1834815fc 0x183afd5b0 0x183afcba0 0x1808b70d0 0x1808c7d90 0x180802098 0x1808078a4 0x18081b468 0x19c3a738c 0x1831bd088 0x182f3b958 0x1980edfa0 0x104acad50 0x104acacd8 0x104acae00 0x104e8daa4)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/5476F773-08A9-4E29-9F94-94BC88EFF7C5/NaverADDemo.app> (loaded)' with name 'GFPNDAReasonCollectionViewCell''
terminating with uncaught exception of type NSException
shhan-sys commented 2 years ago

안녕하세요, @hm138 님

image
hm138 commented 2 years ago

안녕하세요. @shhan-sys 님 아래 처럼 Cocoapods Dependency 가 적용된 '네이티브 심플 광고' 간단한 샘플 프로젝트 제공 하신지 문의드립니다.

pod 'NAMSDK'
pod 'NAMSDK/MediationNDA'
shhan-sys commented 2 years ago

@hm138 님, 안녕하세요. 메일 주소 알려주시면 간단한 샘플 프로젝트 보내드리도록 하겠습니다.

hm138 commented 2 years ago

안녕하세요. @shhan-sys 님

말씀 주신 메일 주소는 아래와 같습니다. Email: hyungmok.park@sk.com

지원해 주셔서 감사드립니다.

hm138 commented 2 years ago

안녕하세요. @shhan-sys 님

전달해 주신 샘플 프로젝트에서 '네이티브 심플 광고' 출력 확인하였습니다. 다만 UnitID 별 아래와 같이 동작하고 있습니다. A. ios_main_special: 정상 동작 B. IOS_NATIVE_TEST or AOS_NATIVE_TEST: Crash C. IOS_NATIVE_TEST2323, ios_main_special23: There are currently no valid ads error

B 케이스 Crash 현상은 예외처리 필요할 것 같습니다.

UnitID 에 대한 광고 설정은 SKP 담당 매니저님 통해서 확인해보겠습니다.

shhan-sys commented 2 years ago

@hm138 님, 케이스 B의 경우는 0.0.4로 수정해서 배포했습니다. 감사합니다~

hm138 commented 2 years ago

@shhan-sys 님 v0.0.4 에서 광고 출력 확인하였습니다. 빠른 처리 감사드립니다.