Bug 28519 - After a storyboard edit with Xcode Interface Builder, Xamarin Studio doesn't recognize it has changed and doesn't rebuild the project, simply launching it again
Summary: After a storyboard edit with Xcode Interface Builder, Xamarin Studio doesn't ...
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
Depends on:
Reported: 2015-03-28 21:15 UTC by Matt Samet
Modified: 2015-04-21 10:23 UTC (History)
2 users (show)

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

Build log "showing" the storyboard not being rebuilt. (113.38 KB, text/plain)
2015-04-09 16:26 UTC, Nic Wise

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:

Description Matt Samet 2015-03-28 21:15:55 UTC
XS 5.8.1 Mac, Yosemite.

I edited a storyboard with Interface Builder, then came back into Xamarin Studio.  It said "updating from changes from xcode project" or whatever.  Then, I clicked Run (the play button) and XS simply ran the project instead of building it, failing to see that the storyboard had changed.
Comment 1 Jeffrey Stedfast 2015-03-29 11:36:22 UTC
I'll need the build log when you click "Run" after making a change in Xcode.
Comment 2 Matt Samet 2015-03-29 16:00:42 UTC
How do I get that build log?
Comment 3 Jeffrey Stedfast 2015-03-30 11:37:08 UTC
Click on the "Errors" button at the bottom right of your Xamarin Studio window and it will pup up a panel with the build errors. If you do not see the build log on the right side of that panel, click on the "Build Output" button and that will show the log.
Comment 4 Nic Wise 2015-04-09 16:25:26 UTC
+1 for this. I get this all the time with Stable, Alpha and Beta channels. XCode 6.2 and 6.3.

My log is attached.:
Comment 5 Nic Wise 2015-04-09 16:26:25 UTC
Created attachment 10692 [details]
Build log "showing" the storyboard not being rebuilt.

as reuqested
Comment 6 Nic Wise 2015-04-09 16:27:59 UTC
Steps: Run the app. Label is white.

Open storyboard in xcode.
Change label to red.
Save and close
(XS shows "syncing")

Hit run.

Label is white

Label is red.

Rebuild (from the Build menu)

Label is Red.
Comment 7 Jeffrey Stedfast 2015-04-09 16:46:20 UTC
Which storyboard am I looking for? I'm assuming you mean the main app's storyboard which is MainStoryboard.storyboard.

According to the build log, the build is invoking ibtool on it to produce MainStoryboard.storyboard.c in the obj/ibtool directory:

		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 8.0 --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk --compile /Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc /Users/nic/code/git/NearestBus2/NearestBusApp/MainStoryboard.storyboard

And in the _CopyContentToBundle task, it is being copied from the obj directory into the final app bundle:

		Creating directory '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/0Vb-aM-06d-view-Iba-G5-Vgd.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/0Vb-aM-06d-view-Iba-G5-Vgd.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/AiQ-iW-xVU-view-JGO-8f-nsg.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/AiQ-iW-xVU-view-JGO-8f-nsg.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/Info.plist' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/Info.plist'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-0Vb-aM-06d.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-0Vb-aM-06d.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-SIw-v2-sBX.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-SIw-v2-sBX.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-b6e-47-gHd.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-b6e-47-gHd.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-bNi-1Y-Oge.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-bNi-1Y-Oge.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-fSr-oK-A5J.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-fSr-oK-A5J.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/UIViewController-vXZ-lx-hvc.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/UIViewController-vXZ-lx-hvc.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/b6e-47-gHd-view-bqe-VR-ilB.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/b6e-47-gHd-view-bqe-VR-ilB.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/fSr-oK-A5J-view-wwS-hM-HQO.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/fSr-oK-A5J-view-wwS-hM-HQO.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/oBx-Vk-iEE-view-3Ga-PA-pqK.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/oBx-Vk-iEE-view-3Ga-PA-pqK.nib'
		Copying file from '/Users/nic/code/git/NearestBus2/NearestBusApp/obj/iPhoneSimulator/Debug/ibtool/MainStoryboard.storyboardc/vXZ-lx-hvc-view-kh9-bI-dsS.nib' to '/Users/nic/code/git/NearestBus2/NearestBusApp/bin/iPhoneSimulator/Debug/NearestBusApp.app/MainStoryboard.storyboardc/vXZ-lx-hvc-view-kh9-bI-dsS.nib'
Comment 8 Nic Wise 2015-04-09 17:46:06 UTC
here's the problem

Build started 10/04/2015 9:42:00 a.m.

My clock says 09:45 when I hit "run".

that log is from the previous rebuild I did.

I'll try changing both some code AND the storyboard...
Comment 9 Nic Wise 2015-04-09 17:49:34 UTC
OK. Just verified.


1. Rebuild app and run. Label is white. (correct)

2. Go into xcode and change label to blue.

3. Run (don't rebuild). Label is white. (incorrect)

4. Rebuild. Run. Label is blue. (correct)

5. go into xcode. Change label to green

6. CHANGE any line of code in the app.

7. Press RUN. App builds and label is green. (correct)

I have to change a line of code to get it to rebuild the app. Just changing the storyboard doesn't do it.
Comment 10 Nic Wise 2015-04-09 17:50:46 UTC
I should add that when I run in #3, I dont get a new build log. It just runs it and connects the debugger. Same as if I ran it, then pressed stop, then pressed play again without changing any code.
Comment 11 Jeffrey Stedfast 2015-04-09 21:21:51 UTC
Okat, got it. I think I know what the problem is. In 5.8, a new "optimization" was introduced into MonoDevelop core to avoid building the project when you hit Run if it thinks nothing has changed. There have already been a number of reports of this optimization breaking stuff, though, and I think it got reverted already in git. Not sure which versions have the fix.

Comment 12 Nic Wise 2015-04-09 22:42:18 UTC
Thanks @Jeffery - as long as you lot know about it (and I hope, fix it), it's only a minor irritation for a short while :)
Comment 13 Lluis Sanchez 2015-04-21 10:23:34 UTC

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