New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infer failed in Xcode9: infer xcodebuild output error - *** Infer needs a working compilation command to run #759
Comments
The same issue here. Objective-C project. |
@jvillard Any advice will be appreciated so much |
@dulmarod Hey, any ideas what's happening here on new XCode or if current master (source) version has fixed this? Thanks! |
There's a chance that the current master fixes this since it ships with a newer clang (5.0) than the 0.12.1 release. I'm not sure how to reproduce this locally to check so it would be great if you could try on your end. Let me know if you need any help with that. |
The same issue here. |
same here, swift project |
the same issue. |
@jvillard I tried infer 0.12.1 with clang 6.0, however the same issue is still there. |
Please try the new 0.13.0 release and let me know if the issue is still there: https://github.com/facebook/infer/releases/tag/v0.13.0 It's not yet in Homebrew but should be soon. @tianshunjian 0.12.1 is the one that ships with an older clang. |
@jvillard thanks very much |
Tried version 0.13. After a clean of the project, running infer run with option --keep-going
I got many issues:
and then
|
@jvillard the same issue with StefanoBiasu |
Any project I can try to reproduce this on? Can you try passing
What was the error? Can you paste the contents of the argfile when that happens (here /var/folders/l2/j0r5rdh13yz3qmz97l5zj2h80000gp/T/clang_command_b483e4.txt). |
@jvillard I tried infer 0.13.0 installed by Homebrew, and the same issue with StefanoBiasu is there. I run the command
then I got the following results:
and lots of those, finally I got "No issues found". And this is the log file |
@jvillard @lizuba @StefanoBiasu
And thank you @jvillard very much for your patience. |
thank you! it seems to work if i add |
Thanks @tianshunjian for reporting my issue. |
Thanks all for testing. By default infer pipes xcodebuild output to The |
A question: both --no-xcpretty and --no-liveness options are not mentioned in infer documentation (or I cannot find them).
If they are not already there, when are they going to be added to documentation?
Is it possible to have a global text search for the documentation?
… On 15 Nov 2017, at 18:36, dulmarod ***@***.***> wrote:
Hi @tianshunjian, you can disable it with --no-liveness. I'm working on a fix to the noise that should be ready soon.
On Nov 15, 2017, at 4:02 AM, tianshunjian ***@***.******@***.***>> wrote:
@jvillard<https://github.com/jvillard>
I wanna know how to avoid the checker of "Dead store" when running infer, because there are hundreds of "Dead store" which I do not need fix it in my project.
There is my infer command
infer --keep-going --no-xcpretty -- xcodebuild -workspace SohuLive.xcworkspace -scheme SohuLiveSDK-Video -configuration Debug -sdk iphonesimulator
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#759 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AHi_JL4MQ1PNUItTlcHqjxkW5V3dGJB3ks5s2mJsgaJpZM4Pm8mL>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#759 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHkzzw8GikRx4qJuJuMchxKa4MiAtdxbks5s2yEzgaJpZM4Pm8mL>.
|
Hi @tefanoBiasu, the options are available in infer --help. The help is very comprehensive, it's work getting familiar with the different options. |
Ok, thanks, I’ll check that in case of doubts!
|
@jvillard I tried it the way you offered it, but it didn't work, just printed it.
Command does not exist |
哥们 你路径中是有中文么 换个英文路径看看@TimorYang |
@lizuba 好的,谢谢. |
interesting |
Internal Error: /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py |
I have the same problem. @liumingzhi |
The same problem here. Infer version -- 0.15.0 @liumingzhi |
My project is created by Objective-C. And infer v0.12.0 was run successfully for my project in xcode 8 yesterday. Today I update my xcode to xcode 9, use some APIs in iOS 11, and update infer to v0.12.1.
Then when I run infer v0.12.1 on Xcode 9 with iOS 11 and LLVM v9.0.0 using the following command:
I got the following results:
..MANY OF THESE ERRORS...then...
The text was updated successfully, but these errors were encountered: