Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    XCode again!

    General Discussion
    0
    6
    941
    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.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 07/02/2007 at 05:13, xxxxxxxx wrote:

      Hey,

      oh man, this XCode drives me nuts (maybe itยดs simply me). How can I debug my app? I created a new custom executable, linked that to my project and have set the executable path to the location of my generated .dylib (btw. how can I let XCode output the final .dylib into a different location?).

      XCode does give me the options of "Debug" and "Build and Debug" but of course when it tries to start it cannot because it cannot start the dylib and I cannot find any place to set the Cinema 4D path.

      And actually I have no clue how XCode handles the plugin debugging situation.

      So any help is very appreciated...Kuro ๐Ÿ˜„

      Thank you
      Samir

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 07/02/2007 at 19:12, xxxxxxxx wrote:

        Actually, I haven't done any debugging with XCode yet. As noted in the SDK Help forum, I just updated from 2.2.1 to 2.4.1 (and was met with the strangeness mentioned there). At least now it doesn't ask you to run 'ranlib' continuously.

        XCode is definitely frustrating. Don't EVER try to replace the api project with just the api lib! I found this out last night - you not only remove the project but all dependencies (i.e.: the compiler/linker settings drop back to defaults!). Luckily, I keep a backup of the project for just such special occassions! ๐Ÿ˜‰

        One thing is to make sure that the API project is set to Debug as default before doing a debug build. Don't know how to specify the application to launch when you are building a dylib for one.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 08/02/2007 at 04:42, xxxxxxxx wrote:

          Hey Rob,

          thanks for the info and tips. Yes, itยดs not yet the environment it should be I think. ๐Ÿ™‚

          I have already solved my problem but would still like to know how to correctly debug if somebody else may know.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 08/02/2007 at 09:34, xxxxxxxx wrote:

            Some more info.

            You can circumvent possible recompilation of the API project by adding the lib_api_release.a and lib_api_debug.a into your plugin's project. Uncheck the API project stuff so that you are only referencing one lib (at a time). Now you get the dependencies while never fearing recompilation of the API libs.

            So much for the fix to the problem linking the API lib. Every time I reopen my plugin project, the API project has defaulted back to Debug even though I'm loading the API project and setting the default to Release there directly. Not extremely annoying, but mildly.

            On running the debugger, have you checked out Apple and Google for possible answers. I usually haunt the MacOSX dev forums when something eludes me with CodeWarrior or XCode. I've found the latest batch of knowledgeable MacOS developers to be much friendlier and helpful than in the past - probably all of the new devs 'switching' over and porting has softened them up. ๐Ÿ˜‰

            Take care,

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 18/02/2007 at 23:26, xxxxxxxx wrote:

              Samir, try this:

              _Use the custom Executable part of xcode, put the host application there. (Right click on Executable -- > Add --> New Custom Executable)
              Then select this custom executable to be the default launched (Check the radio button).

              Put some breakpoint into your program.
              Run the Debugger_

              The 'host application' would be the Cinema 4D.app.

              Though I still don't know how you would copy the finished dylib to the correct location before the debug begins. That ought to be a doozy...

              Take care,

              1 Reply Last reply Reply Quote 0
              • H
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 19/02/2007 at 03:30, xxxxxxxx wrote:

                Hi Robert,

                thank you! However, I also tried that already. ๐Ÿ˜• I simply cannot find the final button to, as you correctly state, how to get the finished dylib replaced correctly.

                Iยดll report back when I find out ๐Ÿ™‚

                thx for the heads up!

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