Bug 28916 - xib files not updating after editing in Xcode
Summary: xib files not updating after editing in Xcode
Status: RESOLVED DUPLICATE of bug 29159
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 5.9.1 (C5SR1)
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2015-04-09 03:33 UTC by Christopher Bruno
Modified: 2015-04-21 10:22 UTC (History)
3 users (show)

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

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 DUPLICATE of bug 29159

Description Christopher Bruno 2015-04-09 03:33:17 UTC
Description of Problem: xib files not updating after editing in Xcode


Steps to reproduce the problem:
1. Create a Xamarin.Mac project (unified or classic).
2.  Edit MainWindow.xib in Xcode (add a button). Xamarin Studio says syncing from Xcode, but the changes do not show when rebuilt


Actual Results: 
UI does not changes on rebuild

Expected Results: See changes made in Xcode


How often does this happen? Always, unless you clean the build. 


Additional Information:
Comment 1 Chris Hamons 2015-04-09 10:35:53 UTC
@Christopher - I'm having trouble reproducing this. Can you provide some additional information:

- What version of XS / XM / Xcode are you running?
- After adding a button, are you saving in Xcode before exiting?
- When you say the changes don't show, does the button not appear when you run or just the designer.cs isn't being updated?

This sounds like a serious regression if it is as it sounds, so I would expect more people having run into it.
Comment 2 Christopher Bruno 2015-04-09 11:58:33 UTC
Thanks for the response. Here is my Xamarin.Studio info:

Xamarin Studio
Version 5.8.1 (build 8)
Installation UUID: 0f367cdb-2143-424d-92ba-56bec6ae3071
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

Xamarin.Android
Not Installed

Xamarin Android Player
Not Installed

Apple Developer Tools
Xcode 6.3 (7569)
Build 6D570

Xamarin.iOS
Not Installed

Xamarin.Mac
Version: 1.12.0.14 (Indie Edition)

Build Information
Release ID: 508010008
Git revision: f8e52bf493869b6a320a95400553dc9ea8b7ef22
Build date: 2015-03-13 16:16:49-04
Xamarin addins: 84d611cc17567a68daad719327e90af06d2ae327

Operating System
Mac OS X 10.10.3
Darwin macbox2.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
Comment 3 Christopher Bruno 2015-04-09 12:12:54 UTC
Ive uploaded a screen capture of what I am experiencing 


https://vid.me/uOSk
Comment 4 Chris Hamons 2015-04-09 12:18:43 UTC
Try quitting Xcode instead of minimizing it. Let's see if that can help us isolate the issue.
Comment 5 Christopher Bruno 2015-04-09 15:27:29 UTC
I quit Xcode instead and the changes still do not show up, the only way to get the changes to the xib to show up is to clean the build.
Comment 6 Chris Hamons 2015-04-09 15:51:07 UTC
Can we get a full build log to help track down the problem.

Xamarin Studio -> Preferences -> Projects -> Build -> Log Verbosity: Diagnostics

Build project.

Errors Pad -> Build output.
Comment 7 Christopher Bruno 2015-04-09 19:04:19 UTC
Clean build: 

Building: TestApp (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.12.1/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Core.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.cs" "/Users/cbruno/Projects/TestApp/TestApp/MainWindowController.cs" "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.designer.cs" "/Users/cbruno/Projects/TestApp/TestApp/Main.cs" "/Users/cbruno/Projects/TestApp/TestApp/AppDelegate.cs" "/Users/cbruno/Projects/TestApp/TestApp/AppDelegate.designer.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/Resources/MainWindow.nib" "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/Resources/MainMenu.nib" "/Users/cbruno/Projects/TestApp/TestApp/MainMenu.xib"

Copying content files
Copying '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/TestApp.exe'
Copying '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe.mdb' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/TestApp.exe.mdb'
Copying '/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/XamMac.dll'
Copying '/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll.mdb' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/XamMac.dll.mdb'
Build complete -- 0 errors, 0 warnings

Updating application manifest

---------------------- Done ----------------------

Build: 0 errors, 5 warnings


After editing Xcode and rebuilding:

Building: TestApp (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.12.1/bin/mcs /noconfig "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/mscorlib.dll" -nostdlib "/out:/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Drawing.dll" "/r:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll" "/r:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/mono/4.5/System.Core.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.cs" "/Users/cbruno/Projects/TestApp/TestApp/MainWindowController.cs" "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.designer.cs" "/Users/cbruno/Projects/TestApp/TestApp/Main.cs" "/Users/cbruno/Projects/TestApp/TestApp/AppDelegate.cs" "/Users/cbruno/Projects/TestApp/TestApp/AppDelegate.designer.cs" 

Compiling interface definitions
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/Resources/MainWindow.nib" "/Users/cbruno/Projects/TestApp/TestApp/MainWindow.xib"
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/Resources/MainMenu.nib" "/Users/cbruno/Projects/TestApp/TestApp/MainMenu.xib"

Copying content files
Copying '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/TestApp.exe'
Copying '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.exe.mdb' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/TestApp.exe.mdb'
Copying '/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/XamMac.dll'
Copying '/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/XamMac.dll.mdb' to '/Users/cbruno/Projects/TestApp/TestApp/bin/Debug/TestApp.app/Contents/MonoBundle/XamMac.dll.mdb'
Build complete -- 0 errors, 0 warnings

Updating application manifest

---------------------- Done ----------------------

Build: 0 errors, 5 warnings
Comment 8 Christopher Bruno 2015-04-10 07:15:03 UTC
FYI, I downgraded to Xamarin Studio 5.5.4 (everything else the same) and the xib updating works.
Comment 9 Chris Hamons 2015-04-10 09:15:43 UTC
^
Comment 10 Jeffrey Stedfast 2015-04-10 11:48:32 UTC
This is a bug in an optimization added to MonoDevelop core that tries to outsmart the build logic into guessing whether the project needs to be rebuilt or not.

I'm pretty sure it's already been reverted.

Reassigning to Project Model component.
Comment 11 Lluis Sanchez 2015-04-21 10:22:44 UTC

*** This bug has been marked as a duplicate of bug 29159 ***