bytedance / bytedance-unionad Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
信息流自渲染被移除后,对于模板类型的广告,要如何适配iOS的暗黑模式?我们大部分应用都要适配暗黑,现在在信息流广告中应该如何处理?
pod不支持depend
[BUAdSDKManager setAppID:@"xxxx"];
[BUAdSDKManager setIsPaidApp:NO];
1.激励视频播放中,点击激励视频:打印
viewWillAppear: <SKStoreProductViewController: 0x157d8e560>
viewWillAppear: <UIInputWindowController: 0x15b051c00>
viewWillAppear: <SKRemoteProductViewController: 0x158094600>
2.关闭Appstore的页面:打印
[Application] -[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
3.视频暂停 卡死 无法继续播放 无法退出 只能杀死应用重启, GDT家的并没有此问题
初始化 卡主线程。
2.4.6.3 版本 pod 卡主不动。
git 下来的文件夹有743MB,也太大了吧
真正用到的也就76MB的大小而已,希望能够整理下,基本上很难clone下来
版本 2.5.1.5
delegate设置正常,
BUNativeExpressBannerViewDelegate 除
func nativeExpressBannerAdView(_ bannerAdView: BUNativeExpressBannerView, dislikeWithReason filterwords: [BUDislikeWords]?)
方法外有正常返回
点击关闭按钮,选任意内容都没调用dislike方法
4G环境下 设置supportAutoPlay 依然没有效果,主动调用play也没有播放
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吗?
模拟器iPhoneX、iPhoneXr、iPhoneXs、iPhoneXs Max,12.4崩溃,iPhone11 13.2.2则不崩溃其余未测试
真机iPhoneXs 12.4崩溃,iPhone6 11.4未崩溃,其余未测试
麻烦尽快排查修复,之前用的2.4.6.7,未出现崩溃现象
iOS13.1.2播放激励视频之后,出现如下:
-canOpenURL: failed for URL: "bytedance://private/setresult/SCENE_FETCHQUEUE&W3siSlNTREsiOjEsImZ1bmMiOiJhZEluZm8iLCJwYXJhbXMiOnt9LCJfX21zZ190eXBlIjoiY2FsbCIsIl9fY2FsbGJhY2tfaWQiOiIxMDAwIiwiX190cyI6MTU3MDc4MjAzMTY0Nn1d" - error: "This app is not allowed to query for scheme bytedance"
[!] 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
BUDFeedVideoAdTableViewCell.(BUNativeAdRelatedView*)nativeAdRelatedView.(BUVideoAdView *)videoAdView 加载视频的时候,公司wifi环境不是很好也不是很差,会经常出现卡住主线程的情况。
触发场景:下拉刷新请求数据后,如果视频广告直接展示在屏幕上,会比较大概率出现阻塞主线程的情况,此时refreshView不能回弹,页面不能操作;之后不再阻塞主线程,往往视频广告播放器上提示 视频加载失败请重试
Version 11.3.1 (11C504)
iPhone 11 编译报错
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)
pathspec 'Pods/Bytedance-UnionAD/Bytedance-UnionAd/Frameworks/BUAdSDK.framework/Resources' did not match any files
同标题
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'
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?
app退后台几分钟就被杀了,再进前台就看到启动画面了。最近加了这个这个sdk,猜测有没有可能影响。有其他人碰到过吗。
和下面这两个个问题是一样的
https://forums.developer.apple.com/thread/85018
Instabug/Instabug-iOS#305
你们这个库是不是很大啊,pod安装一直安装不了,过了很久之后直接提示hung up,同样是做广告平台的sdk,腾讯的广点通很快就安装好了。
SDK版本:2.4.6.3
Xcode11.0——iOS13.0
BUNativeExpressBannerView,BUNativeExpressInterstitialAd均能够在各自的delegate中进行success回调。但是无法加载广告
其中BUNativeExpressInterstitialAd类的isAdValid属性在success回调后仍然是NO
希望能够尽快处理
*** 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
*** -[__NSArrayM objectAtIndexedSubscript:]: index 9223372036854775807 beyond bounds [0 .. 3]
官网 iOS 版本已经更新,希望 Cocoapods 上版本也能尽快更新,谢谢!
你们官网文档和lipo -info都显示支持x86_64模拟器架构。但实际模拟器运行就崩溃,真机正常。版本:2201、2102。
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)
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
SDWebImage缓存路径问题
使用环境:Swift
使用版本:2.5.1.2
问题说明:
当正常加载并展示广告以后,点击任何区域应该是要触发nativeExpresInterstitialAdDidClick代理才对。但是目前测试看会直接调用nativeExpresInterstitialAdDidClose这个代理。
其余展示这种代理是正常调用的,希望尽快查一下,这个应该跟Swift或者OC环境无关,应该是哪一块逻辑漏掉了吧?
上传到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版本无网络下初始化开屏广告就崩溃
比如我第一个视频缓存完毕,然后播放。接着我开发者模式 调整到100%lose 或者 verybadnetwork
当第一个视频播放完毕之后,我关闭广告界面。立刻播放第二个视频,结果。正常立刻走完广告数据获取成功,视频缓存成功,开始播放视频
广点通就没有这个问题
我每次播放之前我都会清空上一个,然后创建新的对象然后再去loadAdData
if (self.rewardedVideoAd) {
self.rewardedVideoAd.delegate = nil;
self.rewardedVideoAd = nil;
}
使用了BUNativeExpressAdView 加载信息流广告,点击广告上的关闭按钮,弹框弹出不正常,只弹出了透明的背景,按钮一个也没有显示出来。是还需要什么配置吗,demo上也是如此,但有的时候能弹出来,有的时候一直弹不出来。
你好,我看到现在新的SDK和Demo都已经支持个性化模板开屏广告,但是在后台创建广告类型,开屏广告好像没“模板”选择这一项。
代码如下
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加载的页面会显示正常,是否有解决方案?
$ 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 :/'
我看iOS文档写运行配置支持 iOS9.x 以上,xcode11 编译,但是 podspec 文件里的最低版本是 iOS8.0
那么最新 SDK 到底从哪个版本开始支持,是否必须要用xcode11 编译
接入 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 协议,求支持一下,否则接入无法继续了。
使用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
没有后续日志提示了
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];
这是官方例子。
后台设置的代码位600150,为什么前端只能screenWidth/60090才正好显示。如果也显示150,上下会有很大空白。
前端想显示150高度,后台有哪个高度的代码位?
架构问题,2.5.1.5没问题
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)
显示这个几个文件引用不支持此架构,我的代码在老一个版本是可以的,新的有这个报错,请问是什么问题呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.