Bug 1137 - Files with a date in the future do not sync to xcode correctly
Summary: Files with a date in the future do not sync to xcode correctly
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 2.8
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-29 10:34 UTC by Ploetzeneder Andreas
Modified: 2013-06-07 13:18 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
the project (412.83 KB, application/zip)
2011-09-29 10:34 UTC, Ploetzeneder Andreas
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ploetzeneder Andreas 2011-09-29 10:34:58 UTC
Created attachment 533 [details]
the project

Hi,
since today, when i change things on my Project in IF Builder (change color of uIbutton), it seems to be saved,...
i close the if builder, reopen it, after building the project and running it, the change is away again,..

any ideas?

if i add a new button to the Bedienteil.xib and i save it and then build and reopen Xib, button is away again,...
Comment 1 Sebastien Pouliot 2011-09-29 17:38:57 UTC
-> monodevelop
Comment 3 Ploetzeneder Andreas 2011-09-30 01:20:54 UTC
It is actually happening , with actual version!
I tested it on 2 Macs with same solutions

Mac OS Lion btw :-)
Comment 4 Ploetzeneder Andreas 2011-09-30 01:23:51 UTC
also other changes, like repositioning, the button and saving it, has no effect....


if i add a button, i call the button "asdf" in the if builder (drag and drop -->outlet), i see the button in monotouch afterwards and can use it , but after  compiling during running, "asdf" ithrows null reference exception because "asdf" is null, when i use it,.... even in viewdidload (there the button already should exists,,,,,and after that ....

do you need video?
Comment 5 Alan McGovern 2011-09-30 05:00:18 UTC
Heh, that comment was supposed to be internal to the team just to point out that this is a pretty important issue, I wasn't doubting you, I just hadn't attempted to replicate the issue yet. I'm looking into it now anyway!
Comment 6 Alan McGovern 2011-09-30 07:18:15 UTC
Hi,

The cause of this was because Bedienteil.xib had a modification date which was a month or two into the future. This broke our logic for deciding if the file we gave to Xcode has been modified. The date in the future basically meant that MonoDevelop thought the file had not been changed and so it was never synced.

To work around the issue for now, just modify all your files in some form in a text editor (i.e. monodevelop) and save them to give them a proper modification time. The fix will be in 2.8 final.
Comment 7 Ploetzeneder Andreas 2011-09-30 10:01:30 UTC
@Alan McGovern
ok, :-) your comment is ok, you do very goood work :-)
 so the reason is, the modificationdate, so if on one mac there is a wrong modification date, and it saves the things...
what do i have to change  with texteditor? i am not used to this...

another idea for workarround:
set my year to 2012?
Comment 8 Alan McGovern 2011-09-30 10:14:04 UTC
All you have to do is open any file that is not syncing properly, make a modification to it and hit 'save'. Simplest thing to do is right click on your xibs, open with the text editor, add a space, hit save, remove the space, hit save.
Comment 9 Ploetzeneder Andreas 2011-09-30 10:14:52 UTC
ok thx :) 

have a nice weekend!
Comment 10 Alan McGovern 2011-09-30 10:28:42 UTC
I should also mention that you should probably do this from within monodevelop, don't do it from inside Xcode as that won't help :)
Comment 11 Ploetzeneder Andreas 2011-09-30 10:45:14 UTC
thanks !
Comment 12 Jeffrey Stedfast 2013-06-07 13:18:23 UTC
this was fixed a while ago