12

I have done some research on that issue , but I have not found anything similar just yet.

I am using iOS GPX framework to draw the path on map using GPX file. I have import iOS GPX.framework on my project. but I have face an issue.

Please Guide me, If anyone has any advice...

enter image description here

Rahul Saini
  • 921
  • 2
  • 10
  • 23
  • probably duplicate: [“Cannot find interface declaration for NSObject”?](http://stackoverflow.com/questions/8994911/cannot-find-interface-declaration-for-nsobject) – Matthias Bauch Nov 27 '14 at 07:15
  • @MatthiasBauch I have check already that link But my issue not solved please guide me... – Rahul Saini Nov 27 '14 at 07:17

3 Answers3

53

Just modify the header file, add this line on top of the file

#import <Foundation/Foundation.h>

Seems they thought that you will have a PCH file, where Foundation and UIKit will be imported, but Xcode 6 removed PCH default support, so the problem came. (See my previous answer)

Community
  • 1
  • 1
l0gg3r
  • 8,864
  • 3
  • 26
  • 46
2

Finally I have solved my problem

I have import #import < UIKit/UIKit.h> and change my Xcode 6 Architectures $(ARCHS_STANDARD_32_BIT).

Thanks so much Guys.

Rahul Saini
  • 921
  • 2
  • 10
  • 23
0

You haven't imported the header file #import ...

When compiling for both iOS and OsX, I had similar issue that I have resolved by importing TargetConditionals.h. The final thing looks like this:

#import <TargetConditionals.h>

#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE

#import <UIKit/UIKit.h>

#elif TARGET_OS_MAC

#import <Cocoa/Cocoa.h>

#endif



@interface MyClass : NSObject

#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE

// Define UIKit methods

#elif TARGET_OS_MAC

// Define Cocoa methods

#endif

- (void)reloadRegisteredComponents;


@end
Ondrej Rafaj
  • 4,342
  • 8
  • 42
  • 65