I encountered the same error when I created and added a new target to my project (the goal of a remote maintenance notification) and incorrectly added the target definition to my subfile.
I followed the instructions of a third-party notification platform, and they did not know where to place the definition of the goal. Initially, I added a goal definition to my main goal, much like a Tests goal definition. This error led me to this error.
I moved the definition of the remote service notification target beyond my primary goal to the end of my subfile, and this solved my problem.
drquiz
source share