Quick Tip: Compiling for Tiger on Snow Leopard

 

Just to save someone 3-5 minutes of time, if you install the 10.4u SDK to target Tiger machines with Xcode 3.2 (Snow Leopard), you will have to change a build setting to get Xcode to compile.

In the settings for your target, change the compiler option from “System Default – GCC 4.2″ to “GCC 4.0″. Then the error message will go away and you can build for Tiger.

Comments (6) Leave a Comment
  1. Dorian September 9th, 2009 at 18:16 | #1

    However, it won’t compile if you build it as a 64-bit Universal. It has to be 32-bit Universal :)

  2. Matt September 9th, 2009 at 18:50 | #2

    Also very noteworthy :)

  3. Markus September 12th, 2009 at 07:49 | #3

    My AppleScript Studio application still won’t run on Tiger when compiled on Snow Leopard:
    * 10.4 SDK installed
    * GCC 4.0
    * 32/64 bit Universal
    * Base SDK 10.4
    Anyone knows what is missing?

  4. Matt September 12th, 2009 at 08:14 | #4

    @Markus

    Sounds like everything is in place, but I’m not familiar with AppleScript Studio.

    However, I did have a lot of trouble with an AppleScript on Tiger and Snow Leopard both, which I wrote a few years ago. I struggled getting it to run on Snow Leopard, and eventually got it working flawless by checking the “Open in 32-bit mode” from the Get Info window. I can’t remember if that was before or after I had made a small edit to the script.

    It was very flaky on Tiger after that as well, as I shared it with a colleague. And I was also trying to whip up an Automator workflow, which would not run on Tiger after I was finished. Not sure if I used an action that wasn’t available on Tiger or if Tiger just won’t run newer Automator workflows.

    Let us know if you do get it working and what steps you had to take to get it there.

  5. Markus September 13th, 2009 at 03:38 | #5

    For the records: I solved this issue by setting up two different targets.
    More information on the Apple Script Studio mailing list here:
    http://lists.apple.com/archives/AppleScript-Studio/2009/Sep/msg00083.html

  6. Matt September 14th, 2009 at 00:27 | #6

    @Markus

    Thanks for the link to the solution, but it isn’t working for me. Proxy error. Hopefully will resolve itself and work later though.

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">
  1. No trackbacks yet.