gpt4 book ai didi

ios - FBAudienceNetwork v4.1.0 构建错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:26:08 32 4
gpt4 key购买 nike

我试图包含 FBAudienceNetwork.framework 因为我想在我的应用程序中显示横幅/插页式广告单元。但是我的应用程序给了我几个错误。

错误

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_CIContext", referenced from:
     objc-class-ref in FBAudienceNetwork(FBAdUtility.o)
"_OBJC_CLASS_$_CIFilter", referenced from:
     objc-class-ref in FBAudienceNetwork(FBAdBlurredImageView.o)
     objc-class-ref in FBAudienceNetwork(FBAdUtility.o)
"_kCIInputImageKey", referenced from:
     ___65-[FBAdBlurredImageView sliceImage:withAspectRatioInfo:withBlock:]
     _block_invoke42 in FBAudienceNetwork(FBAdBlurredImageView.o)
     +[FBAdUtility(FBAdViewUtility) blurImage:withRadius:]
     in FBAudienceNetwork(FBAdUtility.o)
"_OBJC_CLASS_$_EAGLContext", referenced from:
     objc-class-ref in FBAudienceNetwork(FBAdUtility.o)
"_kCIContextWorkingColorSpace", referenced from:
     +[FBAdUtility(FBAdViewUtility) blurImage:withRadius:]
     in FBAudienceNetwork(FBAdUtility.o)
"_kCIInputScaleKey", referenced from:
     ___65-[FBAdBlurredImageView sliceImage:withAspectRatioInfo:withBlock:]
     _block_invoke42 in FBAudienceNetwork(FBAdBlurredImageView.o)
"_OBJC_CLASS_$_CIImage", referenced from:
     objc-class-ref in FBAudienceNetwork(FBAdBlurredImageView.o)
     objc-class-ref in FBAudienceNetwork(FBAdUtility.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

框架

- MediaPlayer
- CoreMedia
- SystemConfiguration
- CoreTelephony
- AVFoundation
- StoreKit
- CoreMotion
- AdSupport
- Foundation
- CoreGraphics
- UIKit
- libc++.dylib
- libz.dylib

设置

Architecture              : $(ARCHS_STANDARD_INCLUDING_64_BIT)
Deployment Target : 7.0
FBAudienceNetwork version : v4.1.0


此外,我是否需要包含 Bolts.framework 才能仅使用 Audience Network?
包含它之后,错误就消失了。
所以我想知道是否需要 Bolts.framework。

(当我使用FBAudienceNetwork v3.23时,没有出现这些错误)

最佳答案

我找到了解决方案。

我刚刚更改了我的项目设置。

Apple LLVM 6.0 - Language - Modules

: Enable Modules (C and Objective-C) => YES


希望对开发者使用facebook的audience network有所帮助。

关于ios - FBAudienceNetwork v4.1.0 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30184332/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com