gstory0404 / flutter_tencentad

腾讯优量汇(广点通)广告 Flutter版本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

接入flutter_tencentad: ^1.0.0 iOS编译报错

liangdas opened this issue · comments

因为我不太懂iOS望帮忙解答一下谢谢
Xcode's output:

/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:18:34: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
private var interstitialAd : GDTUnifiedInterstitialAd?
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:50:67: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialClicked(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:61:72: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialSuccess(toLoad unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:69:72: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialWillExposure(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:80:73: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialRenderSuccess(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:92:69: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialFail(toLoad unifiedInterstitial: GDTUnifiedInterstitialAd, error: Error) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:105:76: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialDidDownloadVideo(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:113:76: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialDidPresentScreen(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:124:76: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialDidDismissScreen(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:135:77: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialWillPresentScreen(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:142:80: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialWillLeaveApplication(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:150:72: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialFail(toPresent unifiedInterstitial: GDTUnifiedInterstitialAd, error: Error) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:163:70: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialRenderFail(_ unifiedInterstitial: GDTUnifiedInterstitialAd, error: Error) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:176:87: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdDidPresentFullScreenModal(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:183:87: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdDidDismissFullScreenModal(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:190:88: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdWillPresentFullScreenModal(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:197:88: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdWillDismissFullScreenModal(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:204:83: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdViewDidPresentVideoVC(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:211:83: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdViewDidDismissVideoVC(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:218:84: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdViewWillPresentVideoVC(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:225:84: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdViewWillDismissVideoVC(_ unifiedInterstitial: GDTUnifiedInterstitialAd) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:235:80: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAdDidRewardEffective(_ unifiedInterstitial: GDTUnifiedInterstitialAd, info: [AnyHashable : Any]) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:242:62: error: cannot find type 'GDTUnifiedInterstitialAd' in scope
public func unifiedInterstitialAd(_ unifiedInterstitial: GDTUnifiedInterstitialAd, playerStatusChanged status: GDTMediaPlayerStatus) {
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:242:116: error: cannot find type 'GDTMediaPlayerStatus' in scope
public func unifiedInterstitialAd(_ unifiedInterstitial: GDTUnifiedInterstitialAd, playerStatusChanged status: GDTMediaPlayerStatus) {
^~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:10:40: error: cannot find type 'GDTUnifiedInterstitialAdDelegate' in scope
public class InterstitialAd : NSObject,GDTUnifiedInterstitialAdDelegate{
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/interstitialad/InterstitialAd.swift:25:31: error: cannot find 'GDTUnifiedInterstitialAd' in scope
self.interstitialAd = GDTUnifiedInterstitialAd.init(placementId: self.mCodeId!)
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/rewardedvideoad/RewardedVideoAd.swift:117:53: warning: expression implicitly coerced from 'Any?' to 'Any'
"transId":info["GDT_TRANS_ID"],
^~~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/rewardedvideoad/RewardedVideoAd.swift:117:57: note: provide a default value to avoid this warning
"transId":info["GDT_TRANS_ID"],
~~~~^~~~~~~~~~~~~~~~
?? <#default value#>
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/rewardedvideoad/RewardedVideoAd.swift:117:57: note: force-unwrap the value to avoid this warning
"transId":info["GDT_TRANS_ID"],
~~~~^~~~~~~~~~~~~~~~
!
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/rewardedvideoad/RewardedVideoAd.swift:117:57: note: explicitly cast to 'Any' with 'as Any' to silence this warning
"transId":info["GDT_TRANS_ID"],
~~~~^~~~~~~~~~~~~~~~
as Any
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:15:27: error: cannot find type 'GDTSplashAd' in scope
private var splashAd: GDTSplashAd!
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:45:44: error: cannot find type 'GDTSplashAd' in scope
public func splashAdClosed(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:53:45: error: cannot find type 'GDTSplashAd' in scope
public func splashAdClicked(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:61:47: error: cannot find type 'GDTSplashAd' in scope
public func splashAdExposured(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:70:45: error: cannot find type 'GDTSplashAd' in scope
public func splashAdDidLoad(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:83:50: error: cannot find type 'GDTSplashAd' in scope
public func splashAdFail(toPresent splashAd: GDTSplashAd!, withError error: Error!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:94:48: error: cannot find type 'GDTSplashAd' in scope
public func splashAdWillClosed(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:103:58: error: cannot find type 'GDTSplashAd' in scope
public func splashAdSuccessPresentScreen(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:112:68: error: cannot find type 'GDTSplashAd' in scope
public func splashAdApplicationWillEnterBackground(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:119:63: error: cannot find type 'GDTSplashAd' in scope
public func splashAdDidPresentFullScreenModal(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:126:63: error: cannot find type 'GDTSplashAd' in scope
public func splashAdDidDismissFullScreenModal(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:133:64: error: cannot find type 'GDTSplashAd' in scope
public func splashAdWillPresentFullScreenModal(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:141:64: error: cannot find type 'GDTSplashAd' in scope
public func splashAdWillDismissFullScreenModal(_ splashAd: GDTSplashAd!) {
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:10:58: error: cannot find type 'GDTSplashAdDelegate' in scope
public class SplashAdView : NSObject,FlutterPlatformView,GDTSplashAdDelegate{
^~~~~~~~~~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:36:20: error: cannot find 'GDTSplashAd' in scope
splashAd = GDTSplashAd.init(placementId: self.codeId)
^~~~~~~~~~~
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_tencentad-1.0.0/ios/Classes/splashad/SplashAdView.swift:15:27: error: cannot find type 'GDTSplashAd' in scope
private var splashAd: GDTSplashAd!
^~~~~~~~~~~
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
/Users/love/work/flutter/flutter/.pub-cache/hosted/pub.flutter-io.cn/agora_rtc_engine-4.0.6/ios/Classes/Base/Extensions.swift:121:22: warning: 'delay' is deprecated
"delay": delay,
^
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the precompiled application for the device.

编译缓存问题已解决 flutter clean就好了