Binding Objective C Reference - objective-c

I'm trying to use a binding library (an Objective-C library) in my Xamarin Project. I followed all the instructions in the documentation.
When I try to use it I can't find it in the edit References/Projects. What do I need to do so that it shows up?

If the projects are in the same solution, and both projects are of the same type (Xamarin.iOS vs classic) Then it will show up under projects and you can reference it. Try making sure both of the projects have Xamarin.iOS in the references.

Related

Xamarin.iOS Pdf search

We develop with Xamarin.iOS and are trying to search/highlight in a PDF.
There is an iOS class for searching, CGPDFScanner, but unfortunately no bindings are offered by Xamarin.
Is there a solution or we should forget about it?
We believe that there is a way to make bindings for existing iOS classes.
Or we could probably use an existing project, like PDFKitten, and make Xamarin bindings.
Any hints?
Xamarin offers way for creating binding library. If you have some working and tested solution available in Objective C, create Binding library in tamarin and use that. You can check detailed document of it from here
I have created binding library for one of my project where i had to integrate third party sdk which was only in objective C. I followed step given here and it worked.

Binding objective-c library to Xamarin Project using Objective Sharpie

I am developing an iOS application using Xamarin Studio. The application is going to work with Infinite Peripherals Linea Pro 5 (a barcode scanner that you attache to an iPod/iPhone).
The Linea SDK provided by Infinite Peripherals is an objective-c library with an associated header file. I've followed Xamarins iOS binding tutorial, skipping the first parts and starting at chapter "3.2. Create a Xamarin.iOS Binding Project" (since I already have the fat binary file).
I have installed Objective Sharpie v0.4.11 and the Xcode Command Line Tools.
When I try to create the binding using Objective Sharpie I get the following error message:
After some research I find that this probably is a bug caused by Objective Sharpie, but is there any way around this bug? I really need to get this library in to my MonoTouch project.
P.S.
I have also checked out the tutorial by David Sandor, but it is really outdated and I do not possess enough knowledge to update it.
If Objective-Sharpie doesn't work for your project, you can:
Do a manual binding, or build upon David Sandor's one. That's not that hard.
Try to find the offending part of the header file, by removing part of it and process it with Obj-Sharpie (the header file is not that long, once you strip the comments away)

Objective C binding on MonoTouch

Hi i'm currently developing a monotouch app, where i need to use the IDBlue framework for connecting from the ipad to their blueetooth reader, but is shipped as a framework without a .a, how i should proceed to make the binding so i can use it on monotouch?
The easiest way is to create a Bindings project in your solution.
This document describes the whole process.
Also there is a tool (Parser.exe) to help generate bindings. Surprisingly this tool is not mentioned in the "Binding Objective-C Types" document. It is not a complete solution but will give you a good start.

creating a reusable library in XCode 3.2

How do I create a reusable library/module in XCode 3.2? What I want to do is create a bunch of classes that provide certain functionality compile them into some kind of library, add such a library to an existing xcode project and use the classes in it.
I come from .NET world so what I want to do is basically to create an equivalent of 'assembly' and then reference it somehow in my XCode project.
I am developing for iOS btw.
If you add a target called static library you will get the equivalent of an assembly, just put all the sources in the target and decide what headers should be published and what should be hidden to the user of your library.
What you are looking to do is create a 'framework'.
This page has some useful information.
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFrameworks/Frameworks.html

How do I start a new Obj-C library project with Xcode?

I am new to Xcode (and Objective C in general) and I want to create a new Objective-C Library (Framework?) which will be used by some of our iPhone applications in the future.
Which type of project should I choose when Xcode shows the new project dialog? I tried selecting "Blank Project" but then I faced some issues in defining the target, dependencies, etc.
I want my project to be easily re-usable in the future both in code form and as a .dylib.
I would appreciate some help with this. Links to online docs are welcome.
Since version 3 of the SDK you are able to create library projects in Xcode. However, those projects do not create .dylib libraries, but static .a libraries.
You cannot create Frameworks for iOS, as Apple's own App Store rules state that apps sold through the App Store cannot load code dynamically, which is what Frameworks are for. Libraries are designed to be statically linked.