The Component Manager recognizes which architectures are supported by a component by looking at the 'thng' resource for the component, not the architecture of the file. You must specify the appropriate architectures in the 'thng' resource. To accomplish this, in the .r file where you define the 'thng' resource, modify your ComponentPlatformInfo array to look similar to the following:
#if defined(__ppc__) |
kMyComponentFlags, kMyCodeType, kMyCodeID, platformPowerPCNativeEntryPoint, |
#endif |
#if defined(__i386__) |
kMyComponentFlags, kMyCodeType, kMyCodeID, platformIA32NativeEntryPoint, |
#endif |
Then, rebuild your component. For details, see “Building a Universal Binary.”
Last updated: 2007-02-26