LoginSignup
9
9

More than 5 years have passed since last update.

emacs flymakeでSwiftの構文チェック

Posted at

swiftソースがあるディレクトリに下記Makefileを置く。

Makefile
SWIFT=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
SDKPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk
SDK=-sdk $(SDKPATH)
OPTIONS=-parse -DDEBUG=1 -target i386-apple-ios8.0

check-syntax:
    $(SWIFT) $(SDK) $(OPTIONS)  ${CHK_SOURCES}
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9