Skip to content

4. Error on Compiling

Robin Schaafsma edited this page Nov 17, 2015 · 7 revisions

I you get this error on compiling: iOS (only)

[openfl] clang: error: linker command failed with exit code 1 (use -v to see invocation)<br/>
[openfl] ld: symbol(s) not found for architecture arm64<br/>
[openfl] -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] -[AdmobController initWithID:] in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_kGADSimulatorID", referenced from:<br/>
[openfl] -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_kGADAdSizeSmartBannerLandscape", referenced from:<br/>
[openfl] -[AdmobController initWithBannerID:withGravity:] in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_kGADAdSizeSmartBannerPortrait", referenced from:<br/>
[openfl] objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_OBJC_CLASS_$_GADRequest", referenced from:<br/>
[openfl] objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_OBJC_CLASS_$_GADInterstitial", referenced from:<br/>
[openfl] objc-class-ref in libadmobex.a(7f1c4f12_AdMobEx.o)<br/>
[openfl] "_OBJC_CLASS_$_GADBannerView", referenced from:<br/>

This means that the iOS Framework is in some how corrupt at download or when its zipt. Solution:

  • Go to "YOURDOCUMENTFOLDER"/stencylworks/engine-extensions/admob-master/frameworks
  • Delete GoogleMobileAds.framework
  • Download the googlemobileadssdkios.zip Framework from https://developers.google.com/admob/ios/download
  • Unzip googlemobileadssdkios.zip
  • Open the folder you unzipt, and copy GoogleMobileAds.framework
  • Go to "YOURDOCUMENTFOLDER"/stencylworks/engine-extensions/admob-master/frameworks again
  • and paste the GoogleMobileAds.framework you just copied.
  • Run clean project and try to compile
You can’t perform that action at this time.