We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Getting issues when producing a dll file after binding an Objective-C static library to Xamarin.iOS

Steps :

  1) I already have an iOS app that I need to convert into a .dll file so that I may build it in Xamarian.iOS.

 2) Create an .a FAT file by converting my app to an Objective-C static library.

 3) I created Xamarian.iOS application after producing .a file. All of our classes and functions are used in the binding-based iOS application.

 4) Using objective sharpie, I created the files ApiDefination.cs and Struct.cs.


Actual Result:

  After implementing binding and adding new ApiDefination and Stuct files, the project gives me dozens of problems when I run it. Even after resolving all of these problems, my trampoline.g.cs file is still giving me errors.


This photo serves as a reference.

Expected Result:

  Successfully produce .dll file that I can use with Xamarin.iOS without experiencing a single problem .


Reference Document : https://learn.microsoft.com/en-in/xamarin/ios/platform/binding-objective-c/walkthrough?tabs=macos


Video for Reference: https://youtu.be/sNq3CjrdK8g


Software version:

   Visual Studio for Mac: 8.10.25(build 2)

   Xcode: Version 14.0.1

   Visual Studio code : 1.72.2


Environment:

   MacOS Monterey Version 12.6


3 Replies

RS Ruba Shanmugam Syncfusion Team October 28, 2022 12:32 PM UTC

Hi Hinal,


Query: Getting issues when producing a dll file after binding an Objective-C static library to Xamarin.iOS


This is a general query in Xamarin iOS, can you check the below link for Binding an iOS Objective-C Library


https://learn.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/walkthrough?tabs=macos


Regards,

Ruba Shanmugam



NI Nick January 25, 2023 10:22 PM UTC

Thanks for this interesting solution!



VV Vijayakumar Viswanathan Syncfusion Team January 26, 2023 06:29 AM UTC

Hi Nick,

Thank you for your update, we will be closing this forum. However, please let us know if you have any further questions or concerns.


Loader.
Live Chat Icon For mobile
Up arrow icon