Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
docs:programming:xcode:universal_binaries [2007/05/19 23:23] – billh | docs:programming:xcode:universal_binaries [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Universal Binaries ====== | ||
+ | ===== building for i386 and ppc ===== | ||
+ | * select your target, and Get Info -> build tab -> architectures, | ||
+ | * you can also type in the text field for manual entry - specific processors can be listed, such as i686, ppc750 (for a G3), ppc7400 (for a G4) etc... | ||
+ | * I assume that " | ||
+ | * make sure to do the same for the Project Info if you want future targets to be configured this way (I'm not sure if you could set this before you build any targets, and have the first target take the default project settings; either way, setting the target options always works) | ||
+ | |||
+ | ===== undefined symbols ===== | ||
+ | * project info -> general tab: in the Cross-Develop Using Target SDK pop-up menu, choose Mac OS X 10.4 (Universal) | ||
+ | * (manual) make sure the project info -> build tab -> SDK Path is: **/ | ||
+ | |||
+ | ===== Find out which architecture(s) a binary was compiled for ===== | ||
+ | * highlight the application icon, and use the Finder' | ||
+ | * in the terminal, navigate inside the application folder (.app) to Contents -> MacOS, and run the following command:< | ||
+ | lipo -info appname | ||
+ | </ | ||
+ | * you can also use the lipo tool to modify architectures in a package (remove unnecessary architectures to reduce application size, for example) | ||
+ | |||
+ | ===== External Links ===== | ||
+ | * http:// | ||
+ | * http:// |