johnno1962 / GitDiff

Highlights deltas against git repo in Xcode
MIT License
891 stars 54 forks source link

Infer #71

Closed bolismauro closed 5 years ago

bolismauro commented 6 years ago

Hi I'm trying to use infer as a standalone program.

I'm launching infer from xcode passing the path to the project as an argument (just the folder, no xcproject/xcworkspace).

I get this issue

Could not find compile command for '/path/to/project/' in log directory: 

/.../Xcode/DerivedData/project_name-fqpfkyqemmqckngowpiuqqmjunur/Logs/Build



Even adding xcproject or xcworkspace lead to any result.. I tried to debug the code and it seems that`commandLineForPrimaryFile` is not able to find what is looking for
johnno1962 commented 6 years ago

You need to specify an individual swift source file. Infer does not work on an entire project