3 years, 1 month ago
via
Twitter
On an Intel Mac running OS X 10.5, how can I run the PowerPC blob of a Universal Binary from a shell script?
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$1 Answer
Force the translate of the binary. For instance to run Notebook as PPC application rather than native:
/usr/libexec/oah/translate /Applications/NoteBook.app/Contents/MacOS/NoteBook
The application needs to be universal:
file /Applications/NoteBook.app/Contents/MacOS/NoteBook
/usr/libexec/oah/translate /Applications/NoteBook.app/Contents/MacOS/NoteBook
The application needs to be universal:
file /Applications/NoteBook.app/Contents/MacOS/NoteBook
source(s):
Examples from running it on my MacBook Pro.
Examples from running it on my MacBook Pro.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$
Thanks for answering - that would work. I ended up using /usr/bin/arch which allows you to specify the architecture:
/usr/bin/arch -arch ${arch} ${universal-binary}
Where arch can be any of i386, ppc, ppc64 or x86_64.