Re: 34 build errors magically just appeared and then Xcode 6.2 crashed.
Re: 34 build errors magically just appeared and then Xcode 6.2 crashed.
- Subject: Re: 34 build errors magically just appeared and then Xcode 6.2 crashed.
- From: Alex Zavatone <email@hidden>
- Date: Tue, 19 May 2015 13:23:04 -0400
If this happens to any of you, what worked for me was to dirty the .pch (I pressed return before the line I that had the app's constants) and rebuilt.
Of course, the heart attack I had in between getting the errors and getting it to rebuild again without 25 build errors did take a little time to get over.
Stupid, stupid .pch handling code. Ugh.
On May 19, 2015, at 1:17 PM, Alex Zavatone wrote:
> This just happened to me again.
>
> Instantly all my #defines that are #imported in the Defaults.h within the .pch suddenly can't be referenced.
>
> I had started commenting out code in a class that doesn't reference the #defines at all and then, BLAM, "Too many errors"
>
> Now, if I can only remember what I did to get this fixed the last time it happened.
>
> Jesus.
>
>
>
> On May 15, 2015, at 7:30 AM, Dave wrote:
>
>> Hi,
>>
>> I think since the “modules” facility was added, the PCH file handling is broken. I’ve had the problem you describe and found the only way to be safe is to Clean the project whenever you make a change to anything related to the PCH file.
>>
>> All the Best
>> Dave
>>
>>
>>
>>> On 21 Apr 2015, at 16:00, Alex Zavatone <email@hidden> wrote:
>>>
>>> From what I can gather on this iOS project, 30 build errors appeared because for some reason, Xcode thinks that the Defaults.h file which is imported in the .pch is no longer present.
>>>
>>> Errors are being flagged for every #define within the app.
>>>
>>> I looked in the .pch, and Defaults.h is being imported under #ifdef __OBJC__
>>>
>>> Defaults.h is present within the project.
>>>
>>> Adding #import Defaults.h to each of the files resolves the errors, but this means that one line in the .pch is not getting called.
>>>
>>> Rebuilding the app, cleaning the app, quitting and restarting Xcode all don't resolve this.
>>>
>>> What's the recommended process here to get Xcode to resolve this? I've quit and restarted Xcode
>>>
>>> Should I just modify the .pch and rebuild?
>>>
>>> Thanks in advance. This is terribly frightening to see happen.
>>>
>>> Alex Zavatone
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
> _______________________________________________
> 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