Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

xctest/xctest.h file not found

Hello Support,


I have tried to fix this error but I couldn't get success.


My Code is as below:


UITextviewAppDelegate.m


UITextviewViewController *tic=[[UITextviewViewControlleralloc]init];


self.window.rootViewController=tic;


UITextviewViewController.m file:

UITextView *utv=[[UITextViewalloc]initWithFrame:CGRectMake(0, 30, 100, 50)];

utv.font=[UIFont fontWithName:@"Hello" size:12];

utv.font=[UIFontboldSystemFontOfSize:10];

utv.backgroundColor=[UIColorcolorWithPatternImage:[UIImageimageNamed:@"123.jpg" ]];

utv.scrollEnabled=YES;

utv.pagingEnabled=YES;

utv.editable=YES;

[utv becomeFirstResponder];

[self.view addSubview:utv];


There is no mistake in code then why the error is occurring, I don't know.


Awaiting the quick response.


Regards,

Pratik Jajal

Posted on Jul 14, 2014 5:00 AM

Reply
Question marked as Best reply

Posted on Jul 14, 2014 9:24 AM

What is the error? Is it that the xctest.h file is not found when you compile?


If so you need to specify where you placed that file. As a rule if you are working in Xcode it should be the same folder that the xctest.m file is.

3 replies

Jul 14, 2014 6:46 PM in response to Frank Caggiano

Hello Frank.


The error is "xctest/xctest.h file not found". The thing is what when I crated the same project with the same code, it runs perfectly without the provided error. I tried to diagnosis but couldn't get success.


For you kind information, Xcode is in the same folder that the xctest.m file is.


Would you please provide me the steps to fix the provided error so that in future I can resolve it without asking you?


With kind regards,

Pratik Jajal

xctest/xctest.h file not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.