MQTT IOS framework in Fire - how can I use it?

Can someone help me to use this library in my project


I used import project but without success …
Can someone import it and help me ?
Best regards
Mateusz

You should be able to import it with an Import Project, see https://docs.elementscompiler.com/Tools/FXGen/ImportProjects/ for more details.

Can you show me on this link how to do it - I tried with Import Project and adding .h files but I don’t know how…

If it’s a framework, you can just drag the compiled framework file into the project and the use should do the rest.

If that does not work, let me know what fails, and I can have a look later today; unfortunately I’m sort of off sick, today, so I have a bit limited capacity. :(.

For .framework all works fine. But for .h files i can’t do it… I tried…

Is any example how to do it for h.files step by step to be sure that I do it correctly ?

But the above is a framework? What separate .h files are you trying to import, what do you try to import them, and how does it fail?

I want to use MQTT client I found that this one is OK. For .framework (for example IosRealm) i drag and drop it and added reference and works - here I don’t know how to do it As i understood for .h files I should generate .fx files ?
I added one .h files from folder and got info that doesn’t exists during compilation but it is not true…
Should I add every .h files ??
I need example to understand it…

The best option is to set the ImportSearchPaths setting to the folder(s) with your header file(s), and then add the root file as #import “x.h” into the Import.h file provided by the template, just as you would in (Objective-)C.

Also, add any .a, .o or .dylib files that need tone linked to your project, with a build action of ImportLinkLibrary.

yours,
marc

Marc I did 5 steps :
1.download xcode project
2.build project in xcode (one product was .framework)
3.copy .framework to my internal folder
4.drag and drop into my project (Fire generate import project for my framework and add reference)
5.compile my project with success - now I have to check if it works fine (connecting to broker)
yours,
Mateusz

Cool. That should do the trick, yes.

Can i use library wrote in Swift or only Objective-C ??
yours
Mateusz

Only Objective-C or C at this time. Sup[port for Swift’s object format is in the works, but its slow going, because its totally undocumented, unstable and a mess, sorry :(.

No problem we have to wait.