@@ -12,6 +12,20 @@ Flycheck extension for Apple's Swift programming language.
12
12
13
13
Install ` flycheck-swift ` package from MELPA.
14
14
15
+ Add the following line to the ` ~/.emacs.d/init.el ` or ` ~/.emacs ` .
16
+
17
+ ```
18
+ (eval-after-load 'flycheck '(flycheck-swift-setup))
19
+ ```
20
+
21
+ If you compile against iOS SDK, add the following lines:
22
+
23
+ ```
24
+ (setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
25
+ ;; ↑ Select the appropriate SDK version you use
26
+ (setq flycheck-swift-target "arm64-apple-ios10")
27
+ ```
28
+
15
29
### Manual installation
16
30
17
31
Install [ Flycheck] ( http://www.flycheck.org/en/latest/user/installation.html ) .
@@ -28,6 +42,14 @@ Add the following line to the `~/.emacs.d/init.el` or `~/.emacs`.
28
42
(eval-after-load 'flycheck '(flycheck-swift-setup))
29
43
```
30
44
45
+ If you compile against iOS SDK, add the following lines:
46
+
47
+ ```
48
+ (setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
49
+ ;; ↑ Select the appropriate SDK version you use
50
+ (setq flycheck-swift-target "arm64-apple-ios10")
51
+ ```
52
+
31
53
### Using cask (for developer)
32
54
33
55
Install [ cask] ( https://github.com/cask/cask ) .
@@ -44,6 +66,14 @@ Add the following line to the `~/.emacs.d/init.el` or `~/.emacs`.
44
66
(eval-after-load 'flycheck '(flycheck-swift-setup))
45
67
```
46
68
69
+ If you compile against iOS SDK, add the following lines:
70
+
71
+ ```
72
+ (setq flycheck-swift-sdk-path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk")
73
+ ;; ↑ Select the appropriate SDK version you use
74
+ (setq flycheck-swift-target "arm64-apple-ios10")
75
+ ```
76
+
47
77
## Customization
48
78
49
79
### flycheck-swift-executable
@@ -56,7 +86,7 @@ Extra flags prepended to arguments of swiftc.
56
86
57
87
### flycheck-swift-sdk-path
58
88
59
- A path to the targeted SDK.
89
+ A name of the targeted SDK or path to the targeted SDK.
60
90
61
91
### flycheck-swift-linked-sources
62
92
0 commit comments