Cordoba - Enable .framework (swift 3) dependency as a plugin

I have my own code developed in swift 3. Basically, this code generates a library with the extension .framework. I want to use this library as a plugin for apache cordova application, but I cannot get it to work. I browsed the Internet and there are several posts, including this ( Cordova Custom Plugin: Add the Framework to the “Embedded Binary Files”), but this option does not work with the latest version of the cordova (6+).

If I put the .swift files separately in my cordova project, I can use it, so I think there is a problem to get the correct message between the cordova and the .framework library.

Does anyone know how to do this?

thank

+4
source share
2 answers

The latest version of Cordoba is 8.0.0

Try it like this:

<framework src="relative/path/to/my.framework" custom="true" embed="true" />
+3
source

I agree with @jcesarmobile's answer. In addition, if you are looking for complicated steps to create a cordova plugin with the iOS user infrastructure, you should look at the link.

It provides a step-by-step explanation of creating the cordova plugin with the Dynamsoft iOS SDK SDK. Hope this helps you get started.

+1
source

Source: https://habr.com/ru/post/1692722/


All Articles