I am using XMPPFramework
in my application. I have imported the Cocoa/Cocoa.h in my .m file. But when i build the project Xcode
shows an error.
error: "Cocoa/Cocoa.h file not found".
How can i solve this Error?
If you're building for iOS then you shouldn't #import <Cocoa/Cocoa.h>
. That header only exists on OS X. For iOS you need to include the various framework headers directly (e.g., #import <UIKit/UIKit.h>
).
Add this line :
#import <Foundation/Foundation.h>
remove this :
#import <Cocoa/Cocoa.h>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With