0

Since there's no tutorials and no frameworks on XMPP in Swift yet, I guess I'll be the first to ask... how do you connect to your XMPP server in Swift?

I'm really lost here and would appreciate any comments. It would be very helpful.

Update: Using these 2 tutorials to use the Obj-C XMPPFramework in Swift, and after adding paths, I've come across an error message when trying to import the dependencies.

How to call Objective-C code from Swift https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS

'DDXML.h' file not found
Community
  • 1
  • 1
User
  • 23,729
  • 38
  • 124
  • 207
  • Use the Obj-C XMPP framework. – duci9y Oct 05 '14 at 18:04
  • I tried to do that, but I get an error `:0: error: opening import file 'Swift.swift': Not a directory`. Added these details to the question. – User Oct 05 '14 at 18:07
  • You're not doing it right. Post more details. How are you adding the framework? How are you importing things? – duci9y Oct 05 '14 at 18:54
  • To import XMPP, I dragged in the framework folder. I built a bridge and added that in the settings, just like the tutorial I linked. Where did this error come from? What setting does `Swift.swift` rely on? – User Oct 06 '14 at 23:32
  • What is Swift.swift? – duci9y Oct 07 '14 at 22:23
  • Absolutely no idea. It just appeared after changing paths. So I reset them to default and set them again, and that error went away. Now I'm getting an error: `"DDXML.h" file not found`, even though KissXML is bundled with XMPPFramework. – User Oct 07 '14 at 22:56
  • Swift.swift error (I can see the name of your project is Swift). The error above occurs if the swift part of your project has an error, so it dont compile the swift part and the objective-c part get the error mentioned because it cant import what wasn't compiled in the first place. – Adriano Spadoni Jan 19 '15 at 18:28
  • @User did you found the solution to the problem? – rishiAgar Aug 26 '15 at 07:19
  • any solution here? – AITAALI_ABDERRAHMANE May 08 '16 at 01:24

0 Answers0