Comments (10)
I see a similar issue with other system include files on Mac OS X:
infer -- clang -c testParse.c testParse.c:8:10: fatal error: 'stdio.h' file not found #include <stdio.h> ^ 1 error generated.
from infer.
@doggkruse, maybe you don't have the Xcode command-line tools
installed. Please install them running xcode-select --install
and try again.
from infer.
@Thinkfly can you please give more details about your problem? What is the infer command you tried?
from infer.
@doggkruse This issue has been addressed, please consider using the latest release available in:
https://github.com/facebook/infer/releases/latest
Reopen this task if the problem still persists.
from infer.
hi i am unable to compile a particular file .
Whole Project compilation is working perfect . but if i want to compile a particular file i used
infer -- clang -c file_name.m
it says
fatal error: 'Foundation/Foundation.h' file not
found
#import <Foundation/Foundation.h>
^
1 error generated.
from infer.
Hi @CW-CZ-bprabhakar, what version of Infer are you using? Does clang -c file_name.m
succeed on its own?
from infer.
Hi jvillard, This is the tar file i downloaded.
infer-osx-v0.1.1.tar.xz
Also When I run for the whole project it says No issues Found , and I believe I can't be that good programmer :)
from infer.
@CW-CZ-bprabhakar: Does clang -c file_name.m
succeed on its own?
Regarding your other issue, Infer should tell you how many files it has analysed; if it says "0 file analyzed" it may mean there is another issue there.
from infer.
Hi jvillard,
I guess the issue was i had'nt installed the command line tool . as when i installed i was able to check the errors.but i guess the fbinfer is unable to find framework which are installed via xcode. :
btw it said n number of files analysed.
clang -c file_name.m succeed on its own : YES
from infer.
you can try as this:
clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk main.m
from infer.
Related Issues (20)
- C Simple memory leak cannot be detected HOT 1
- [java] DEADLOCK: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- [java] STARVATION: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- False positive of Infer/Pulse when `std::unique_ptr` is used with no throw `new` HOT 2
- how to use --custom-symbols?
- How to check custom malloc and free functions for memory leak?
- can infer find out all suspecious bugs? HOT 2
- java: Infer injects outdated, buggy maven-compiler-plugin version 3.8.0
- False positive memory leak on loop HOT 4
- Dockerfile: US-ASCII locale causes crash on UTF-8 input
- How to add extra nullability condition to NULL_DEREFERENCE checking
- Is Adding a C++ Infer Port to the VSCode Plugin on the Roadmap? HOT 3
- [java] A false negative about the rule NULL_DEREFERENCE
- [java] A false positive about the rule THREAD_SAFETY_VIOLATION
- `--biabduction-unsafe-malloc` doesn't assume that `calloc()` and `realloc()` never return null HOT 1
- Error building the `Resource Leak analysis` lab in docker
- False positive Uninitialized Value in C code
- Need help when using infer run or capture during maven compilation HOT 1
- Query on --changed-files-index option HOT 3
- Meta leak HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infer.