gpt4 book ai didi

ios - Apple Mach-O for libAppLovinSdk.a in cocos2d for iPhone

转载 作者:行者123 更新时间:2023-11-28 19:00:21 24 4
gpt4 key购买 nike

我正尝试在 Xcode 的 cocos2d 项目中显示 AppLovin sdk,但我目前无法调试此 Apple Mach-O 错误,如下所述。

Undefined symbols for architecture i386:
"_CMTimeGetSeconds", referenced from:
-[ALVideoViewController timeLeft] in libAppLovinSdk.a(ALVideoViewController.o)
-[ALVideoViewController percentViewed] in libAppLovinSdk.a(ALVideoViewController.o)
"_CMTimeMakeWithSeconds", referenced from:
-[ALVideoViewController createCountdownTimeObserver] in libAppLovinSdk.a(ALVideoViewController.o)
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
___50-[ALInterstitialViewController prepareForVideoAd:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_MPMoviePlayerPlaybackDidFinishReasonUserInfoKey", referenced from:
___53-[ALInterstitialViewController moviePlayerDidFinish:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from:
___50-[ALInterstitialViewController prepareForVideoAd:]_block_invoke in libAppLovinSdk.a(ALInterstitialViewController.o)
"_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
objc-class-ref in libAppLovinSdk.a(ALInterstitialViewController.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我去构建阶段 -> 添加其他 -> 从显示的查找器中选择 libAppLovinSdk.a 文件。

我还将 Build Active Architectures only 的值设置为 NO,并从架构中删除了 arm64。没有 i386 架构。

最佳答案

您缺少 CoreMediaMediaPlayer 框架。

(我通过谷歌搜索 CMTimeGetSecondsMPMoviePlayerPlaybackDidFinishNotification 并查看了 Apple 文档的哪个部分得到了点击,但是 CMMP 前缀应该足以告诉你)。

关于ios - Apple Mach-O for libAppLovinSdk.a in cocos2d for iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26584536/

24 4 0
文章推荐: ios - 获取所需的日期对象
文章推荐: webkit - Webkit 中的行高问题(部分无法点击的链接)
文章推荐: html - 在 Firefox 中设置