问题
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:
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:
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):
Source: this guide
来源:https://stackoverflow.com/questions/22584941/errors-while-adding-admob