Bug 3658 - XCode 4.3: Project file [filename] cannot be opened because the project file cannot be parsed.
Summary: XCode 4.3: Project file [filename] cannot be opened because the project file ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-02-27 16:28 UTC by Leigh
Modified: 2012-02-27 17:42 UTC (History)
2 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 FIXED

Description Leigh 2012-02-27 16:28:02 UTC
I'm using MD v2.8.6.5, MT v5.2.5 and XCode 4.3. 

At the end of last week, I started to receive this error when attempting to open my xib files in XCode: 

Project file [filename] cannot be opened because the project file cannot be parsed. 

Previously, working with XCode 4.3 had been working perfectly. I'm now presented with an error box whenever I attempt to edit my xib. When editing my xib, I have no code visible, so I'm unable to drag outlets etc.

I've googled, and I see that this was a known problem with 4.2 that was apparently fixed in MD 2.8. It's still an issue for me with 4.3.

Are there any known quick fixes? I have to have an app out in just two days time.

Thanks
Comment 2 Jeffrey Stedfast 2012-02-27 16:46:21 UTC
As a temporary workaround, rename your project to something without a space in the name.
Comment 3 Jeffrey Stedfast 2012-02-27 16:48:18 UTC
This is the problem section in the project.pbxproj file:

/* Begin PBXNativeTarget section */
		640894000000000000000000 /* CMSO Forum */ = {
			isa = PBXNativeTarget;
			buildConfigurationList = B410EBC00000000000000000 /* Build configuration list for PBXNativeTarget "CMSO Forum" */;
			buildPhases = (
				2773EE800000000000000000 /* Sources */,
				5EED9F800000000000000000 /* Frameworks */,
				4330C7000000000000000000 /* Resources */,
			);
			buildRules = (
			);
			dependencies = (
			);
			name = CMSO Forum;
			productName = CMSO Forum;
			productReference = BB7160000000000000000000 /* CMSO Forum.app */;
			productType = "com.apple.product-type.application";
		};
/* End PBXNativeTarget section */


Notice that the 'name' and 'productName' values are not properly quoted.

I'll try to get a fix for this into 2.8.8.0
Comment 4 Jeffrey Stedfast 2012-02-27 17:42:34 UTC
fixed in git master and the 2.8.8-series branch (hopefully in time for 2.8.8.0)