GithubHelp home page GithubHelp logo

bytedance-unionad's Introduction

Bytedance-UnionAD

Pod for Bytedance-UnionAD only support x86_64, armv7, arm64, i386.

How To Get Started

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like Bytedance-UnionAD in your projects. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate Bytedance-UnionAD into your Xcode project using CocoaPods,then specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'TargetName' do

#Used >3.4.0.0. Pangle-Ads-The-Chinese-Mainland-Traffic
#pod 'Ads-CN'

#Used >3.4.0.0. Pangle-Ads-Outside-The-Chinese-Mainland-Traffic
#pod 'Ads-Global'

#Used <3.4.0.0
#pod 'Bytedance-UnionAD'

end

Then, run the following command:

$ pod install

Pod access is only supported after version 1982

Author

Siwant

License

Bytedance-UnionAD is available under the MIT license. See the LICENSE file for more info.

FAQ & feedback channel

Chinese developers could refer to the documentation on the Pangle whenever encountered any problems during the integration process:

Global developers can refer to the help center: https://www.pangleglobal.com/help

If the content of the document cannot solve your problem, you can try to give feedback through the official channel. Feedback channel: "Pangle Platform-Help-Feedback"

Reward test

  • Pangle will invite some developers to grayscale the new version of the SDK, please pay attention to the notice in the station. You can send an email to [email protected] to apply for the new version of the Pangle SDK. Your participation is highly appreciated!

Change Log

bytedance-unionad's People

Contributors

bytedance-tech avatar chenzhuozy avatar cuiyanan02 avatar eason-yangyang avatar guchan-fout avatar hcongbyte avatar stephenzhang-git avatar wangyuanyuanyy avatar weigzhong avatar williewangwei avatar yh980237697 avatar zry-bd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bytedance-unionad's Issues

开屏回调不执行

  • (void)splashAdDidCloseOtherController:(BUSplashAdView *)splashAd
    interactionType:(BUInteractionType)interactionType;
    在应用内部打开Appstore的页面关闭后此方法没有执行

BUNativeExpressBannerView 广告 dislikeWithReason方法没回调

版本 2.5.1.5
delegate设置正常,
BUNativeExpressBannerViewDelegate 除
func nativeExpressBannerAdView(_ bannerAdView: BUNativeExpressBannerView, dislikeWithReason filterwords: [BUDislikeWords]?)方法外有正常返回
点击关闭按钮,选任意内容都没调用dislike方法

