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
0
votes
0 answers
sharpie bind command gives error 'Foundation/Foundation.h' file not found
I'm trying to create a binding library for the GoogleMLKit/TextRecognition. For that first I created a Xcode project and installed the pods and tried to run sharpie bind command to generate ApiDefinitions.cs and Structs.cs.
This is the command I…

WarKirin
- 41
- 7
0
votes
2 answers
Binding library for google.MLKit.BarcodeScanning from cocoapod creates 13 pods but only 4 of them have .framework files
I'm creating a binding library for MLKitBarcodeScanning from it's cocoapod, to be used in Xamarin.ios project. After executing the sharpie bind command it creates the pod folder with 13 pods. But only the MLKitBarcodeScanning, MLKitVision,…

WarKirin
- 41
- 7
0
votes
0 answers
Binding Mixpanel for Xamarin.iOS, issues with objective-c category type
I am trying to update my Xamarin Mixpanel iOS bindings that I have here. While updating I figured I'd try re-enable a thing I had disabled before I continue to roll out updates all the way to the latest 5.0 release.
Current status is I am attempting…

Brad Moore
- 316
- 5
- 23
0
votes
1 answer
How do I get Objective Sharpie to recognize framework dependency header paths?
I have created a framework with Xcode that will be used as a Swift native binding for a Xamarin iOS app. This framework has another framework dependency (GoogleMobileAds).
My xcodebuild steps for both arm64 and x86_64 are successful, but the…

Chris Simeone
- 755
- 1
- 10
- 26
0
votes
0 answers
Static property of swift framework becomes null in xamarin binding
I developed a swift framework as xcframework & created xamarin binding for it. In the framework the call is made as a singleton class
MyFramework.shared.start()
The shared is a singleton instance
static let shared = MyFramework()
After making dll…

Aravind G S
- 392
- 3
- 17
0
votes
0 answers
Unable to bind Unblu swift framework with Sharpie
I am creating an app with Xamarim.Forms. I need to use a native library named Unblu. I have the native Objective C framework, but I cannot create the bindings with sharpie because of those errors :
Parsing 1 header files...
While building module…

Maxime Esprit
- 705
- 1
- 8
- 29
0
votes
1 answer
Xamarin iOS singleton property from binding always return null on real device
I have created binding for our SDK, it contains singleton property which we use to access all methods and properties of SDK. When I created it as a binding for Xamarin it works fine at simulators, but singleton properties always return null when I…

Dragisa Dragisic
- 731
- 2
- 9
- 19
0
votes
1 answer
Failing to create objective sharpie bindings for FBSDKShareKit cocoapod
I am trying to recreate the bindings for the cocoapod FBSDKShareKit.
I executed:
sharpie pod init ios FBSDKShareKit
sharpie pod bind
The error i am getting:
While building module 'FBSDKShareKit' imported from /private/var/folders/something.h:1:
In…

CoffeeCodeConverterImpl
- 464
- 3
- 6
0
votes
1 answer
Xamarin binding C library params not working (variadic functions)
I need to use a C library and I got it to work on the emulator easily, but on an arm64 device only with some strange trickery. The issue is that C functions with … (variadic functions) do not pass values correctly from C# to the library.
This is the…

Toine db
- 709
- 7
- 25
0
votes
0 answers
Class cannot be cast to NSObject type of interface into the C# binding library Xamarin IOS
I have created binding library through objective C framework, there is a class that are extending NsObject type of other interface(KsEvent), in Xamarin IOS, getting error during cast can't convert type of KSMEvent to KsEvent.
ApiDefinitions:
//…

Prashant Gautam
- 41
- 6
0
votes
0 answers
Xamarin IOS binding
I am creating binding with Pod , After running Sharpie command i frequently get error regarding , Header not found in the File. I have checked the file after opening but header was already there. Let me know if anyone face the same issue.
Error…
0
votes
1 answer
Xamarins sharpie pod stops at searching for requested cocoapods
I am trying to make an IOS Xamarin binding for the Braintree payment gateway by following these instructions:
https://learn.microsoft.com/en-us/xamarin/cross-platform/macios/binding/objective-sharpie/examples/cocoapod
But when i run
sharpie pod init…

PeachyPrieto
- 11
- 2
0
votes
1 answer
Sharpie binding error : Unsupported clang availability platform: 'macCatalyst'
I'm trying to bind a framework into my Xamarin iOS project using this command:
sharpie bind -output FrameworkName -namespace FrameworkName -sdk iphoneos13.2 -scope Headers FrameworkName.framework/Headers/HeaderFile.h -c IHeaders -arch arm64
I got…

hanaa
- 385
- 6
- 30
0
votes
1 answer
Making CocoaPods dependency headers public
Answer to my problem:
Because I didn't find an answer to the original problem (namely, exposing the headers of dependencies loaded via CocoaPods) I don't feel like I should post an answer to my own question. However I did find a solution to my…

stevendesu
- 15,753
- 22
- 105
- 182
0
votes
0 answers
CFNetwork reference is missing while creating IOS Binding project using Objective Sharpie
I would like to use TriPos IOS mobile payment gateway,i have downloaded the IOS sdk from official site "https://developer.vantiv.com/servlet/JiveServlet/download/1915-27-5158/iOS+Release+v1.4.0+triPOS+Mobile+SDK.zip".Since that is a objective C…

Saravanan N
- 31
- 5