Third-party frameworks embedded into .xcframework - swift

I would like to use RxSwift inside my .xcframwork, is there any 'good practice' to add third-party frameworks to your .xcframework to be able to ship it 'all in one' for the customer?
I was trying to generate RxSwift.framework from their github repo, and add it to the framework itself, but didn't work at the end, while using with Example app have this error:
Any link or idea would be welcome :)

Finally I decided to add RxSwift as a package to my Framework and then expose RxSwift agnostic interface of the Framework for the customer, so they will be not aware that Im using under the hood Rx. I had to mark all RxSwift imports as #_implementationOnly import RxSwift.
Another benefit of this is that customer of my Framework is not forced to have a knowledge about RxSwift since Im using vanilla Swift (closures).

Related

Creating Framework for iOS using external dependencies (pods)

My goal is to create a framework that I will ship to our clients to use our code to achieve some functionality done by our library.
I had searched a lot to make a library using other dependencies as Alamofire or Google MLKit pods, but could not find a full tutorial on how to work on it.
Is it possible to do a library (framework) that depends on other dependencies? And is there a good tutorial to follow?

bot framework composer creating machine learning entity

I'm building a chatbot, but I don't know how to add a complex machine learning entity, what I'm trying to do is to request fullname and extract first name, second name, middle name, etc. I know how to do it by using LUIS interface bot with bot composer I feel a little confused.
Something like this, but with bot framework composer:
Language Understanding (LU) is a core component of Composer, allowing developers and conversation designers to train language understanding directly in the context of editing a dialog.
As dialogs are edited in Composer developers can continuously add to their bots' natural language capabilities through a simple markdown-like format that makes it easy to define new intents and provide sample utterances.
Here is the sample for Built-in Language Generation and expression library.
https://learn.microsoft.com/en-us/azure/bot-service/file-format/bot-builder-lu-file-format?view=azure-bot-service-4.0#machine-learned-entity

Creating an assembly from Xamarin (or Module), then importing it into Swift?

That would be the million dollar question! Is it possible to create an assembly in Xamarin (C#) for IOS, then import that into a Swift project?
I am getting really into Swift and I know there are some major things that I am still missing such as the ease of calling a web service, etc... So what I want to do is create a web service call in a Xamarin Assembly (or module) and use the Imports into Swift to import and reference my assembly.
Sorry, no. It's designed to consume iOS libraries and you can create bindings to use them.......but not the other way around.
Either use Swift or Xamarin. If Xamarin you could create libraries in Swift and consume in Xamarin (but why would you if it wasn't a 3rd party library).....but you can't create libraries in Xamarin to consume in Swift.
If connecting to a web service is your only hurdle with Swift then that's probably not a good single reason to switch to Xamarin.

Include an iOS Framework into another one

The problem is that when I create a framework for iOS, that uses a different framework, I have to also include the second framework in my application.
What I want to try is to compile the second framework into the new one that uses it. so it's all one package. Is this even possible?
If so, how?
It's possible but strongly recommended against. If two frameworks both include another framework in this manner, you wouldn't be able to use both in the same project as the symbols would conflict. https://stackoverflow.com/a/14197817/72176
If the second framework is licensed in a way that it can't be given away separately with your framework, I'd be very surprised if you were permitted to distribute it as part of your framework either.

compiling compiling/bundling an external framework to my static library/framework for iOS SDK

im trying to build a framework that uses methods from a 3rd party framework.
I would like to hide the methods 3rd party framework from being accessible by the user of my framework.
I tried compiling using static library method and framework method.. but the 3rd party framework doesn't seems to be included in my framework..
any one know how can i bundle the 3rd party framework in my library file?
any help is much much appreciated.
It's not possible to include a static library or another framework inside an home-made framework. The user will need to add both your framework and a static library (3rd party methods) in its project to be able to use it.
There is nothing wrong in having a dependency in your static library / custom framework. Simply inform the user about it and, if possible, bundle the depended library in your distribution.
ObjectiveC does not allow the usage of namespaces, hence there is no way to "hide" the methods of a static library effectively.