9

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.

paprika
  • 1,944
  • 19
  • 26
Tikhon Jelvis
  • 6,152
  • 2
  • 27
  • 40
  • 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 00:08
  • Batsov made a swift-mode, but not really sure how to get stuff like the emulator working. – c-o-d Sep 27 '14 at 01:41
  • I recommend this site: [Emacs and Xcode](http://roupam.github.io/) – programking Sep 27 '14 at 03:12
  • Just found that [one](https://github.com/iamleeg/swift-mode). Never used it myself. – Nsukami _ Oct 03 '14 at 18:57

1 Answers1

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).

Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59