On 29/03/2011, at 10:58 AM, Ian was here wrote:

> I created a framework and have been using it successfully until I upgraded to 
> XCode 3.2.6. Whenever I attempt to do a release build, I get the following 
> link error:
> 
> "In myFamework/build/Release/myFramework.framework/myFramework, file was 
> built for i386 which is not the architecture being linked (ppc)"
> 
> The release build is set to create a universal binary (ppc/i386).
> 
> Has anyone else ran into this problem?


Yes. The framework is not set to create a universal binary, so when the app 
tries to build the PPC part, it can't link to the framework, because it has no 
PPC code to link to.

Simple fix - change the build settings for the framework so that it is creating 
a universal framework.

Note that if you eventually expect to release to the App Store, you can't 
include PPC code, even in a linked framework. I mention this because it's 
becoming more common now to find frameworks with the PPC build suppressed 
because of this, and so this error is becoming more common.

--Graham


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to