# All projects have errors in the producer but build in Xcode

**URL:** <https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628>\
**Category:** The Projucer\
**Created:** [April 2, 2019, 11:31am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628 "2019-04-02T11:31:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidCNAntonia](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/davidcnantonia/32/3293_2.png) [@DavidCNAntonia](https://forum.juce.com/u/DavidCNAntonia)\
**Post date:** [April 2, 2019, 11:31am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/1 "2019-04-02T11:31:17Z")

</div>

Updated to OS 10.14.4 and Xcode 10.2 and now all my projects show errors in the producer. Even new unaltered projects set up by JUCE. They do build in Xcode.

Attached is a screenshot:

 ![25](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/0/018a274b91dd4aa83a5ec9a69ffc28c16d174145.jpeg)

Have I missed something?

---

<div class="post-metadata">

**Author:** ![obb64](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/obb64/32/5545_2.png) [@obb64](https://forum.juce.com/u/obb64)\
**Post date:** [April 2, 2019, 9:27pm UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/2 "2019-04-02T21:27:45Z")

</div>

Same problem with Xcode 10.2 and MacOS 10.14.4.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [April 3, 2019, 9:05am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/3 "2019-04-03T09:05:12Z")

</div>

Unfortunately this is a compatibility issue with the 10.14 SDK, we’re aware of it and fixing it is on our backlog but I’m afraid we can’t give an exact timeline of when it’ll be fixed. If you need to use the Projucer’s live-build engine you can force it to use an older, compatible SDK by downloading an older version of Xcode and moving this to `Applications/Xcode` and renaming Xcode 10 to something like `Applications/Xcode10`. Then you can continue to use Xcode 10 for your development and the Projucer will use the older SDK for the live-build engine.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [April 4, 2019, 10:49am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/4 "2019-04-04T10:49:51Z")

</div>

OK, this should be fixed in [43f71da](https://github.com/WeAreROLI/JUCE/commit/43f71daa95ad63e1a1901284be77d8ea3ebce8b8). You’ll need to rebuild the Projucer from the `develop` branch.

---

<div class="post-metadata">

**Author:** ![ScytheFuneral](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@ScytheFuneral](https://forum.juce.com/u/ScytheFuneral)\
**Post date:** [April 9, 2019, 11:50pm UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/5 "2019-04-09T23:50:33Z")

</div>

Thanks you so much!!! I’m working on a project for school.

---

<div class="post-metadata">

**Author:** ![obb64](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/obb64/32/5545_2.png) [@obb64](https://forum.juce.com/u/obb64)\
**Post date:** [April 11, 2019, 1:16pm UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/6 "2019-04-11T13:16:47Z")

</div>

Thank You. The develop branch works.

But if I create a Juce Gui Application and add a class which contains `#include <iostream>`

```auto
// Test.h

#pragma once
#include <iostream>

class Test {
public:
    Test() {
        std::cout << "New Test " << std::endl ;
    }
};

```

then I get the error

```auto
error: .../Test.h: expected '(' for function-style cast or type construction
error:.../Test.h: no member named ' __search' in namespace 'std::__ 1'

```

Highlighted line in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm

```auto
...
return _VSTD::__search<typename add_lvalue_reference<_BinaryPredicate>::type>
...

```

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [April 13, 2019, 6:52pm UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/7 "2019-04-13T18:52:13Z")

</div>

Has JUCE been included before you’ve included `<iostream>`? ie. is `#include "../JuceLibraryCode/JuceHeader.h"` somewhere before the `#include` for the file that you posted?

---

<div class="post-metadata">

**Author:** ![obb64](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/obb64/32/5545_2.png) [@obb64](https://forum.juce.com/u/obb64)\
**Post date:** [April 21, 2019, 9:33am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/8 "2019-04-21T09:33:30Z")

</div>

This is the MainComponent.h file.

```auto
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
#include "Test.h"

class MainComponent : public Component {
public:
	MainComponent() {
		setSize(600, 400);
		Test test1 = Test();
	}

private:
	JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainComponent)
};

```

The only way to make it work ist to include JuceHeader.h in the Test.h file.  
But Test.h could be a juce independent Class where I don’t want JuceHeader.h included.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [April 23, 2019, 9:49am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/9 "2019-04-23T09:49:35Z")

</div>

That should work without having to include `JuceHeader.h` directly in `Test.h` as it’s included before in `MainComponent.h`. For the next release we’ll work on getting the fix included in the live-build DLL itself so this won’t be necessary, but for now you can either use the workaround I posted above, or just make sure that `JuceHeader.h` is included in all your code (which it should be if you want to use JUCE classes anyway).

---

<div class="post-metadata">

**Author:** ![Borogove](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/borogove/32/320_2.png) [@Borogove](https://forum.juce.com/u/Borogove)\
**Post date:** [June 26, 2019, 3:38am UTC](https://forum.juce.com/t/all-projects-have-errors-in-the-producer-but-build-in-xcode/32628/10 "2019-06-26T03:38:27Z")

</div>

Any idea when this will be fixed in the downloadable release? As it is, this is the new JUCE user experience on macOS. Projucer 5.4.3, macOS 10.14.4, XCode 10.2.1.
