Re: Unknown name type for an imported class in Xcode 6.x iOS 8 project
Re: Unknown name type for an imported class in Xcode 6.x iOS 8 project
- Subject: Re: Unknown name type for an imported class in Xcode 6.x iOS 8 project
- From: William Squires <email@hidden>
- Date: Thu, 30 Apr 2015 15:29:13 -0500
If I understand properly, you can't have a circular #import - you could have a circular #include (in older C code), but from what I recall, #import is supposed to prevent that sort of problem; each symbol only gets imported once, regardless of the number of times the header is encountered by the compiler/pre-processor... That's not to say there's not a bug in the works, mind you. :)
On Apr 30, 2015, at 3:20 PM, Alex Zavatone <email@hidden> wrote:
>
> On Apr 30, 2015, at 4:07 PM, Alex Zavatone wrote:
>
>> Just had this lovely build error crop up.
>>
>> I'm including a .h file in my iOS app's AppDelegate.h. Say it's XXXX.h
>>
>> Right below the #import in the @interface, I've got an iVar of that class.
>>
>> And below the @interface, a property that's nonatomic and strong for an instance of that class.
>>
>> Xcode just started telling me that this class that I'm including is of "Unknown type name" on the lines where the iVar and the property are defined.
>>
>> The class itself compiles, is spelled properly, is in the project and in the Compile Sources section of the build.
>>
>> I'm having trouble understanding where to look here for what's broken.
>>
>> Any ideas?
>>
>> Thanks in advance,
>> Alex Zavatone
>
> OK. Looks like i have a circular #import going on. Fun times.
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden