FlutterAds / flutter_pangle_ads

🔥🔥🔥 Flutter 广告插件 -- 穿山甲、字节跳动、巨量引擎(支持开屏、插屏、激励视频、全屏视频、Banner、信息流)【持续更新】
https://flutterads.top
MIT License
269 stars 40 forks source link

iOS无法正常运行了 #50

Closed sunjianan9900 closed 1 year ago

sunjianan9900 commented 1 year ago

运行到模拟器是16.2,我看提示的是原生代码部分的错误 请问目前有临时方案吗?

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/hc/4d81prx534gd6_7n510k78fh0000gn/T/flutter_tools.A72jcQ/flutter_ios_build_temp_dirSCReK5/temporary_xcresult_bundle

    In file included from /Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Load/FeedAdLoad.m:10:
    In file included from /Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/FlutterPangleAdsPlugin.h:4:
    /Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:11:42: error: no type or protocol named 'BUNativeExpresInterstitialAdDelegate'
    @interface InterstitialPage : BaseAdPage<BUNativeExpresInterstitialAdDelegate>
                                             ^
    /Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:12:31: error: unknown type name 'BUNativeExpressInterstitialAd'
    @property (nonatomic, strong) BUNativeExpressInterstitialAd *iad;
                                  ^
    /Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:12:1: error: property with 'retain (or strong)' attribute must be of object type
    @property (nonatomic, strong) BUNativeExpressInterstitialAd *iad;
    ^
    3 errors generated.
    note: Building targets in dependency order
    warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')

    Result bundle written to path:
        /var/folders/hc/4d81prx534gd6_7n510k78fh0000gn/T/flutter_tools.A72jcQ/flutter_ios_build_temp_dirSCReK5/temporary_xcresult_bundle

Generics Issue (Xcode): No type or protocol named 'BUNativeExpresInterstitialAdDelegate'
/Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:10:41

Semantic Issue (Xcode): Unknown type name 'BUNativeExpressInterstitialAd'
/Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:11:30

Semantic Issue (Xcode): Property with 'retain (or strong)' attribute must be of object type
/Volumes/Jianan/SDK/BETA/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_pangle_ads-2.6.1/ios/Classes/Page/InterstitialPage.h:11:0

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

image

bigmebala commented 1 year ago

问题 +1 -----------------------现象 IOS 不正常了,辛苦修复一下吧 @yy1300326388 No type or protocol named 'BUNativeExpresInterstitialAdDelegate' Unknown type name 'BUNativeExpressInterstitialAd' Property with 'retain (or strong)' attribute must be of object type

bigmebala commented 1 year ago

请教一下,有什么临时解决办法吗?或者哪个版本可以用 谢谢

sunjianan9900 commented 1 year ago

请教一下,有什么临时解决办法吗?或者哪个版本可以用 谢谢

临时方案可以强制限制穿山甲的SDK在5.0以下,就可以正常运行了。

Podfile pod 'Ads-CN', '< 5.0' pod 'Ads-CN/BUAdSDK', '< 5.0'

方案2,更换插件:https://github.com/gstory0404/flutter_unionad

bigmebala commented 1 year ago

感谢感谢!🙏 新年快乐,帮大忙了

BytesZero commented 1 year ago

准备更新中

BytesZero commented 1 year ago

重复问题,请关注 https://github.com/FlutterAds/flutter_pangle_ads/issues/47

BytesZero commented 1 year ago

@sunjianan9900 @propertyabc @hhgz9527 已升级,https://pub.dev/packages/flutter_pangle_ads