Ok, let’s have a look.
First question, are you using the Projucer or cmake for your project?
In Projucer you should go back in the Projucer and make sure the magic.xml file is added to the resources as Binary Resource, NOT xcode resource.
Then click “Save Project”. This will regenerate the BinaryData.h and BinaryData.cpp files so they will include the magic.xml file that you created with the PGM and added to the BinaryData.
Now build the project again. The BinaryData should contain now the magic_xml and magic_xmlSize.
If you use cmake make sure the magic_xml file is added in the CMakeLists.txt file. The change of the CMakeFiles.txt should trigger a recreation ofthe project without leaving Xcode.
Let me know if that solves the issue.
If not please include a few details about your build setup (IDE etc.)…