title: CodenameOne iOS debug build error
body: <p>My iOS debug build fails. Here are some errors from the error.log file:</p>
  
  <pre><code>...
  java.lang.NullPointerException
  at com.codename1.admob.AdMobManager.loadAd(AdMobManager.java:49)
  at com.dd.midp.slicklottoca.SlickLottoCA.init(SlickLottoCA.java:177)
  at com.dd.midp.slicklottoca.SlickLottoCAStub.run(SlickLottoCAStub.java:28)
  at com.codename1.ui.Display.processSerialCalls(Display.java:1152)
  at com.codename1.ui.Display.mainEDTLoop(Display.java:969)
  at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
  at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
  ...
  Error during processing: undefined method `path' for nil:NilClass
  Backtrace:
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:89:in `construct_buildable_name'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:59:in `set_reference_target'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:16:in `block in initialize'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/buildable_reference.rb:14:in `initialize'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `new'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:96:in `block in initialize'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/xml_element_wrapper.rb:53:in `create_xml_element_with_fallback'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme/build_action.rb:77:in `initialize'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `new'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/scheme.rb:186:in `add_build_target'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:756:in `block in recreate_user_schemes'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `each'
  /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project.rb:754:in `recreate_user_schemes'
  /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7966420431196611238xxx/hooks/fix_xcode_schemes.rb:5:in `&lt;main&gt;'
  An error occurred recreating schemes, but the build still might work...
  ...
  ** ARCHIVE FAILED **
  
  The following build commands failed:
  CompileC build/Build/Intermediates/ArchiveIntermediates/SlickLottoCA/IntermediateBuildFilesPath/SlickLottoCA.build/Release-iphoneos/SlickLottoCA.build/Objects-normal/armv7/com_codename1_admob_AdMobNativeImpl.o SlickLottoCA-src/com_codename1_admob_AdMobNativeImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  (1 failure)
  Failed xcodebuild step
  </code></pre>
  
  <p>The errors look to be related to the AdmobFullScreen cn1lib that I am using but it used to work and I didn't change anything related to this. </p>