Bug 5440 - When opening xib file error "MonoDevelop could not communicate with Xcode" occurrs.
Summary: When opening xib file error "MonoDevelop could not communicate with Xcode" oc...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-05-31 12:35 UTC by David
Modified: 2014-02-09 09:37 UTC (History)
3 users (show)

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


Attachments
attached is what i see. Am i looking in the right place? (109.67 KB, image/png)
2012-05-31 14:36 UTC, David
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 David 2012-05-31 12:35:55 UTC
All of a sudden when I open a .xib file with MonoDevelop in Xcode it will not open and MonoDevelop reports the error "MonoDevelop could not communicate with Xcode."  I have tried exiting Xcode and MonoDevelop, I have tried rebooting, and I have tried updating to the latest version of everything.  Nothing seems to work.  I cannot open any xib files at all!  This has put me at a total standstill in development at a critical time!  Is there a log file or something that will shed more light on what the problem is?
Comment 1 Jeffrey Stedfast 2012-05-31 12:40:51 UTC
There's a log file in ~/Library/Logs/MonoDevelop-3.0/Xcode4Sync-<date/time>.log

That should be a good start...
Comment 2 David 2012-05-31 12:49:45 UTC
The folder ~/Library/Logs/MonoDevelop-3.0 does not exist on my mac
Comment 3 Jeffrey Stedfast 2012-05-31 14:18:39 UTC
Apparently ~/Library is a hidden directory in Finder...

Is that the dir that you aren't finding? or is it the MonoDevelop directory? If it's the MonoDevelop directory, if you are running 2.8 then it would be MonoDevelop-2.8 instead of MonoDevelop-3.0
Comment 4 David 2012-05-31 14:36:23 UTC
Created attachment 1994 [details]
attached is what i see.  Am i looking in the right place?
Comment 5 David 2012-05-31 14:43:02 UTC
found it in a console window.
Comment 6 Jeffrey Stedfast 2012-05-31 14:44:38 UTC
No, that's the system Library directory.

You need to look in /Users/David/Library/Logs/MonoDevelop-3.0

(In Unix, "~" means "user's home directory")
Comment 7 David 2012-05-31 15:36:14 UTC
here is the log file.  Doesn't tell me much...

