【问题标题】:class method '+configureWithApplicationID:' not found (return type defaults to 'id')找不到类方法“+configureWithApplicationID:”(返回类型默认为“id”)
【发布时间】:2018-08-05 20:16:31
【问题描述】:

我遇到了这个问题,已经一整天了,我无法解决它。 我在 iPhone 上使用 theos。

https://imageshack.com/a/img921/3885/bo58U3.png

https://imageshack.com/a/img922/3769/Ooasap.png

Tweak.xm:26:15: error: class method '+configureWithApplicationID:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]                                
[GADMobileAds configureWithApplicationID:@"ca-app-pub-4010160331162709~1818234899"]; 

【问题讨论】:

    标签: ios theos


    【解决方案1】:

    我不熟悉 Theos,但您是否尝试在文件顶部添加 @import GoogleMobileAds;?另外,您是否检查过您使用的是哪个版本的 SDK? +[GADMobileAds configureWithApplicationID:] 方法是在版本 7.9.0 中添加的,如 here 所述。

    【讨论】:

    • 无法在tweak.xm 中导入框架,第一个无法完成。我正在使用最新版本。我尝试添加 + ,即使我尝试过 + (id)
    猜你喜欢
    • 1970-01-01
    • 2011-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-14
    • 1970-01-01
    • 2013-04-17
    相关资源
    最近更新 更多