How to enable Rez in Xcode 12.2

The Adobe C++ plugin SDK are still using Rez to compile resources on macOS and winOS. But Rez build settings are missing from my newly created project. They exist in a legacy project. How does one re-enable this functionality. I don't know that Apple has offered an alternative to file-based resource generation, so removing this functionality seems premature.

The help and man pages on Rez are missing a lot. What to supply for arch (x86_64)? Why do I have to supply the framework path to Xcode to find Carbon.r and CoreServices.r? Rez itself provides only the barest of command line usage details.

For example, I couldn't get .r includes to work with -i or -s, but it works with -I. But the resulting .rsrc file that is generated by my command line efforts is 0 sized. The one built from Xcode is 1.5KB (correct).

Also SIP was blocking all attempts to debug these plugins, but a workaround was found for that.

This was the CMake command to build with Rez. Finally got it to generate a non-zero file. The -useDF to use the data fork was important.

I guess will move to command line Rez builds instead, but the plugin isn't recognized like it is when Xcode processes the .r file. That may have other causes.

Code Block
add_custom_command(TARGET ${myTargetApp} PRE_BUILD
DEPENDS ${MY_SOURCE_DIR}/MyResource.r
COMMAND ${rezCompiler}
# several .r are located across the build
-I ${MY_SOURCE_DIR}/resources/
-arch x86_64
# use the datafork
-useDF
# needs to specify for Carbon.r and CoreServices.r?
#-F Carbon
#-F CoreServices
# where to find framework files
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/
-o "${MY_SOURCE_DIR}/${myTargetApp}.rsrc"
${MY_SOURCE_DIR}/MyResource.r
)

How to enable Rez in Xcode 12.2
 
 
Q