Using Swift Library in Xamarin

Using Xamarin Libraries in Swift or Java android projects

I recommend you to use java/objective c library. Xamarin is built based on the platform code, so what you use in forms you can always find in each platforms(ios/android/uwp).

As for your question, I am afraid this can not be done.here is a related question for you to check Use a Xamarin library in native iOS/Android apps

Xamarin Forms binding Swift and Android libs

For Android

Binding Java libraries: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/.

Binding Kotlin libraries: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-kotlin-library/


For iOS

Binding Objective-C libraries : https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/

Binding Swift libraries : https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-swift/

Using an Objective C framework, which is inside a Swift framework, in a Xamarin iOS project

In such a case, you can find the real reason by going to

Settings -> Privacy -> Analytics -> Analytics Data -> And find the log
file with your bundle ID and the crashed occur date/time.

The error show to me was related to @rpath/ but actually it solved after signing the bundle with a valid provisioning profile.

For those who are interesting, you can visit here to find out my experience of implementing this whole scenario mentioned in the title.



Related Topics



Leave a reply



Submit