Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Change settings of XCode project generated by project tool

    Cinema 4D SDK
    c++ macos
    2
    3
    442
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BruceC
      last edited by

      Hi,

      Is there a way to customize the below settings in projectdefinition.txt when a mac project is generated by project tool?

      1. frameworks/settings/compiler.xcconfig: OTHER_CPLUSPLUSFLAGS. I'd like to use a different set of flags.
      2. 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!

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @BruceC
        last edited by ferdinand

        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:

        1. 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.

        Project Tool: About:

        Changing the generated project files (editing compiler or linker settings etc.) may result in compile errors or incompatible plugins.

        1. 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

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • B
          BruceC
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post