• leona lewis
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I'm creating a small barcode scanner app using the latest mobile sdk (based on cordova 2.3.0).  Once I've dropped the .mm, .cpp and .h files into the Plugins directory, the build fails on the following line of the scanner code:

 

#import <Cordova/CDVPlugin.h>

 

saying that CDVPlugin can't be found.  The only way that I've been able to get the Xcode compiler to be able to see this file is to copy it from the SalesforceHybridSDK.framework/Headers folder and drop it into the Plugins folder.  The knock-on effects of this are that I have to copy most of the other header files across as well.

 

This works, but it feels wrong - I'm sure there's something obvious that I've missed.