Mutablegopi
Mutablegopi

Reputation: 281

Getting "<Cocoa/Cocoa.h>" file not found in freahIM Application

Am working in chat application, In this application i need to integrate what'sapp clone application into my app, So i have download the freshIM app from the google, But lot of files are missed in that application, i have found the missing files from google and i had implement ed in my freshIm app, But finally i got

                   **"<Cocoa/Cocoa.h>" file not found in "AsyncImage" class**.

So please any one help to solve this issue, Am facing this issue last 2 days.Can any one tell me why this issue occurring.

Please let me know any other available source for what's app clone. Thanks in advance.

Upvotes: 0

Views: 2298

Answers (2)

P.J.Radadiya
P.J.Radadiya

Reputation: 1541

Subclasses of NSObject (at least on the iPhone) do not import the Cocoa.h header. Instead, they import Foundation.h:

#import <Foundation/Foundation.h>

Upvotes: 0

Droppy
Droppy

Reputation: 9731

<Cocoa/Cocoa.h> is for Cocoa, not Cocoa Touch (i.e. OSX not iOS) and simply does not exist in the iOS SDK (which is the reason for the error).

You want:

<UIKit/UIKit.h>

Upvotes: 1

Related Questions