Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SwiftLint integration on Xcode 7.3.1, and getting error on --config command for .yml file configuration

I have integrated SwiftLint using pods and its working fine to produce warnings and errors. But I want to configure .yml file. For this I use following command on terminal.

swiftlint lint --config MyFile.yml

and getting following error...

fatal error: Loading sourcekitd.framework/Versions/A/sourcekitd failed: file /Users/marcelofabri/Westfield/SwiftLint/Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/library_wrapper.swift, line 61 Illegal instruction: 4

Please let me know how to solve this issue.

like image 969
Mohsin Qureshi Avatar asked Dec 23 '22 19:12

Mohsin Qureshi


1 Answers

This issue may occurred, because command line tool is not set in xcode. To solve the issue.

Xcode->preference->select Location Tab

In the "Command Line Tools" menu select the appropriate xcode.

enter image description here

enter image description here

like image 164
Saleh Enam Shohag Avatar answered Dec 26 '22 10:12

Saleh Enam Shohag