> ## Topic

> Mac OS X - using Cg on Apple OS X

> ## Abstract

> The Cg runtime is available as a framework for Apple OS X versions 10.5 (Leopard) and onwards.

> ## Issues

> ## Apple App Store Deployment

> The Apple App store won't accept binaries that include Power PC support. It is necessary to remove the Power PC support from the Cg framework for App Store purposes.

> Using the Apple lipo tool manipulating universal files:

> 1. Check for Cg framework architecture support

>     $ lipo -i /Library/Frameworks/Cg.framework/Cg
>     Architectures in the fat file: /Library/Frameworks/Cg.framework/Cg are: ppc7400 i386 x86_64
>     $

> 2. Remove the ppc7400 support

>     $ lipo -remove ppc7400 /Library/Frameworks/Cg.framework/Cg -output Cg
>     $

> 3. Validate the result

>     $ lipo -i Cg
>     Architectures in the fat file: Cg are: i386 x86_64
>     $

> The resulting Intel-only Cg framework binary ought to be acceptable to the Apple App Store.

> ## See Also

> TBD