gpt4 book ai didi

ios - 框架的 Xcode 8 链接器错误,架构 i386 的 undefined symbol

转载 作者:行者123 更新时间:2023-11-29 00:37:21 25 4
gpt4 key购买 nike

任何人都可以帮助我解决这个“Apple Mac O 链接器错误”,构建失败,我真的没有任何线索......我使用的是 Mac Ox 10.11,SDK 设置为最新的 10.0 操作系统,部署目标为 8.0。框架和用户 header 搜索路径设置为框架位置..

错误如下:

ld: warning: directory not found for option '-F/Users/syedmuhammadyasir/Documents/UrduRhymes/Urdu\ Rhymes/Frameworks'
ld: warning: ignoring file Urdu Rhymes/Frameworks/GoogleMobileAds.framework/GoogleMobileAds, file was built for unsupported file format ( 0x6C 0x69 0x6E 0x6B 0x20 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 ) which is not the architecture being linked (i386): Urdu Rhymes/Frameworks/GoogleMobileAds.framework/GoogleMobileAds
Undefined symbols for architecture i386:
"_CGSizeFromGADAdSize", referenced from:
-[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in URBaseViewController.o
"_OBJC_CLASS_$_GADInterstitial", referenced from:
objc-class-ref in URBaseViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in URBaseViewController.o
"_kGADAdSizeBanner", referenced from:
-[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o
-[URBaseViewController getGADAdSize] in URBaseViewController.o
-[URHomeViewController adViewWillPresentBannerView] in URHomeViewController.o
-[URBaseViewController getGADAdSize] in URBaseViewController.o
"_kGADAdSizeFullBanner", referenced from:
-[URBaseViewController getGADAdSize] in URBaseViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

尝试从build设置的“其他链接器标志”部分中删除“-ObjC”链接器标志。

或者

我建议您删除该框架并添加两个 pod

pod 'Firebase/Core'
pod 'Firebase/AdMob'

并关注此Doc

关于ios - 框架的 Xcode 8 链接器错误,架构 i386 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40303779/

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