-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapper Type missing #2
Comments
Hmm, Im not familiar with that error message, but I havnt actually used or tested this since the move/rename from MonoDevelop/MonoTouch to Xamarin.iOS, could be due to some differences there. However, 1 thing: The libzbar.a only needs to be supplied to compile ZBar.dll. It gets embedded within the dll within that process. So then your actual app projects just reference ZBar.dll like any pure .NET dll. Sorry I cant be of more help, I havnt swapped my dev environment over to all the new Xamarin.iOS tools yet so cant test this either. |
I was able to fix this issue. Not really sure what I did to fix it, but here is what I changed, and it now works:
It seems that you include the 'linkwith' file in the repo, but Xamarin Studio didn't put the two together when I added the 'libzbar.a' file. |
Thanks for the detailed steps! Until I get a chance to test this myself, I'll just link this issue from the readme file for the benefits of others. It does sound like some change in behaviour due to Xamarin Studio. MonoDevelop did use to handle it fine when dropping in the zbar lib into the project. Out of curiosity, did you try building via the makefile at all? Did that not work either? |
I did not try building with the make file. |
I'm trying to integrate this into an existing Xamarin.iOS application that I have. I literally copied and pasted the code from the sample into my project(a few changes because it's in an UITableViewSource instead of a UIViewController), added reference for Zbar.dll, and added the 'libzbar.a' to the project. When running in debug on an iPod Touch running iOS 5.1.1, I get the following error message...
Wrapper type 'ZBar.ZBarReaderViewController' is missing its native ObjectiveC class 'ZBarReaderViewController'.
It happens on this line of code...
var barcodeReader = new ZBarReaderViewController();
I forked the current 'master' branch and built it. Not really sure where to start on this.
The text was updated successfully, but these errors were encountered: