8

I'm going to be doing a bit of iOS work soon, using Swift (yay!). Unfortunately, this usually involves xcode (boo!).

How can I set Emacs up to build iOS apps with Swift? Ideally, they would run on my testing device automatically. More advanced functionality like autocomplete would be nice too, but not critical.

4
  • Did you google "emacs swift"? Download the mode. Install. Compiling is the same as any compilation - use make or xcodebuild or etc. It is not iOS specific. Getting compiled apps to run on your test device is a different question and probably not appropriate for this site. – mankoff Sep 27 '14 at 0:08
  • Batsov made a swift-mode, but not really sure how to get stuff like the emulator working. – Edgar Aroutiounian Sep 27 '14 at 1:41
  • I recommend this site: Emacs and Xcode – Luke Shimkus Sep 27 '14 at 3:12
  • Just found that one. Never used it myself. – Nsukami _ Oct 3 '14 at 18:57
3

There's swift-mode which is available on MELPA. This offers:

  • Syntax highlighting
  • Indentation
  • Code navigation with imenu
  • Syntax checking with flycheck

There's another swift-mode here, but it looks less complete.

To run code on the device, your best option is probably calling fruitstrap from Emacs (discussed here).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.