XCode projects creation broken after commit 882be2606

Hi guys,

I’ve updated to the latest tip (7d71efe6e), rebuilt the Projucer and updated an existing project. XCode can’t open the project due to parsing error, identifying the file as damaged. I’ve tested creating a brand new project from Projucer and the result is the same.

Before updating to the latest tip, I were on JUCE 6.0.5, stable, on my test machine (Apple Silicon Macbook Pro) with XCode 12.4
Making projects with Projucer worked as expected with 6.0.5. No errors of that kind.

Looks like that the issue has been introduced with the develop commit 882be2606
Before that one, any XCode project created/saved by Projucer works as expected.
@ed95 @t0m please can you check?


I’ve just double checked this. On an M1 machine I can check out the develop branch, compile and run the Projucer, create an empty default JUCE project, export that to an Xcode project, and open that in Xcode 12.4.

There must be something else going on.

I can’t imagine what… the machine is brand new, with macOS 11.2.1, and only has JUCE with a couple of our projects I cloned from our repo to test if they build and run here.

I just tried removing my JUCE folder, cloning again, checking out develop, building Projucer, making a new project. Same error.
More info… my XCode build is 12D4e.

Anyways, going back to develop commit ba37f915d, the one before the pbxproj changes, makes everything working as expected. Moving to 882be2606 and the XCode projects fail.

If you have some 'OTHER_XCODE_FLAGS` (or similar, don’t remember now the JUCE names).
sometimes failed escaping results broken Xcode projects.

That’s not the case, since I’m testing this issue with factory Projucer’s new projects, so I don’t even add the company name.


  • XCode projects created with Projucer built with develop commit up to ba37f915d (Jan 27th) works fine.
  • XCode projects created with Projucer built with develop commit AFTER ba37f915d are broken.

Can you share the broken project.pbxproj file?

1 Like

Sure. I guess I found what’s causing the issue. I tested it by creating a new GUI project, which is less complex than the Plugin one. I found that MTL_HEADER_SEARCH_PATHS lines are ending the line with \ " instead of \ “”.

Fixing that will get the project to open as expected.

project.pbxproj.zip (4.8 KB)

The attached file is the “bad” one. Check on lines 298 and 355.


confirmed. I did the same work on the Plugin project file. Fixing the endings of all the MTL_HEADER_SEARCH_PATHS lines made the project working.

And I think I’ve found what’s causing the missing quotes at the end of these lines. My path to JUCE contains whitespaces. If I rename the folders having whitespaces, the project is working fine even with dev tip. I think this needs to be addressed, since I cannot rename all folders in my production machines.

1 Like

We’ll get this fixed. Thank you for reporting.

1 Like

When implementing the fix, please also consider situations where the folders may contain environment variables that need to be resolved.

In my situation, I need include folders that look something like this:

I don’t have any spaces in the folder names and I am experiencing a similar problem.

Have you tried the develop branch? The fix is already on there, so if you’re still experiencing problems then it might be something else. Does reverting to before 882be2606 make things behave as expected?

EDIT: works with commit 060f96a