Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 在 Xcode 12.4 上构建报错 _OBJC_CLASS_$_SKAdImpression", referenced from objc-class-ref in libGDTMobSDK.a(GDTAppStoreAdNetWorkModel.o #7

Closed
BytesZero opened this issue Aug 29, 2021 · 1 comment

Comments

@BytesZero
Copy link
Member

BytesZero commented Aug 29, 2021

  • 错误信息
Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_SKAdImpression", referenced from:
          objc-class-ref in libGDTMobSDK.a(GDTAppStoreAdNetWorkModel.o)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • 环境情况
Xcode:12.4
GDTMobSDK:4.13.02
flutter_qq_ads::1.1.1
@BytesZero
Copy link
Member Author

BytesZero commented Aug 29, 2021

解决方法

方法一(推荐):

升级到 Xcode 12.5

方法二:

指定 GDTMobSDK 版本

  • 打开 Podfile 文件,添加如下:
// ios/Podfile
target 'Runner' do
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  pod 'GDTMobSDK', '4.12.91' #添加这行,这里设置你想指定的版本
end
  • 执行更新
cd ios
rm -rf Podfile.lock 
rm -rf Pods 
pod install --repo-update

image

@BytesZero BytesZero pinned this issue Aug 29, 2021
@BytesZero BytesZero unpinned this issue Aug 29, 2021
@BytesZero BytesZero pinned this issue Aug 29, 2021
@BytesZero BytesZero unpinned this issue Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant