• 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: Universal Cocoa plug-in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal Cocoa plug-in


  • Subject: Re: Universal Cocoa plug-in
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 17 Feb 2006 21:45:38 -0800


On Feb 17, 2006, at 9:28 PM, Chuck Soper wrote:

I have a Cocoa plug-in for a Dashboard widget. Recently, I rebuilt it as a Universal Binary. Or, I thought I did. I changed the settings for the Deployment configuration for the project as follows:


Architectures: ppc i386

SDK Path: /Developer/SDKs/MacOSX10.4u.sdk


I re-built the plug-in, tested it on Intel and it ran fine. I thought that was it. At WWDC, I remember hearing that that ppc widget plug-ins didn't have access to Rosetta and wouldn't run on Intel-based Macs. Today, I did a 'Get Info' on the Unix Executable File within the widget plug-in bundle and discovered that it shows PowerPC not Universal.


I assumed that since I built my target using the Deployment configuration that it would reflect the 'Architectures' setting I had just made, but that wasn't the case. I had to change the 'Architectures' setting in the target as well. I thought the point of having a build configuration was to be able to change build settings in one place instead of having to change settings for every target. Is that correct?


I believe that I have it building correctly yet, now I'm not sure if my widget runs natively on Intel or not.  more testing...


If you'd already had Architectures set in the Deployment configuration of the target, that setting overrides whatever you did at the project level.

To avoid this, find Project > Edit Active Target > Build tab, select Architectures, and either
a) delete it, allowing the project setting to "shine through" or
b) set it to "ppc i386" explicitly.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Universal Cocoa plug-in
      • From: Chuck Soper <email@hidden>
References: 
 >Universal Cocoa plug-in (From: Chuck Soper <email@hidden>)

  • Prev by Date: Universal Cocoa plug-in
  • Next by Date: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Previous by thread: Universal Cocoa plug-in
  • Next by thread: Re: Universal Cocoa plug-in
  • Index(es):
    • Date
    • Thread