There was an error "linker command failed with exit code 1 (use -v to see invocation)" when connecting admob to my program, I wrote all the code as it is written on google developer. How to solve this problem?

  • I had a similar problem. Before iOS 9, this was not the case, but under the nine, it seems that they have not yet rewritten the code. PS I tried all the options myself, but did not find a solution. - mix
  • Can I see all the information from the error? - Max Mikheyenko
  • ld: warning: directory not found for option '-F / Users / boris / Desktop / FizMath / GoogleMobileAdsSdkiOS-7.6-2.0' ld: '/Users/boris/Desktop/FizMath/GoogleMobileAdsSdkiOS-7.6.0/GoogleMobileAds.framework/GoogleMo (GADBannerView.o) 'does not contain bitcode. If you’re trying to find out what it’s up to you, you’ll need to be able to rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE). for architecture armv7 clang: error: linker command with exit code 1 (use -v to see invocation) - Nikola Cvetkovic
  • It only appears when I launch it on a real device, but there is no such error on the simulator - Nikola Cvetkovic
  • so everything is written: you have bitcode enabled, and admob is not included. you must either 1) download the new version of admob with bitcode, or 2) disable bitcode in your application. - Max Mikheyenko

1 answer 1

AdMob does not yet support bitcode. So you have to either refuse AdMob or disable bitcode in your application. Here is all the information.