woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.
MIT License
1.46k stars 63 forks source link

"Illegal instruction: 4" when running with output_file #25

Closed noahsark769 closed 4 years ago

noahsark769 commented 4 years ago

With the following .pecker.yml:

reporter: "json"

disabled_rules:
  - skip_public

excluded: # paths to ignore during detecting. Takes precedence over `included`.
  - Carthage
  - Pods

blacklist_symbols: # symbols to ignore during detecting, contains class, struct, enum, etc.
  - AppDelegate
  - viewDidLoad

output_file: "./peckerout"

I get an illegal instruction when running pecker on CIFilter.io:

$ BUILD_ROOT=~/Library/Developer/Xcode/DerivedData/CIFilter.io-hibrtvbjsqlofacdruluolzdaqib/Index/DataStore/ pecker ./
Illegal instruction: 4

If I remove the output_file line, the script runs correctly.

woshiccm commented 4 years ago

Now only support absolute Path, If not specified, the path default is your current project directory path.

woshiccm commented 4 years ago

0.3.0 support relative path, you can read README and try again