pod 2.7.5.2的架构问题

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_BURewardedVideoAd", referenced from:
objc-class-ref in libshuiyun_ios.a(BUAdRewardedVideo.o)
"OBJC_CLASS$_BURewardedVideoModel", referenced from:
objc-class-ref in libshuiyun_ios.a(BUAdRewardedVideo.o)
"OBJC_CLASS$_BUAdSDKManager", referenced from:
objc-class-ref in libshuiyun_ios.a(SYSdkUtils.o)
"OBJC_CLASS$_BUNativeExpressBannerView", referenced from:
objc-class-ref in libshuiyun_ios.a(BUAdBanner.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols for architecture i386:
"OBJC_CLASS$_BURewardedVideoAd", referenced from:
objc-class-ref in libshuiyun_ios.a(BUAdRewardedVideo.o)

显示这个几个文件引用不支持此架构,我的代码在老一个版本是可以的,新的有这个报错,请问是什么问题呢

2.5.1.5激励视频点击后卡死冻屏

1.激励视频播放中,点击激励视频:打印
viewWillAppear: <SKStoreProductViewController: 0x157d8e560>
viewWillAppear: <UIInputWindowController: 0x15b051c00>
viewWillAppear: <SKRemoteProductViewController: 0x158094600>
2.关闭Appstore的页面:打印
[Application] -[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
3.视频暂停 卡死 无法继续播放 无法退出 只能杀死应用重启, GDT家的并没有此问题

20001 error on Unity plugin

Hello.
I'm trying to integrate Union Plugin for unity3d. I've made a test build with a demo project that contained in the Plugin zip file, but the application does not display any ads from UnionAD. The error code is 20001, and It occurs from RewardVideoAdListener.OnError() from Example.cs.
I didn't modify anything, but just build the demo project.
As I know, Error 20001 occurs because there is no ad to load. Is there anything that I can do?

有没有确定的系统支持版本

我看iOS文档写运行配置支持 iOS9.x 以上,xcode11 编译,但是 podspec 文件里的最低版本是 iOS8.0

那么最新 SDK 到底从哪个版本开始支持,是否必须要用xcode11 编译

激励视频缓存问题

比如我第一个视频缓存完毕,然后播放。接着我开发者模式 调整到100%lose 或者 verybadnetwork
当第一个视频播放完毕之后,我关闭广告界面。立刻播放第二个视频,结果。正常立刻走完广告数据获取成功,视频缓存成功,开始播放视频
广点通就没有这个问题
我每次播放之前我都会清空上一个,然后创建新的对象然后再去loadAdData
if (self.rewardedVideoAd) {
self.rewardedVideoAd.delegate = nil;
self.rewardedVideoAd = nil;
}

SDK2.4.6.3版本iOS13-Xcode11-BUNativeExpress广告无法显示

SDK版本:2.4.6.3
Xcode11.0——iOS13.0
BUNativeExpressBannerView,BUNativeExpressInterstitialAd均能够在各自的delegate中进行success回调。但是无法加载广告
其中BUNativeExpressInterstitialAd类的isAdValid属性在success回调后仍然是NO
希望能够尽快处理

pod 一直安装不了

你们这个库是不是很大啊,pod安装一直安装不了,过了很久之后直接提示hung up,同样是做广告平台的sdk,腾讯的广点通很快就安装好了。

是不是不支持模拟器啊, 编译直接报错了

看官网显示支持
image

Version 11.3.1 (11C504)
iPhone 11 编译报错
image

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_BUSplashAdView", referenced from:
objc-class-ref in 530.x86_64.thinlto.o
"OBJC_CLASS$_BUSize", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUImage", referenced from:
objc-class-ref in AdDataProtocol.o
"OBJC_CLASS$_BUNativeAdsManager", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUAdSDKManager", referenced from:
objc-class-ref in AdManager.o
"OBJC_CLASS$_BUAdSlot", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUVideoAdView", referenced from:
objc-class-ref in OpenScreenBaiduADView.o
"OBJC_CLASS$BUNativeAd", referenced from:
l__CATEGORY_BUNativeAd
$_HelloTalk_Binary in AdDataProtocol.o
objc-class-ref in OpenScreenBaiduADView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

麻烦cocoapod处理下

git 下来的文件夹有743MB,也太大了吧
真正用到的也就76MB的大小而已,希望能够整理下,基本上很难clone下来

banner View 代码位跟前端高度对应不上。

CGFloat screenWidth = CGRectGetWidth([UIScreen mainScreen].bounds);
CGFloat bannerHeigh = screenWidth/60090;
BUSize imgSize = [BUSize sizeBy:BUProposalSize_Banner600_150];
self.bannerView = [[BUNativeExpressBannerView alloc] initWithSlotID:self.viewModel.slotID rootViewController:self imgSize:imgSize adSize:CGSizeMake(screenWidth, bannerHeigh) IsSupportDeepLink:YES];
self.bannerView.frame = CGRectMake(0, 10, screenWidth, bannerHeigh);
self.bannerView.delegate = self;
[self.view addSubview:self.bannerView];
这是官方例子。
后台设置的代码位600
150,为什么前端只能screenWidth/600
90才正好显示。如果也显示150,上下会有很大空白。
前端想显示150高度,后台有哪个高度的代码位?

BUNativeExpressAdView

使用了BUNativeExpressAdView 加载信息流广告,点击广告上的关闭按钮,弹框弹出不正常,只弹出了透明的背景,按钮一个也没有显示出来。是还需要什么配置吗,demo上也是如此,但有的时候能弹出来,有的时候一直弹不出来。

iOS 13.0 crash:SKStoreProductViewController may not be subclassed

*** Terminating app due to uncaught exception 'SKUnsupportedClassException', reason: 'SKStoreProductViewController may not be subclassed.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23b98bde __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff503b5b20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23b98a1c +[NSException raise:format:] + 188
	3   StoreKit                            0x00007fff2be99b53 +[SKStoreProductViewController allocWithZone:] + 274
	4   Hugo                                0x000000010661e930 -[BUAppStorePreloadItem initWithAppID:adID:logExtra:] + 249
	5   Hugo                                0x000000010661c371 -[BUAppStoreManager preloadAppStoreControllerWithAppID:adID:logExtra:isDuplicate:completion:] + 1022
	6   Hugo                                0x000000010661bdee -[BUAppStoreManager preloadAppStoreControllerWithAppID:adID:logExtra:completion:] + 136
	7   Hugo                                0x000000010661b296 +[BUAppStoreManager preloadAppStoreControllerWithAppID:adID:logExtra:completion:] + 138
	8   Hugo                                0x000000010665a792 __55-[BUNativeAd registerShowContainer:withClickableViews:]_block_invoke + 1743
	9   Hugo                                0x0000000106610a22 -[BUAdViewWitnessChecker checkoutViewTracker] + 811
	10  Hugo                                0x00000001066106c8 __49-[BUAdViewWitnessChecker checkAdViewsIfWitnessed]_block_invoke + 34
	11  libdispatch.dylib                   0x0000000109e92df0 _dispatch_call_block_and_release + 12
	12  libdispatch.dylib                   0x0000000109e93d64 _dispatch_client_callout + 8
	13  libdispatch.dylib                   0x0000000109ea1e1c _dispatch_main_queue_callback_4CF + 1500
	14  CoreFoundation                      0x00007fff23afb699 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	15  CoreFoundation                      0x00007fff23af62f9 __CFRunLoopRun + 2329
	16  CoreFoundation                      0x00007fff23af56b6 CFRunLoopRunSpecific + 438
	17  GraphicsServices                    0x00007fff3815cbb0 GSEventRunModal + 65
	18  UIKitCore                           0x00007fff47162a67 UIApplicationMain + 1621
	19  Hugo                                0x0000000105573e60 main + 112
	20  libdyld.dylib                       0x00007fff5123bcf5 start + 1
	21  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

模拟器运行崩溃

你们官网文档和lipo -info都显示支持x86_64模拟器架构。但实际模拟器运行就崩溃,真机正常。版本:2201、2102。

2.4.6.7版本无法通过AppStore Connect检测

上传到AppStore邮件反馈错误:
ITMS-90562: Invalid Bundle - The app cannot be processed because options not allowed to be embedded in bitcode are detected in the submission. It is likely that you are not building the app with the toolchain provided in Xcode. Rebuild your entire app with the latest GM Xcode and submit the app again.
是没支持Bitcode还是其他问题吗?

2.4.6.3版本上传正常。。但是2.4.6.3版本无网络下初始化开屏广告就崩溃

BUNativeExpresInterstitialAdDelegate中的DidClick代理不会调出来

使用环境:Swift
使用版本:2.5.1.2
问题说明:
当正常加载并展示广告以后,点击任何区域应该是要触发nativeExpresInterstitialAdDidClick代理才对。但是目前测试看会直接调用nativeExpresInterstitialAdDidClose这个代理。
其余展示这种代理是正常调用的,希望尽快查一下,这个应该跟Swift或者OC环境无关,应该是哪一块逻辑漏掉了吧?

pod 2.7.5.2 失败

Installing Bytedance-UnionAD (2.7.5.2)

[!] Error installing Bytedance-UnionAD
[!] /usr/local/bin/git clone https://github.com/bytedance/Bytedance-UnionAD.git /var/folders/gb/1k95p0js7nd29td1066h608r0000gn/T/d20200102-4217-lg3pjq --template= --single-branch --depth 1 --branch 2.7.5.2

Cloning into '/var/folders/gb/1k95p0js7nd29td1066h608r0000gn/T/d20200102-4217-lg3pjq'...
Note: checking out '1d1206705f631fac08309b5cbb3ad989ffd9df8f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

git-lfs filter-process: git-lfs: command not found
fatal: The remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

2.5.1.5 初始化SDK遇到崩溃

模拟器iPhoneX、iPhoneXr、iPhoneXs、iPhoneXs Max,12.4崩溃,iPhone11 13.2.2则不崩溃其余未测试
真机iPhoneXs 12.4崩溃,iPhone6 11.4未崩溃,其余未测试
麻烦尽快排查修复,之前用的2.4.6.7,未出现崩溃现象

真机编译报错

Undefined symbols for architecture arm64:
"OBJC_CLASS$_BUSplashAdView", referenced from:
objc-class-ref in 530.arm64.thinlto.o
"OBJC_CLASS$_BUSize", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUImage", referenced from:
objc-class-ref in AdDataProtocol.o
"OBJC_CLASS$_BUNativeAdsManager", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUAdSDKManager", referenced from:
objc-class-ref in AdManager.o
"OBJC_CLASS$_BUAdSlot", referenced from:
objc-class-ref in PangolinADManager.o
"OBJC_CLASS$_BUVideoAdView", referenced from:
objc-class-ref in OpenScreenBaiduADView.o
"OBJC_CLASS$BUNativeAd", referenced from:
l__CATEGORY_BUNativeAd
$_HelloTalk_Binary in AdDataProtocol.o
objc-class-ref in OpenScreenBaiduADView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

git stage file报错

pathspec 'Pods/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.framework/Resources' did not match any files

2.1.0.2 版本导致 XMLHttpRequest 请求丢失 body

接入 2.1.0.2 sdk,发现接入后导致我们的 h5 小游戏里面的 https 请求全部丢失了 body(通过 charles 抓包后确认 body 丢失),游戏无法正常玩,想问问你们 sdk 内部是否有做请求拦截,或者使用了 NSURLProtocol 之类的逻辑。

初始化逻辑如下:

[BUAdSDKManager setAppID:buInfo.appId];
[BUAdSDKManager setIsPaidApp:NO];
#if DEBUG
    [BUAdSDKManager setLoglevel:BUAdSDKLogLevelDebug];
#endif

BURewardedVideoModel *model = [[BURewardedVideoModel alloc] init];
model.userId = [AccountManager fetchUserId];
model.isShowDownloadBar = YES;
model.rewardName = @"游戏激励视频";
model.rewardAmount = 1;
self.rewardedVideoAd = [[BURewardedVideoAd alloc] initWithSlotID:buInfo.rewardedVideoSlotId rewardedVideoModel:model];
self.rewardedVideoAd.delegate = self;
[self.rewardedVideoAd loadAdData];

self.fullscreenVideoAd = [[BUFullscreenVideoAd alloc] initWithSlotID:buInfo.fullscreenVideoSlotId];
self.fullscreenVideoAd.delegate = self;
[self.fullscreenVideoAd loadAdData];

self.interstitialAd = [[BUNativeExpressInterstitialAd alloc] initWithSlotID:buInfo.interstitialSlotId imgSize:[BUSize sizeBy:BUProposalSize_Interstitial600_900] adSize:CGSizeMake(300, 450)];
self.interstitialAd.delegate = self;
[self.interstitialAd loadAdData];

只要注释掉以上的初始化、预加载代码,小游戏里的请求就能正常返回。

在 charles 上对比了一下,请求失败的使用的是 http 1.1 协议,请求成功的是 http 2.0 协议,求支持一下,否则接入无法继续了。

-canOpenURL: failed for URL: "bytedance://private/setresult/SCENE_FETCHQUEUE&W3siSlNTREsiOjEsImZ1bmMiOiJhZEluZm8iLCJwYXJhbXMiOnt9LCJfX21zZ190eXBlIjoiY2FsbCIsIl9fY2FsbGJhY2tfaWQiOiIxMDAwIiwiX190cyI6MTU3MDc4MjAzMTY0Nn1d" - error: "This app is not allowed to query for scheme bytedance"

iOS13.1.2播放激励视频之后,出现如下:
-canOpenURL: failed for URL: "bytedance://private/setresult/SCENE_FETCHQUEUE&W3siSlNTREsiOjEsImZ1bmMiOiJhZEluZm8iLCJwYXJhbXMiOnt9LCJfX21zZ190eXBlIjoiY2FsbCIsIl9fY2FsbGJhY2tfaWQiOiIxMDAwIiwiX190cyI6MTU3MDc4MjAzMTY0Nn1d" - error: "This app is not allowed to query for scheme bytedance"

Installing Bytedance-UnionAD (2.4.6.7)等待很久之后,还是无法安装成功,换了其他版本也是这样,无非安装,是否能尽快回复一下呢

[!] Error installing Bytedance-UnionAD
[!] /usr/bin/git clone https://github.com/bytedance/Bytedance-UnionAD.git /var/folders/yg/rczw4kln29xd_76zy1p4yk100000gn/T/d20191008-22549-nsfj87 --template= --single-branch --depth 1 --branch 2.4.6.7

Cloning into '/var/folders/yg/rczw4kln29xd_76zy1p4yk100000gn/T/d20191008-22549-nsfj87'...
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

添加到MoPub<5.10.0>中无法请求到广告

使用mopub接入SDK作为三方网络,接入版本是2.5.1.2, 在mopub升级到5.10.0以后无法获取广告,升级新的SDK2.5.1.5也无法请求到。

mopub:5.10.0
react-native: 0.60.5

日志:
【BytedanceUnion V2.5.1.5】-【BUFoundation】Finished Request: BUDynamicTemplateRequest
【BytedanceUnion V2.5.1.5】-【BUFoundation】Request queue size = 1
【BytedanceUnion V2.5.1.5】-【BUFoundation】Finished Request: BUNetworkRequest
【BytedanceUnion V2.5.1.5】-【other】setting decrypte error, (null)
【BytedanceUnion V2.5.1.5】-【BUFoundation】Request queue size = 0

没有后续日志提示了

2.5.1.5 初始化遇到 crash

SDK 版本: 2.5.1.5
手机版本:iPhone 7 Plus,iOS 12.4.1

启动时遇到连续 crash ,麻烦排查,谢谢。

+[BUOpenUDID valueWithError:] + 768
-[BUDevice loadCurrentAppInfo] + 128
+[BUDevice currentDevice] + 56
-[BUUSettingService buildupService] + 40
+[BUUSettingService service] + 56
+[BUAdSDKManager setAppID:] + 288

视频广告部分情况阻塞主线程的问题

BUDFeedVideoAdTableViewCell.(BUNativeAdRelatedView*)nativeAdRelatedView.(BUVideoAdView *)videoAdView 加载视频的时候,公司wifi环境不是很好也不是很差,会经常出现卡住主线程的情况。
触发场景:下拉刷新请求数据后,如果视频广告直接展示在屏幕上,会比较大概率出现阻塞主线程的情况,此时refreshView不能回弹,页面不能操作;之后不再阻塞主线程,往往视频广告播放器上提示 视频加载失败请重试

Error installing Bytedance-UnionAD

$ pod install
Analyzing dependencies
Pre-downloading: Weibo_SDK from https://github.com/sinaweibosdk/weibo_ios_sdk.git, commit 593a51c8f83e3afbc533b030e391d1f273daadfb
Downloading dependencies
Installing AppsFlyerFramework 5.1.0 (was 4.11.0 and source changed to https://cdn.cocoapods.org/ from trunk)
Installing Bugly 2.5.2 (was 2.5.0 and source changed to https://cdn.cocoapods.org/ from trunk)
Installing Bytedance-UnionAD 2.7.5.2 (was 2.4.6.7 and source changed to https://cdn.cocoapods.org/ from trunk)

[!] Error installing Bytedance-UnionAD
[!] /usr/local/bin/git clone https://github.com/bytedance/Bytedance-UnionAD.git /var/folders/lp/09n8dp_j3kq48y_v1jz649880000gn/T/d20200110-40907-1e1g5bf --template= --single-branch --depth 1 --branch 2.7.5.2

Cloning into '/var/folders/lp/09n8dp_j3kq48y_v1jz649880000gn/T/d20200110-40907-1e1g5bf'...
Note: switching to '1d1206705f631fac08309b5cbb3ad989ffd9df8f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

2.4.6.3 问题

初始化 卡主线程。
2.4.6.3 版本 pod 卡主不动。

Unity导出的iOS工程集成出错

image
这是出错的地方
我的工程环境:Xcode:Version 10.1 (10B61)
电脑:Mac Pro。
Unity导出的iOS工程 ,Unity:2018.2.3f1版本 这个项目很简单,就几个按钮,
我的iOS工程配置截图:
image
image
1553252501848
1553252521324
1553252538113
1553252560427

使用2.3.0.3版本时,会造成其他网页加载失败

代码如下

        BUAdSlot *slot1 = [[BUAdSlot alloc] init];
        slot1.ID = kBUAdSDKFeedKey;
        slot1.AdType = BUAdSlotAdTypeFeed;
        BUSize *imgSize = [BUSize sizeBy:BUProposalSize_Feed228_150];
        slot1.imgSize = imgSize;
        slot1.position = BUAdSlotPositionTop;
        // slot1.isSupportDeepLink = YES;
        _bytedanceExpressAdManager = [[BUNativeExpressAdManager alloc] initWithSlot:slot1 adSize:CGSizeMake(kScreenWidth, 0)];
        _bytedanceExpressAdManager.adSize = CGSizeMake(kScreenWidth, 0);
        _bytedanceExpressAdManager.delegate = self;

花了两天时间去排错,发现只要注释掉以上代码,其他使用WKWebView加载的页面会显示正常,是否有解决方案?

swift不支持吗?

self.rewardedVideoAd.show(fromRootViewController: self.navigationController!, ritScene: .home_get_bonus, ritSceneDescribe: nil)
每次都是这里断点卡着,报错如下:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid number value (NaN) in JSON write'
是不支持Swift吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.