我已将cocoapods安装到我的Xcode项目中,并在情节提要中添加了UIView。当我尝试运行该应用程序时,当我尝试打开该应用程序时会崩溃。关于我在做什么错的任何建议?
这是我的代码:
import UIKit
import GoogleMobileAds
class ViewController: UIViewController {
@IBOutlet weak var bannerView: GADBannerView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
bannerView.adUnitID = "ca-app-pub-3940256099942544/2934735716"
bannerView.rootViewController = self
bannerView.load(GADRequest())
}
}
这是我的错误消息:
libsystem_kernel.dylib`__pthread_kill:
0x7fff523bc7f0 <+0>: movl $0x2000148, %eax ; imm = 0x2000148
0x7fff523bc7f5 <+5>: movq %rcx, %r10
0x7fff523bc7f8 <+8>: syscall
-> 0x7fff523bc7fa <+10>: jae 0x7fff523bc804 ; <+20>
0x7fff523bc7fc <+12>: movq %rax, %rdi
0x7fff523bc7ff <+15>: jmp 0x7fff523b6a89 ; cerror_nocancel
0x7fff523bc804 <+20>: retq
0x7fff523bc805 <+21>: nop
0x7fff523bc806 <+22>: nop
0x7fff523bc807 <+23>: nop