gpt4 book ai didi

ios - GoogleMobileAds (SWIFT) - 命令因信号 : Segmentation fault: 11 而失败

转载 作者:搜寻专家 更新时间:2023-10-31 22:20:46 25 4
gpt4 key购买 nike

我已通过 CocoaPods 添加了 GoogleMobileAds,如此处所述:admob iOS quick start

我的代码是这样的:

import Firebase
import GoogleMobileAds
....
var interstitial: GADInterstitial!
  • 我已导入 Firebase 来解决此错误:使用未声明的类型“GADInterstitial”。现在,这个错误消失了。但是……

每次尝试编译时都会出现此错误:

 Command failed due to signal : Segmentation fault: 11

清理和重新启动没有帮助。我在此文件中没有任何其他导入,所以 this answer没有帮助我。我正在使用由 pod 获取的最新版本的 adMob,因此将代码更改为 suggested here似乎也不是正确的方向。这怎么能解决?

这是日志:

MergeSwiftModule normal x86_64 /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/Playbuzz.swiftmodule cd /Users/luda/Documents/Development/playbuzz.ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -emit-module /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/QuizResult~partial.swiftmodule +++++++++++++++++++++++++++++++++++ I/Users/luda/Documents/Development/playbuzz.ios/Pods/Headers/Public/GoogleUtilities -Xcc -I/Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/DerivedSources/x86_64 -Xcc -I/Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -working-directory/Users/luda/Documents/Development/playbuzz.ios -emit-module-doc-path /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/Playbuzz.swiftdoc -module-name Playbuzz -emit-objc-header-path /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/Playbuzz-Swift.h -o /Users/luda/Library/Developer/Xcode/DerivedData/Playbuzz-cexhbhfyfhomayguuohivuzvrlzx/Build/Intermediates/Playbuzz.build/Debug-iphonesimulator/Playbuzz.build/Objects-normal/x86_64/Playbuzz.swiftmodule

  1. While loading members for 'ItemViewController' at
  2. While deserializing decl #182 (PATTERN_BINDING_DECL)
  3. While deserializing decl #21 (VAR_DECL)

最佳答案

是的,这个问题让我困扰了好几天......我终于通过启用整个模块优化找到了解决方案。这是一个解释如何操作的链接:

http://useyourloaf.com/blog/swift-whole-module-optimization/

祝你好运!

关于ios - GoogleMobileAds (SWIFT) - 命令因信号 : Segmentation fault: 11 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38482130/

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