Giter Club home page Giter Club logo

Comments (10)

doggkruse avatar doggkruse commented on May 18, 2024

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.

martinoluca avatar martinoluca commented on May 18, 2024

@doggkruse, maybe you don't have the Xcode command-line tools installed. Please install them running xcode-select --install and try again.

from infer.

martinoluca avatar martinoluca commented on May 18, 2024

@Thinkfly can you please give more details about your problem? What is the infer command you tried?

from infer.

martinoluca avatar martinoluca commented on May 18, 2024

@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.

CW-CZ-bprabhakar avatar CW-CZ-bprabhakar commented on May 18, 2024

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.

jvillard avatar jvillard commented on May 18, 2024

Hi @CW-CZ-bprabhakar, what version of Infer are you using? Does clang -c file_name.m succeed on its own?

from infer.

CW-CZ-bprabhakar avatar CW-CZ-bprabhakar commented on May 18, 2024

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.

jvillard avatar jvillard commented on May 18, 2024

@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.

CW-CZ-bprabhakar avatar CW-CZ-bprabhakar commented on May 18, 2024

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.

qingfengiOS avatar qingfengiOS commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.