                                       flycheck-swift3-test-directory)))))
 
 (flycheck-ert-def-checker-test swift3 swift error-warning-info
-  (let ((flycheck-checkers '(swift3)))
+  (let ((flycheck-checkers '(swift3))
+        (flycheck-swift3-xcrun-sdk "macosx"))
     (flycheck-ert-should-syntax-check
      "unknowable.swift" 'swift-mode
      '(8 3 warning "result of 'Int' initializer is unused" :checker swift3)


(flycheck-ert-def-checker-test swift3 swift swift3-objc-inference-off
  (let ((flycheck-checkers '(swift3))
        (flycheck-swift3-swift3-objc-inference 'off))
    (flycheck-ert-should-syntax-check
     "objc-inference.swift" 'swift-mode


(flycheck-ert-def-checker-test swift3 swift swift3-objc-inference-on
  (let ((flycheck-checkers '(swift3))
        (flycheck-swift3-xcrun-sdk "macosx")
        (flycheck-swift3-swift3-objc-inference 'on))
    (flycheck-ert-should-syntax-check
     "objc-inference.swift" 'swift-mode
