Change settings of XCode project generated by project tool
-
Hi,
Is there a way to customize the below settings in projectdefinition.txt when a mac project is generated by project tool?
- frameworks/settings/compiler.xcconfig: OTHER_CPLUSPLUSFLAGS. I'd like to use a different set of flags.
- frameworks/settings/debugbase.xcconfig, frameworks/settings/releasebase.xcconfig: ARCHS, MACOSX_DEPLOYMENT_TARGET, MACOSX_DEPLOYMENT_TARGET[arch=arm64]. I'd like to remove x86_84 arch, and change the deployment_target to a different version.
Thank you!
-
Hey @BruceC,
Thank you for reaching out to us. No, there are no (public) project tool settings which would allow you to do that. Modifying the files which are used by the project tool to assemble the final solution is the only way.
Just as the last time we talked about this, I would like to point out two things:
- What you are doing there is out of scope of support. That does not mean necessarily that it is bad but we cannot help you much with this. This also means you further and further deviate from the build environment we do support, ending up with incompatible binaries in the worst case. That is why we warn about this in multiple places in the documentation.
Getting Started with the Cinema 4D C++ SDK on macOS: Building the SDK:
The project tool is the only supported way to generate solutions for the C++ SDK. Custom build configurations or manual changes to the solution files are not supported and can lead to issues when building the SDK.
Changing the generated project files (editing compiler or linker settings etc.) may result in compile errors or incompatible plugins.
- We are currently in the process of moving away from the project tool. I cannot give a precise ETA when this will happen, but it likely will happen within the next twelve months. When you deviate too far from the vanilla SDK solution, this might cause further problems for you. On MacOS we will for example for sure will leave the so-called Legacy Build System of Xcode behind, as this is one of the primary reasons why we are moving away from the project tool. The new build-automation tool we are going to use is going to be
CMake
.
Cheers,
Ferdinand -
Thank you, @f8bet00net.
Yeah, I remember I had gone though this with you before. But recently, we found there is a way to customize TreatSpecificWarningsAsErrors settings in projectdefinition.txt for MSVCBase.props for windows VS projects.
So I asked this question again just to double confirm if we could do similar things for MacOS XCode settings.
Thanks for confirming this is not possible on MacOS.