You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you compile against iOS SDK, add the following lines:
(setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
;; ↑ Select the appropriate SDK version you use
(setq flycheck-swift-target "arm64-apple-ios10")
If you compile against iOS SDK, add the following lines:
(setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
;; ↑ Select the appropriate SDK version you use
(setq flycheck-swift-target "arm64-apple-ios10")
If you compile against iOS SDK, add the following lines:
(setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
;; ↑ Select the appropriate SDK version you use
(setq flycheck-swift-target "arm64-apple-ios10")
Customization
flycheck-swift-executable
The name of the executable, i.e. swiftc.
flycheck-swift-extra-flags
Extra flags prepended to arguments of swiftc.
flycheck-swift-sdk-path
A name of the targeted SDK or path to the targeted SDK.
flycheck-swift-linked-sources
A list of source file paths to link against. Each path can be glob, i.e. *.swift.
flycheck-swift-framework-search-paths
A list of framework search paths.
flycheck-swift-cc-include-search-paths
A list of include file search paths to pass to the Objective-C compiler.
flycheck-swift-target
Target used by swift compiler.
flycheck-swift-import-objc-header
Objective C header file to import.
License
GPLv3. See COPYING for details. Copyright (C) 2014-2016 taku0, Chris Barrett, Bozhidar Batsov, Arthur Evstifeev.
About
Flycheck extension for Apple's Swift programming language.