Unable to run a new GUI project in Xcode

Hi, I just downloaded JUCE and got started through projucer and created a new GUI project which says “Hello World” program. But I’m unable to run it due to “Use of undeclared identifier setSize/juce/getLookAndFeel”

I’'m new to the c++ and juce framework from js background. Thanks for your help in advance.

In the projucer settings you can set paths to the juce directory and the modules. My guess is those paths are wrong.

I have set the path in projucer as below. its where I put the downloaded folder in my mac

Change the Add "using namespace juce" to JuceHeader.h option in the project settings?

This option was disabled and I have enabled it now but still the sample doesn’t run on xcode.

Can you show your MainComponent.h?

sure, thanks for helping with this so far @ImJimmi . I didn’t change anything from the boilerplate code generated from projucer yet.

#pragma once

#include <JuceHeader.h>

//==============================================================================
/*
    This component lives inside our window, and this is where you should put all
    your controls and content.
*/
class MainComponent  : public juce::Component
{
public:
    //==============================================================================
    MainComponent();
    ~MainComponent() override;

    //==============================================================================
    void paint (juce::Graphics&) override;
    void resized() override;

private:
    //==============================================================================
    // Your private member variables go here...


    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainComponent)
};

He meant the path to where your project expects to find the JUCE framework.
Under the Projucer Menu, Global Paths:

Likely this is not set correctly because the errors indicate that the Juce headers are not being located.

Hi, I created a project prior to getting this path right, so even after I fixed the path the created project doesn’t build. But now I just created a new GUI project which simply works.

Thanks everyone for helping out here.