[2012-05-31 12:50:30.9] Opening document 'HistoryCellController.xib' from project 'MobileBanking_iPad' in Xcode...
[2012-05-31 12:50:30.9]    Enabled syncing for project: MobileBanking_iPad
[2012-05-31 12:50:30.9]    Updating Objective-C type information
[2012-05-31 12:50:33.1]    Updating Xcode project for MobileBanking_iPad...
[2012-05-31 12:50:33.1]       'RootViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'LoginViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'BranchLocationDetailsViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'MyMoneyViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'AccountDetailsViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'HistoryCellController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'TransfersViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'TransferButtonCellController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'SendErrorReportViewController_iPad.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'DepositCheckViewController.xib' needs to be updated.
[2012-05-31 12:50:33.1]       'ad_320x285_larger.png' needs to be updated.
[2012-05-31 12:50:33.1]       'URLs.txt' needs to be updated.
[2012-05-31 12:50:33.1]       'AppDelegate.h' needs to be updated.
[2012-05-31 12:50:33.1]       'AppDelegate.m' needs to be updated.
[2012-05-31 12:50:33.1]       'RootViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'RootViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'LoginViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'LoginViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'BranchLocationDetailsViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'BranchLocationDetailsViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'MyMoneyViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'MyMoneyViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'AccountDetailsViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'AccountDetailsViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'HistoryCellController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'HistoryCellController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'HistoryCell.h' needs to be updated.
[2012-05-31 12:50:33.1]       'HistoryCell.m' needs to be updated.
[2012-05-31 12:50:33.1]       'TransfersViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'TransfersViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'TransferButtonCellController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'TransferButtonCellController.m' needs to be updated.
[2012-05-31 12:50:33.1]       'TransferButtonCell.h' needs to be updated.
[2012-05-31 12:50:33.1]       'TransferButtonCell.m' needs to be updated.
[2012-05-31 12:50:33.1]       'SendErrorReportViewController_iPad.h' needs to be updated.
[2012-05-31 12:50:33.1]       'SendErrorReportViewController_iPad.m' needs to be updated.
[2012-05-31 12:50:33.1]       'DepositCheckViewController.h' needs to be updated.
[2012-05-31 12:50:33.1]       'DepositCheckViewController.m' needs to be updated.
[2012-05-31 12:50:33.1]       Exporting 'RootViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'LoginViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'BranchLocationDetailsViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'MyMoneyViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'AccountDetailsViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'HistoryCellController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'TransfersViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'TransferButtonCellController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'SendErrorReportViewController_iPad.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'DepositCheckViewController.xib' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'ad_320x285_larger.png' to Xcode.
[2012-05-31 12:50:33.1]       Exporting 'URLs.txt' to Xcode.
[2012-05-31 12:50:33.1]       Exporting Objective-C source code for the MobileBanking_iPad.AppDelegate class to Xcode.
[2012-05-31 12:50:33.1]       Exporting Objective-C source code for the MobileBanking_iPad.RootViewController class to Xcode.
[2012-05-31 12:50:33.1]       Exporting Objective-C source code for the MobileBanking_iPad.LoginViewController class to Xcode.
[2012-05-31 12:50:33.1]       Exporting Objective-C source code for the MobileBanking_iPad.BranchLocationDetailsViewController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.MyMoneyViewController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.AccountDetailsViewController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.HistoryCellController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.HistoryCell class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.TransfersViewController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.TransferButtonCellController class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.TransferButtonCell class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.SendErrorReportViewController_iPad class to Xcode.
[2012-05-31 12:50:33.2]       Exporting Objective-C source code for the MobileBanking_iPad.DepositCheckViewController class to Xcode.
[2012-05-31 12:50:33.2]       Queued write of '/Users/MobileLabMac01/Projects/FPSMobile/MobileBanking/MobileBanking_iOS/MobileBanking_iPad/obj/Xcode/0/MobileBanking_iPad.xcodeproj'.
[2012-05-31 12:50:33.2]    Xcode project updated.
[2012-05-31 12:50:33.2]    Generating project.pbxproj file for MobileBanking_iPad
[2012-05-31 12:50:33.2]    Asking Xcode to open '/Users/MobileLabMac01/Projects/FPSMobile/MobileBanking/MobileBanking_iOS/MobileBanking_iPad/obj/Xcode/0/HistoryCellController.xib'...
[2012-05-31 12:51:10.8]    Xcode failed to open '/Users/MobileLabMac01/Projects/FPSMobile/MobileBanking/MobileBanking_iOS/MobileBanking_iPad/obj/Xcode/0/HistoryCellController.xib': OSAError=-1753: Xcode got an error: AppleEvent timed out.
[2012-05-31 12:51:15.2]    ERROR: Could not open file in Xcode project. Xcode got an error: AppleEvent timed out.
[2012-05-31 12:51:15.2] Disabled syncing for project: MobileBanking_iPad
[2012-05-31 12:51:15.2]    Asking Xcode to close the MobileBanking_iPad project...
[2012-05-31 12:51:15.5]    Xcode failed to close the project.
[2012-05-31 12:51:15.5]    Deleting temporary Xcode project directories.
[2012-05-31 12:51:15.5]    Xcode still running, leaving empty directory in place to prevent name re-use.
Comment 8 Jeffrey Stedfast 2012-05-31 16:10:39 UTC
Yea, looks like a timeout occurred:

[2012-05-31 12:51:10.8]    Xcode failed to open
'/Users/MobileLabMac01/Projects/FPSMobile/MobileBanking/MobileBanking_iOS/MobileBanking_iPad/obj/Xcode/0/HistoryCellController.xib':
OSAError=-1753: Xcode got an error: AppleEvent timed out.


As a temporary workaround, try keeping Xcode opened up in the background instead of having it start fresh. I'll up the timeout to 60 seconds (currently set to 30), hopefully that'll be enough.


I've uploaded the latest build with the 60-second timeouts to http://files.xamarin.com/~jeff/MonoDevelop-3.1.0.dmg
Comment 9 David 2012-05-31 16:29:09 UTC
thanks look like keeping it open worked.