Objective Sharpie is a tool developed and maintained by Xamarin Inc, used to create C# bindings from an Objective-C library, making it consumable in Xamarin.iOS projects.
Questions tagged [objective-sharpie]
79 questions
2
votes
1 answer
Xamarin iOS Binding - Protocol - Cannot Create Instance of Abstract Class
I've generated some binding code using Sharpie for the Zebra Scanner SDK.
Zebra Scanner SDK
The generated code builds fine once I've processed the [Verify] attributes.
The starting point for the SDK is to call a static method on the SDK factory…

Stephen Hewison
- 324
- 2
- 9
2
votes
2 answers
Static property not instantiated in class from binding
When I access static property SharedController, the value is null, but the API Definition generated by Objective Sharpie only provides a getter.
BBDeviceController is instantiated, but the SharedController property on it is null. Because it only has…

rgahan
- 667
- 8
- 17
2
votes
1 answer
Objective-sharpie ApiDefinition contains overloaded methods?
After some head scratching I finally got objective-sharpie to bind a .framework file successfully, however the ApiDefinition.cs file that it generates contains some irregularities.
// @optional -(void)flyerView:(WFKFlyerView * _Nonnull)flyerView…

Omar Himada
- 2,540
- 1
- 14
- 31
2
votes
1 answer
Sharpie pod bind: unable to parse target sdk
I am creating an Appletvos project in c# using Xamarin and I need to use the VLCKit library, I tried using cocoapod and sharpie to create this project but I Have an error on the
sharpie pod bind
it correctly create a build directory with the file…

Hadrien Berthier
- 305
- 1
- 3
- 17
2
votes
0 answers
Convert a static library ".a" into Binding Library
I tried to use sharpies to convert a library .a into Binding Library but I have some error. The command that I have executed is:
sharpie bind -v -output=[...] --namespace=[...] --sdk=iphoneos11.0 lib.a
and the errors returned are:
Error: unable to…

Marco
- 21
- 1
2
votes
0 answers
Xamarin binding project structs in external assembly
I am using Xamarin binding project and objective sharpie, to bind an objective-c library from this SDK:
http://redpark.com/lightning-ethernet-plus-power-adapter-cable-l4-netp/
I have already had success in binding and using the similar Seriel…

adv
- 21
- 4
2
votes
1 answer
Xamarin Objective Sharpie Binding Delegate to Interface
I’m trying to bind an objective-c library with a delegate
@protocol PKTokenFieldDelegate
-(void)tokenShouldChangeHeight:(CGFloat)height;
@optional
-(void)tokenFieldDidSelectToken:(PKToken*)token;
…

Erik Rodriguez
- 145
- 1
- 10
2
votes
1 answer
Xamarin Binding: unable to parse Xcode project: Pods/Pods.xcodeproj/project.pbxproj
I'm binding a Objective-C SDK use sharpie pod bind, got error message:
System.AggregateException: unable to parse Xcode project: Pods/Pods.xcodeproj/project.pbxproj
The message detail:
---> System.ObjectDisposedException: Cannot access a disposed…

Lei Kan
- 487
- 7
- 20
1
vote
0 answers
Problem with binding a Xamarin Forms iOS library with objective Sharpie
I am currently trying to bind the following iOS SDK to use it in a Xamarin project:
http://github.com/emartech/ios-emarsys-sdk
Android worked, but with iOS I have some issues.
What I have done so far:
I copied the source files into a Static Library…

user2910357
- 21
- 1
1
vote
1 answer
How to set scope properly in Sharpie?
I want to bind some objective-c code using sharpie. I have some .h and .m files inside /Users//Documents/binding/InfColorPicker/InfColorPicker. My sharpie command looks like this
sharpie bind -output=InfColorPicker -namespace=InfColorPicker…

Randi
- 639
- 2
- 6
- 23
1
vote
1 answer
Could not register the selector of the member because the selector is already registered on a different member
Currently, I am trying to bind the Qualtrics library for the Xamarin.iOS project and I did it but when I run the project then application crashed and it is saying that
Error : "Could not register the selector
…

Jaymin
- 2,879
- 3
- 19
- 35
1
vote
1 answer
Xamarin Form iOS WebRTC
I'm pretty new to forum and I really appreciate the passion that all of you use to solve the questions.
So I'm here because I'm struggling to integrate the GoogleWebRTC in my Xamarin Form project in the iOS part (I'm been able to make a native objC…

BombezMan
- 23
- 1
- 7
1
vote
0 answers
Unsupported type for Fields (enum)
I'm attempting to create a binding for an iOS Framework for Xamarin (generated by objective sharpie) and it's stumbling on the type of a field:
Structs.cs:
public enum FooType : byte
{
A = 0,
B = 1
}
ApiDefinition.cs:
[Static]
partial…

Nick
- 3,958
- 4
- 32
- 47
1
vote
0 answers
Error while creating a Mapwize Xamarin binding from Cocoapods
I am trying to create a Xamarin wrapper for MapwizeForMapbox (1.4.2).
The first step works fine :
>sharpie pod init iphoneos11.4 MapwizeForMapbox
First issue: I have to modify ./Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Info.plist and define…

Aktar
- 13
- 3
1
vote
1 answer
Sharpie import not found
Context
I have to implement a Speech to Text feature in a Xamarin.iOS app using Google Cloud Speech api.
The audio needs to be streamed as the user speaks, so that we can show what the user says as soon as we can.
Firstly I tried to use the…

Romain Rastel
- 5,144
- 2
- 25
- 23