How do I add PPC/PPC64 support back to Xcode 4.2 under Lion?

后端 未结 1 908
[愿得一人]
[愿得一人] 2021-02-02 14:51

I have a Lion (10.7.1) system on which I installed Xcode 4.2. Suppose I have a simple C program helloWorld.c as follows:

#include 
ma         


        
1条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 15:24

    If you perform a classical install of Xcode 3.2.6 on Lion, the Xcode toolset is disabled and is not installed. That's why the Xcode3/usr/bin does not exists.

    I suggest you to read the following posts (read both of them before going further). They describe a trick to fool the installer into installing everything.

    • Installing Xcode 3.2.6 On Lion
    • Installing Xcode 3.2.6 On Lion Redux

    Then, you can apply the trick from the SO entry for restoring PPC support in Xcode.

    Note: I have not tested the steps above, but I will be glad to hear your feedback on it. Hope it helps.

    Edit 04 Sep. 2011: I have managed to get my hands on a Lion machine to make some experiments and got some results. I have gathered them on my blog.

    0 讨论(0)
提交回复
热议问题