• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Release Build PPC Link Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Release Build PPC Link Error


  • Subject: Re: Release Build PPC Link Error
  • From: Graham Cox <email@hidden>
  • Date: Tue, 29 Mar 2011 11:04:40 +1100

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@hidden)

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:

This email sent to email@hidden

References: 
 >Release Build PPC Link Error (From: Ian was here <email@hidden>)

  • Prev by Date: Release Build PPC Link Error
  • Next by Date: Re: Release Build PPC Link Error
  • Previous by thread: Release Build PPC Link Error
  • Next by thread: Re: Release Build PPC Link Error
  • Index(es):
    • Date
    • Thread