Project generator fails on last nightly release macOS

This is the error that I receive when I create a new project.

Command failed: /bin/sh -c “/Users/macmini/Downloads/of_v20230406_osx_release/projectGenerator/projectGenerator.app/Contents/Resources/app/app/projectGenerator” -o"/Users/macmini/Documents/Source/Github/belsazar-photobooth/of_v0.11.2" -a" " -p"osx" -t"" “/Users/macmini/Downloads/of_v20230406_osx_release/myReasonableSketch”
libc++abi: terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: ‘<’

Hey @edapx - I noticed that the OF path ( -o flag ) is not set correctly. It points to a different location.
In the cog wheel / settings for PG you can change the default OF path ( should be the same OF location as your project ). In your case it should be -o"/Users/macmini/Downloads/of_v20230406_osx_release"

I wonder if that fixes it?

in case it helps the debugging:

that’s the symptom of an XML file (or some other thing starting with ‘<’) being passed to json::parse(); there’s been some changes in JSON vs XML handling of .xcodeproj/project.pbxproj.

so it seems a recent PG will not process an older OF tree (because the older Xcode template is XML) – if that’s the case it should check the file before attempting json::parse() (or try/catch) and report a more useful error such as “you are pointing to an older version of OF that this PG cannot handle”.

OR ideally make it so that it also handles XML as it used to (don’t know if that’s feasible, the coupling between PG version and OF version is beyond my grasp of the PG’s intricacies).