0

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'
Abdullah Shafique
  • 6,878
  • 8
  • 35
  • 70
  • Have you Set the `-ObjC` compiler flag? And linked all needed libraries? – lootsch Mar 22 '14 at 23:35
  • what's the detail linker error info? may be you can try to use cocoapods (cocoapods.org) to manager your third-party libraries. – c0ming Mar 22 '14 at 23:36
  • that's not the interesting part. it should be something like in this question and find it in Xcode's `output`: http://stackoverflow.com/questions/12628249/keep-getting-error-messages-when-compiling-newest-version-of-admob-on-ios6-sdk – lootsch Mar 22 '14 at 23:54
  • @lootsch But I am not getting any other errors... – Abdullah Shafique Mar 23 '14 at 00:12
  • thats unlikely. There should be an error thrown by the linker. Before the linker `failed with exit code` – lootsch Mar 23 '14 at 00:23

1 Answers1

0

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

lootsch
  • 1,867
  • 13
  • 21