Errors while adding Admob

2019-08-29 10:30发布

I am trying to add Admob into my app. All I do is drop the Admob files into my app and I get these errors:

enter image description here

I had no errors before I add Admob...

Here is the full error:

error: unable to open executable '/Users/Library/Developer/Xcode/DerivedData/AppName-/Build/Products/Debug-iphonesimulator/AppName.app/AppName'

1条回答
Deceive 欺骗
2楼-- · 2019-08-29 10:59

Link all Libraries from this list (step 3):

  • AdSupport
  • AudioToolbox
  • AVFoundation
  • CoreGraphics
  • CoreTelephony
  • MessageUI
  • StoreKit
  • SystemConfiguration

and add -ObjC to other linker flags for you target (step 4):
enter image description here

Source: this guide

查看更多
登录 后发表回答