This will determine if the current application (or any bundle defined as mainBundle) uses a common architecture with the target package. Requires Mac OS X 10.5 for the NSBundle method executableArchitectures.
NSArray *targetArch = p[NSBundle bundleWithPath:@"/path/to/bundle.bundle"] executableArchitectures];
NSArray *thisArch = [[NSBundle mainBundle] executableArchitectures];
if ([targetArch firstObjectInCommonWithArray:thisArch])
{
}
source
share