cannot find interface declaration for 'NSObject', superclass of 'GPXType'
Asked Answered
M

3

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

Maize answered 27/11, 2014 at 7:8 Comment(2)
probably duplicate: “Cannot find interface declaration for NSObject”?Rozele
@MatthiasBauch I have check already that link But my issue not solved please guide me...Maize
M
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.

Maize answered 27/11, 2014 at 9:17 Comment(0)
C
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)

Collocate answered 27/11, 2014 at 8:9 Comment(4)
Saved my life dudeSoosoochow
@KeghamK. barevner Hayastanic :)Collocate
@I0gg3r Hayes doun? :D Armenian from Armenia saved an Armenian from Egypt (Y) Shad shad shnorhagalem akhber janSoosoochow
आभारी आहे भावा, वेळ वाचवलास!Skitter
M
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.

Maize answered 27/11, 2014 at 9:17 Comment(0)
S
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
Synecdoche answered 6/2, 2015 at 11:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.