Bug 23250 - Xcode quit when XS is trying to sync with Xcode
Summary: Xcode quit when XS is trying to sync with Xcode
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 5.5
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: 5.5.4
Assignee: Jeffrey Stedfast
: 23204 23329 23361 ()
Depends on:
Reported: 2014-09-22 10:34 UTC by Nischal
Modified: 2014-11-05 13:39 UTC (History)
19 users (show)

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:

Description Nischal 2014-09-22 10:34:37 UTC
Steps to reproduce:
1. Open or create iOS application in XS.
2. Open storyboard file in Xcode Interface builder.
3. Observe that XIB opens.
4. Now change focus to Xamarin Studio(Go back to XS and click somewhere or open any file).
5. Try to switch to XIB.

Actual Result: XIB gets closed and used need to reopen it using Right click .storyboard file->Open with->XIB.

Expected Result: XIB should not close.

Supplement info:
IDE Log: https://gist.github.com/saurabh360/ef4a8c636ee4320deb48

Environment details:
All Mac
X.S 5.5(build 200)
Git revision: 94e0df1b22f30d11dcd3e315c0a8263832b1c61a
Xcode 6.0 (6299)
Build 6A313

Regression Status: This is working fine with stable X.S 5.3.1(Build 2)
Comment 1 Udham Singh 2014-09-22 11:53:11 UTC
An update to the above issue.

iOS designer Log : https://gist.github.com/Udham1/667a1e953bd49bac7d59
Xcode4Sync Log : https://gist.github.com/Udham1/5b770418b24856fe42dd
Comment 2 Udham Singh 2014-09-22 11:53:52 UTC
*** Bug 23204 has been marked as a duplicate of this bug. ***
Comment 3 Alan McGovern 2014-09-22 14:39:07 UTC
Making this bug public as it contains no private information and customer reported bugs are being closed as duplicates of this. They need to be able to track this issue until it's fixed.
Comment 4 Jeffrey Stedfast 2014-09-22 16:14:37 UTC
This is actually by design. It was a bug that Xcode didn't always get closed before and it was the sole cause of the "Xamarin Studio isn't syncing my changes back from Xcode" bug.

Basically, what was happening was that:

1. XS would sync out to Xcode
2. the user would make changes
3. then switch back to XS
4. XS would sync back the changes from Xcode and fail to close Xcode
5. the user would switch back to Xcode and make changes
6. then switch back to XS again
7. XS would not sync back the changes because the sync context had completed the first time.

Possible alternative ways of implementing this:

1. Drop the whole magic of syncing out and back from Xcode thing, and just have users use menu items to sync out to Xcode and back.

2. Find a way to use file system monitoring.
Comment 5 svandyke 2014-09-22 19:21:31 UTC
Xamarin and Xcode sync'd just fine until a few days ago. Now its unbelievably annoying to use as I am constantly relaunching the Xode Interface Builder and having to resize it on my Mac each time it opens.

I have to believe Xamarin did this for the sole purpose of getting users to stop using Xcode and start using their own designer. 

If this somehow fixes some issue for someone, how about making this functionality OPTIONAL in preferences so those of us that were running just fine before don't have to be hindered by the this change.
Comment 6 Ruben Macias 2014-09-23 12:35:07 UTC
I agree with the above comment XCode syncing worked just fine.  I did this hundreds of times working on various projects switching back and forth between XS and XCode.  Never had a syncing problem as long as I Saved in XCode, it always synced back to XS.  Having XCode close every time XS gains focus is infuriating, frustrating, and is the wrong solution.  If you want to keep that functionality, keep it, but give us the option to keep XS open to those who know what they are doing.  This bug has greatly affected my productivity and probably raised my blood pressure to.  Let's just get this fixed.  Thanks!
Comment 7 Udham Singh 2014-09-25 07:56:30 UTC
*** Bug 23329 has been marked as a duplicate of this bug. ***
Comment 8 Jeffrey Stedfast 2014-09-25 12:15:33 UTC
*** Bug 23361 has been marked as a duplicate of this bug. ***
Comment 9 ilya.golovach 2014-09-26 07:31:37 UTC
This "by design" solution actually results in poorer workflow. It spends a lot of time on opening and indexing files. Please, make it like it was before.
Comment 10 mpournakas_p 2014-09-26 07:55:06 UTC
Isn't normal to have by design a functionality like this to close Xcode anytime that you return in xamarin even you don't change anything in your storyboard.
I had manage to make out 3 project with xamarin and Xcode never had problem for syncing when Xcode was opened and keeps open. it runs smoothly.

Now i need to open anytime the Xcode and this is something that affects the productivity.
Please change it. Is very important feature to keep Xcode open and keep working like before.
Comment 11 Jeffrey Stedfast 2014-09-26 09:18:19 UTC
This will be fixed in 5.6
Comment 12 Ian Williams 2014-10-08 06:52:23 UTC
Any date for the 5.6 version which fixes this bug, it's driving me crazy.
Comment 14 mpournakas_p 2014-10-08 07:06:53 UTC
yes download it i am very happy again from the time that i download this early version.
Comment 15 Mohit Kheterpal 2014-11-05 13:39:16 UTC
I have checked this issue and this issue is working fine now i.e. xcode is not quieting while syncing with XS as shown in screencast : http://screencast.com/t/KzBgSBfcnIOu

To verify this issue I have also checked steps mention in comment 4, and its working fine

Hence closing this issue.

Environment info :
=== Xamarin Studio ===

Version 5.5.4 (build 11)
Installation UUID: 45555ffd-f3f0-4f29-9543-e369d711ab7d
	Mono 3.10.0 ((detached/ec8eadc)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000028

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/xamarin77/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 2165ee4
Build date: 2014-11-04 21:31:50-0500

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 505040011
Git revision: eeee7455222308275e32ba67790c0b42d904292b
Build date: 2014-11-04 19:49:29-05
Xamarin addins: 53c87071a252e02e7bc7a80bf735b9fd4a89339d

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin77s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64