Projucer on Mac fails in XCode on Project porting

I wrote a Projucer Project on Windows with Visual Studio and wanted to continue on Mac with XCode. So I created a new Project on Mac in Projucer as Audio Plugin and copied all File Contents and Folders inside of Projucer. When compiling, XCode shows many Errors inside the Juce Modules. Some Examples:

In file included from /Users/deek/Data/Work/Coding/Juce/EightXCode/JuceLibraryCode/include_juce_audio_plugin_client_utils.cpp:8:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_utils.cpp:26:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp:32:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h:26:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client.h:53:
In file included from /Users/deek/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56:
In file included from /Users/deek/JUCE/modules/juce_graphics/juce_graphics.h:134:
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:47:5: error: cannot combine with previous 'type-name' declaration specifier
    enum FontStyleFlags
    ^
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:43:8: warning: declaration does not declare anything [-Wmissing-declarations]
public:juce::Font //==============================================================================
       ^~~~~~~~~~
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:64:16: error: non-friend class member 'Fontat' cannot have a qualified name
    Font juce::Fontat fontHeight, int styleFlags = plain);
         ~~~~~~^
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:64:16: error: field has incomplete type 'juce::Font'
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:41:17: note: definition of 'juce::Font' is not complete until the closing '}'
class JUCE_API  Font  final
                ^
/Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h:64:22: error: expected ';' at end of declaration list
    Font juce::Fontat fontHeight, int styleFlags = plain);
                     ^
                     ;
In file included from /Users/deek/Data/Work/Coding/Juce/EightXCode/JuceLibraryCode/include_juce_audio_plugin_client_utils.cpp:8:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_utils.cpp:26:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/utility/juce_PluginUtilities.cpp:32:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h:26:
In file included from /Users/deek/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client.h:53:
In file included from /Users/deek/JUCE/modules/juce_gui_basics/juce_gui_basics.h:56:
In file included from /Users/deek/JUCE/modules/juce_graphics/juce_graphics.h:143:
/Users/deek/JUCE/modules/juce_graphics/native/juce_RenderingHelpers.h:2508:13: error: cannot initialize object parameter of type 'juce::RenderingHelpers::SavedStateBase<juce::RenderingHelpers::SoftwareRendererSavedState>' with an expression of type 'juce::RenderingHelpers::SoftwareRendererSavedState'
            s->cloneClipIfMultiplyReferenced();
            ^
/Users/deek/JUCE/modules/juce_graphics/native/juce_RenderingHelpers.h:2573:21: error: cannot initialize object parameter of type 'juce::RenderingHelpers::SavedStateBase<juce::RenderingHelpers::SoftwareRendererSavedState>' with an expression of type 'juce::RenderingHelpers::SoftwareRendererSavedState'
                    fillShape (*new EdgeTableRegionType (*et), false);
                    ^~~~~~~~~

Is it possible to port a Windows Visual Studio Projucer Project to Mac XCode ?

These errors seem to come from undesired modifications to /Users/deek/JUCE/modules/juce_graphics/fonts/juce_Font.h.

For instance, on line 64, it shouldn’t be

Font juce::Fontat fontHeight, int styleFlags = plain);

but

Font (float fontHeight, int styleFlags = plain);

Be careful about Xcode attempting to auto-fix your code.

I hope this helps!

Thanks Alain! I wasn’t aware that XCode auto fixed something. I will recopy the original Code. That should fix it. Thanks a lot!!