Re: Major Xcode irritation

2013-08-14 Thread Robert Vojta
Yep, I did several times. Was forced to remove DerivedData, because even Clean 
didn't help.

Sent from my iPhone

 On 12. 8. 2013, at 21:31, Graham Cox graham@bigpond.com wrote:
 
 Has anyone else run into this?
 
 You open a system header from the SDK into XCode, and due to muscle-memory, 
 absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and 
 save it over the old header (even if it hasn't actually been changed). XCode 
 then refuses to build because the header file mod date no longer matches what 
 was used when the precompiled headers were built.
 
 OK, so let's restore that file - oops, no backup because I don't typically 
 back up apps, and the SDK is embedded in the app. OK, download a new SDK from 
 Apple - you can't, the SDK is part of the Xcode download which is 1.6 GB, not 
 a swift download in most people's books. Rebuild the precompiled headers? 
 Probably a fair option, but it's not obvious how one even does that these 
 days, assuming it's still possible (help?).
 
 Given that the SDK is embedded in the app, why on earth is it even allowed to 
 overwrite a file there? Why do the permissions allow writing? Mysteries, 
 mysteries... in the meantime I will have lost half a day's productivity just 
 putting this stupid annoyance right.
 
 /Gripe
 
 If anyone could let me have a copy of NSEvent.h from the XCode 4.6.2 10.8 SDK 
 with the mod date 10/4/2013 12:53AM that would save my sanity and my few 
 remaining hairs - thanks!
 
 --Graham
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/robert%40tapmates.com
 
 This email sent to rob...@tapmates.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-13 Thread Maxthon Chan
I just destroy the PCHs before the projects started.

Sent from my iPhone

 On 2013年8月13日, at 3:31, Graham Cox graham@bigpond.com wrote:
 
 Has anyone else run into this?
 
 You open a system header from the SDK into XCode, and due to muscle-memory, 
 absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and 
 save it over the old header (even if it hasn't actually been changed). XCode 
 then refuses to build because the header file mod date no longer matches what 
 was used when the precompiled headers were built.
 
 OK, so let's restore that file - oops, no backup because I don't typically 
 back up apps, and the SDK is embedded in the app. OK, download a new SDK from 
 Apple - you can't, the SDK is part of the Xcode download which is 1.6 GB, not 
 a swift download in most people's books. Rebuild the precompiled headers? 
 Probably a fair option, but it's not obvious how one even does that these 
 days, assuming it's still possible (help?).
 
 Given that the SDK is embedded in the app, why on earth is it even allowed to 
 overwrite a file there? Why do the permissions allow writing? Mysteries, 
 mysteries... in the meantime I will have lost half a day's productivity just 
 putting this stupid annoyance right.
 
 /Gripe
 
 If anyone could let me have a copy of NSEvent.h from the XCode 4.6.2 10.8 SDK 
 with the mod date 10/4/2013 12:53AM that would save my sanity and my few 
 remaining hairs - thanks!
 
 --Graham
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/xcvista%40me.com
 
 This email sent to xcvi...@me.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Major Xcode irritation

2013-08-12 Thread Graham Cox
Has anyone else run into this?

You open a system header from the SDK into XCode, and due to muscle-memory, 
absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and save 
it over the old header (even if it hasn't actually been changed). XCode then 
refuses to build because the header file mod date no longer matches what was 
used when the precompiled headers were built.

OK, so let's restore that file - oops, no backup because I don't typically back 
up apps, and the SDK is embedded in the app. OK, download a new SDK from Apple 
- you can't, the SDK is part of the Xcode download which is 1.6 GB, not a swift 
download in most people's books. Rebuild the precompiled headers? Probably a 
fair option, but it's not obvious how one even does that these days, assuming 
it's still possible (help?).

Given that the SDK is embedded in the app, why on earth is it even allowed to 
overwrite a file there? Why do the permissions allow writing? Mysteries, 
mysteries... in the meantime I will have lost half a day's productivity just 
putting this stupid annoyance right.

/Gripe

If anyone could let me have a copy of NSEvent.h from the XCode 4.6.2 10.8 SDK 
with the mod date 10/4/2013 12:53AM that would save my sanity and my few 
remaining hairs - thanks!

--Graham
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Greg Parker
On Aug 12, 2013, at 12:31 PM, Graham Cox graham@bigpond.com wrote:
 Given that the SDK is embedded in the app, why on earth is it even allowed to 
 overwrite a file there? Why do the permissions allow writing? Mysteries, 
 mysteries... in the meantime I will have lost half a day's productivity just 
 putting this stupid annoyance right.

Did you file a bug report?


-- 
Greg Parker gpar...@apple.com Runtime Wrangler



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Simone Tellini
Il giorno 12/ago/2013, alle ore 21:31, Graham Cox graham@bigpond.com ha 
scritto:

 
 If anyone could let me have a copy of NSEvent.h from the XCode 4.6.2 10.8 SDK 
 with the mod date 10/4/2013 12:53AM that would save my sanity and my few 
 remaining hairs - thanks!
 

if you haven't edited the file content, can't you simply reset the modification 
date to solve your problem? It appears you know which one to set, so you can 
simply use touch in Terminal

-- 
Simone Tellini
http://www.tellini.org


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Steve Mills
On Aug 12, 2013, at 14:31:23, Graham Cox graham@bigpond.com wrote:

 You open a system header from the SDK into XCode, and due to muscle-memory, 
 absent-mindedness, reflex, lack of context or whatever, you hit cmd-S and 
 save it over the old header (even if it hasn't actually been changed). XCode 
 then refuses to build because the header file mod date no longer matches what 
 was used when the precompiled headers were built.

Hmm. IIRC, Xcode doesn't let me edit any system headers because I don't have 
permission. I see the padlock icon over at the right, so I would hope a Save 
would fail, even though the Save menu item is enabled (which looks like a bug 
to me). Xcode 4.6.3.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Jens Alfke

On Aug 12, 2013, at 12:31 PM, Graham Cox graham@bigpond.com wrote:

 XCode then refuses to build because the header file mod date no longer 
 matches what was used when the precompiled headers were built.

Really?! Precompiled headers are automatically regenerated if any of the 
headers have been touched. There shouldn’t be any error. What’s the exact error?

 Rebuild the precompiled headers? Probably a fair option, but it's not obvious 
 how one even does that these days, assuming it's still possible (help?).

Just clean the target and rebuild.

 Given that the SDK is embedded in the app, why on earth is it even allowed to 
 overwrite a file there? Why do the permissions allow writing? Mysteries, 
 mysteries…

Mysteries you should probably be pondering on the xcode-users mailing list, not 
here.

—Jens

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Kyle Sluder
On Mon, Aug 12, 2013, at 12:44 PM, Greg Parker wrote:
 Did you file a bug report?

I have. rdar://problem/13221349, marked as a dupe of
rdar://problem/11969509.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Kyle Sluder
On Mon, Aug 12, 2013, at 01:11 PM, Jens Alfke wrote:
 
 On Aug 12, 2013, at 12:31 PM, Graham Cox graham@bigpond.com wrote:
 
  XCode then refuses to build because the header file mod date no longer 
  matches what was used when the precompiled headers were built.
 
 Really?! Precompiled headers are automatically regenerated if any of the
 headers have been touched. There shouldn’t be any error. What’s the exact
 error?

Not in this case, I'm afraid. I've seen the exact issue Graham
describes. The compiler simply fails to build, complaining that the PCH
is older than the headers.

--Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Major Xcode irritation

2013-08-12 Thread Jean-Daniel Dupas

Le 12 août 2013 à 22:22, Kyle Sluder k...@ksluder.com a écrit :

 On Mon, Aug 12, 2013, at 01:11 PM, Jens Alfke wrote:
 
 On Aug 12, 2013, at 12:31 PM, Graham Cox graham@bigpond.com wrote:
 
 XCode then refuses to build because the header file mod date no longer 
 matches what was used when the precompiled headers were built.
 
 Really?! Precompiled headers are automatically regenerated if any of the
 headers have been touched. There shouldn’t be any error. What’s the exact
 error?
 
 Not in this case, I'm afraid. I've seen the exact issue Graham
 describes. The compiler simply fails to build, complaining that the PCH
 is older than the headers.
 
 --Kyle Sluder


I guess that as an optimization, Xcode does not check all SDK (or system) 
headers, and just assume they do not change, so it failed to detect the change, 
and do not recompile the precompiled headers.

I also gut similar issues when I replace clang by a more recent version. Doing 
a clean / build had always solve the issue for me.

-- Jean-Daniel





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com