Skip to content
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

fatal error: 'UIKit/UIKit.h' file not found #46

Closed
Thinkfly opened this issue Jun 13, 2015 · 10 comments
Closed

fatal error: 'UIKit/UIKit.h' file not found #46

Thinkfly opened this issue Jun 13, 2015 · 10 comments
Assignees

Comments

@Thinkfly
Copy link

In file included from AppDelegate.m:9:
./AppDelegate.h:9:9: fatal error: 'UIKit/UIKit.h' file not found

import <UIKit/UIKit.h>

I try infer for IOS project, but get this error.How can i do?Thanks.

@doggkruse
Copy link

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.

@martinoluca
Copy link
Contributor

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

@martinoluca
Copy link
Contributor

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

@martinoluca martinoluca self-assigned this Jun 18, 2015
@martinoluca
Copy link
Contributor

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

@CW-CZ-bprabhakar
Copy link

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.

@jvillard
Copy link
Contributor

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

@jvillard jvillard reopened this Jun 22, 2015
@CW-CZ-bprabhakar
Copy link

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 :)

@jvillard
Copy link
Contributor

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

@CW-CZ-bprabhakar
Copy link

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

@qingfengiOS
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants