Bug 9352 - Adding a new view + Controller throws an xcode sync error
Summary: Adding a new view + Controller throws an xcode sync error
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 4.0.8
Hardware: Macintosh Mac OS
: --- critical
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-01-07 18:14 UTC by bryan costanich
Modified: 2013-06-04 11:53 UTC (History)
2 users (show)

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


Attachments
solution file (21.27 KB, application/zip)
2013-01-07 18:14 UTC, bryan costanich
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:
VERIFIED FIXED

Description bryan costanich 2013-01-07 18:14:21 UTC
Created attachment 3173 [details]
solution file

Open the attached solution
expand the "controllers" > "ContentArea" folders
right click on "ContentArea," add new file
choose xam.mac view + controller
name it ContentView
click ok
explode.
Comment 1 Jeffrey Stedfast 2013-01-07 18:53:40 UTC
A few more steps:

1. open the solution
2. open the MainWindow.xib so that an Xcode window is open
3. right-click on "Controllers/ContentArea" to create a new file
4. select Xamarin.Mac / Cocoa View with Controller and name it "ContentView"
5. click OK

(step 2 is probably the important missing step from above)

Once you click OK, as each individual file from the template gets added to the project (there's 4 or 5 files), it closes and reopens Xcode once per file added.

(I'll submit another bug for that issue because that sucks for usability and for performance)

FWIW, the error that Bryan was getting was this dialog: http://i.imgur.com/YyfcY.png

Maybe something gets fucked up with all of the back and forth with Xcode while the files are getting added?


I haven't been able to reproduce yet so I'm not sure what's going on.
Comment 2 Jeffrey Stedfast 2013-02-28 11:43:05 UTC
Oops, looks like I forgot to close this bug after fixing it.

The problem was caused by all of the back-and-forth syncing with Xcode when adding a batch of files.

THe fix was to make it only sync on Save and not on FileAdded.
Comment 3 Atin 2013-03-05 05:06:49 UTC
Today we have checked this issue with following builds:

X.S 4.0 - 2be9833ca58a68b3d64be96a40ab7e149647fed1
Xamarin.mac- 1.2.32
Mono- 2.10.11 (mono-2-10/2baeee2)

We have followed all steps which are mentioned in Comment#1. Now Xcode does not close and reopen when user add ContentView file to Controllers/ContentArea after opening MainWindow.cs file.

Changing the status to Verified