Ok - I've just started a new iOS application complete with PCL so that I can add an Android version in due course. I need to use SQLite-Net and so I installed the PCL (found here https://www.nuget.org/packages/sqlite-net-pcl) to both projects, i.e. PCL and iOS as instructed (Xamarin Uni).
I've created a few models and a repository in the PCL project and am trying to instantiate from iOS but I get the 'This is the bait' error which apparently indicates that I've not added the package to my platform specific project - but I have.
I've uninstalled and reinstalled, cleaned, rebuilt and even restarted Xamarin Studio (I'm running on a Mac) - so what's going on?
The exact error is:
This is the 'bait'. You probably need to add on the SQLitePCLRaw.bundle_* packages to your platform project.'
Looking at the solution I can see that SQLitePCLRaw.bundle_green is in fact referenced (along with sqlite-net-pcl, SQLitePCLRaw.core and SQLitePCLRaw.provider.sqlite3.ios_unified).
So all the bits seem to be in place but obviously something is not wiring up properly - any ideas?
Thanks in advance