Xcode building to both architectures when I only want one?

I have a fairly simple (one source file) command line application in C which was written for Linux but ought to run in OSX as long as I can provide its dependencies (some GNU libraries). I compiled/installed the GNU libraries it needed using Fink. Fink only builds Intel binaries, since I am using an Intel Mac. Because of this, I need Xcode to only try to compile my little application as an Intel (i386) binary, and not try to make a PPC binary or a Universal binary.
I opened "Project" -> "Edit Project Settings..." -> clicked on the "Build" tab and went to the "Architectures" setting. I made sure it said only "i386" and did a Clean and then another Build. However I can clearly see in the build log that Xcode is invoking the compiler and linker twice each -- once for each CPU architecture. After compiling the PPC version of my code it will fail to link, because there are no PPC versions of its dependencies (the GNU libraries).
Why is Xcode doing this, and is there a second setting that I haven't found, to make it ONLY build an Intel binary?

I tried your experiment and saw a similar problem... I'm on a PPC Mac though. Initially the standard tool was building a Universal Binary even though the Project Info -> Build -> Architectures was just set to "ppc".
So first I tried going to the "General" pane of the Project Info window and switching the pop-up at "Cross-Develop Using Target SDK:" from "Mac OS X 10.4 (Universal)" to "Current Mac OS"... That still tried to build a universal binary only this time I got several errors on the Intel link phase because the "Current OS" SDK contained no Intel libraries.
However there appears to be a different Architectures setting on a per Target basis.
In your "Groups & Files" pane expand the "Targets" group and select your target. Then click the "Info" button in the toolbar (or select "File -> Get Info") to get to the Target Info window. Select the "Build" pane... On my machine the "Architectures" setting here was set to both "ppc" and "i386". Turning off the "i386" here fixed my problem and allowed it to build only for ppc.
I'm not sure how these Target settings roll up into what you see in the Project settings. But it does seem kind of odd.
Steve

Similar Messages

  • Regular tv shows and HD both load and I only want one!

    Seems like sometimes when I download a tv show I will get the regular version and the HD version. I only want the regular version since it's cheaper so I delete the HD version but they are still in my Available Downloads list and every time I try to delete them, they come back! And every time I buy something new...they show up and start downloading again. How can I delete these HD duplicates of shows I already have once and for all??

    Im not sure how to delete them, but there is a simple solution to not getting them at all:
    When you download an HD version of something (TV show, Movie) you get BOTH the HD version, and then you get the STANDARD version free. Sort of like a bonus to put it on your iPod (if you have one) since they won't play HD versions.
    Now, if they are still appearing in your queue to download, I would just let them download then delete the files. Either way, you paid for them.
    On that note, though, you can send the iTunes folk an email saying that you downloaded the HD by mistake and they may credit your account back. That can be done by going into your account and using the "Report Problem" service.
    blakewt

  • I had gotten two copies of Adobe Font Folio, when I only wanted one. How do I return it?

    Somehow, I was given two confirmation numbers for Adobe Font Folio, and was charged for both. How do I return one?

    You need to contact Adobe Customer Support directly assuming you purchased directly from Adobe. Otherwise, contact the authorized Adobe reseller from whom you made the purchase.
                - Dov

  • Canon MX310 Printing two copies when I only want one

    Hello-
    Whenever I print a document to the Canon printer, via printer sharing on my network, it prints two copies. Number of copies is always set to 1, but it prints two.
    It's crazy! Any ideas?
    Thank you

    I would suspect that it is something in the printer sharing, like two computers set to share it, and so the print job is sent to both of them. But you should try the usual suspects: Turn off printer sharing, reset the printing system on all computers, then add the printer on the sharing computer, turn on printer sharing on it, and then see if it still happens.

  • FF always closes two tabs when I only want ONE closed!

    Every time I want to close a single tab, Firefox states 'you are about to close two tabs'. I DO NOT WANT to close two, only one! Is there any way to set this? it is very irritating.
    Thank you.
    Also, below my question here I am about to post, you have my installed plug-ins listed. WHY are some of them underlined in red??

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    Type '''about:config''' in the Location bar and hit '''''Enter'''''.
    ''Accept the warning.''
    '''browser.tabs.closeWindowWithLastTab'''
    double-click to toggle to '''false''' and then restart Firefox.
    Now if you close the last tab the window (or Firefox) won't close, but a New Tab will be there.

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Why does Captivate have to convert all the PPTX slides when I only want two?

    Hello friendly people : ) ,
    I often import Power Point slides into my Captivate projets.  Even when I only want two slides from a large Power Point presentation, Captivate converts every slide, and this of course, take quite a bit of time.  Is there any way around this? 
    Thank you.
    Ryan

    Hi Ryan,
    How Captivate does import is, it fetches all the PPT/PPTX source content in the import process and then produces the Selection box where you can choose what all slide you want to bring in and then on proceeding it converts those slides to Cp compatible Slide structure and introduces them at the stated slide location.
    What, I understand (Looking at your other thread) you do not link and re-import all slides after making any small change. So, if these modifications are being made by same individual on same machine, he can simply right click and edit the presentation from PowerPoint and save it to bring all the changes (this can be done without switching to linked in library).
    Thanks,
    Anjaneai

  • I created a watermark in LR4 and it applied to all photos I only wanted one photo marked.

    I created a watermark in LR4 and it applied to all photos I only wanted one photo marked. How can I keep it from adding the watermark to all of my photos?
    I want to be able to add them manually to each photo in a location that I chose so the photo is still visably appealing.
    Thanks!

    I think it's a feature of the Web Module, since it is assumed that you would want the watermark on all images of a web-gallery.
    But, in this context (as always is the case in Lr) you have to take into consideration of how Lr works. Lr never ever changes your originals.
    "Watermark applied" means only that there is a set of data in the Lr catalog that says something like "when uploading the web-gallery the watermark has to be applied to the uploaded JPGs".
    Nothing has been done to your originals - even though they are displayed in te Web Module with the watermark. The orginals are ever unchanged.
    If you go back to the Library Module (within the same Collection) you won't see a watermark.

  • Only want one image version in MobileMe album

    When I add a version to a MobileMe album, all of the versions are added to the album. When I delete the other versions from the MobileMe album, those versions are deleted from my library.
    I only want one version added to the MobileMe album... and the other versions to remain in my album.
    Any ideas?
    Thanks!

    Within Aperture you have Images, which are constructed on-the-fly from two files (the Master and the Version).  You get an image-format file _only_ when you export an Image.  You select the file name (usually a scheme) when you create an image-format file (that is, when you export).  Look under "Aperture→Presets→File Naming" for built-in Presets.  You can, of course, create your own or customize any provided.
    The Preset is applied to only the file newly created by your "export" command.  It is not applied to the Image in Aperture (unless you rename your Versions or your Masters).

  • I only want one app for now

    I currrently have Adobe Creative Cloud and only want one app for now which is Photoshop .... I accidentally installed Lightroom, Bridge CC, Exchange Panel, Extendscript toolkit, Extension manager, touch app plugins from Creative Cloud and would like to uninstall these apps until I have a full understanding of the Creative Cloud. 
    I pay monthly for membership and do not want to uninstall the Creative Cloud.
    Please advise on how to uninstall these other apps.
    Thanks.

    Hi Margaret,
    Please use the cleaner tool to remove the app that you would like to uninstall:
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Choose the best option as per your decision.
    Regards,
    Rajshree

  • I accidentally pressed download to the whole album but I only wanted one song??? Help please ??

    I was on iTunes on my iPhone and I accidentally pressed the download for the whole album! But I only want ONE song!! Of course it's one of those DJ songs where all 10 songs the same. ( who wants all of those) . Now my whole iTunes card is gone too! Please is there a way to fix this!! Ill never buy music on my phone again!

    Actually most of the album is paused in my download box if that helps??

  • [SOLVED] Building to both architectures?

    Hello,
    I was just wondering if it was possible to build to both i386 and x86_64 from a 64-bit machine, and if so, how? I have tried changing my makepkg configs and PKGBUILD files to build to 'any' architecture but that causes alot of problems...
    Thanks.
    Last edited by Ubuntuz (2013-02-10 16:16:22)

    Scimmia wrote:https://wiki.archlinux.org/index.php/De … ean_Chroot
    Thanks for the supernaturally fast reply! However, would you be able to dumb it down a bit for me? I'm finding some of these wiki articles tricky to understand...
    EDIT: If I just change the PKGBUILD $arch to " 'i386', 'x86_64' " and change the makepkg config to i386 and x86_64 as I need to, would these properly compile the package for each architecture? Or are other steps needed?
    Last edited by Ubuntuz (2013-02-10 16:06:01)

  • When sending email Apple Mail is sending from both accounts instead of only the one I send it from

    I have 2 mail accounts, one for me and one for my wife. When I now send mail it is being sent from both accounts instead of just the one it was sent from. How do I stop this and why is it happening? Nothing new has occurred and all updatees are current.

    Both accounts are Gmail accounts too. FYI

  • I am trying to restore my old Macbook Pro data using Time Machine on a new Mackbook Air from external hard drive, but when I install I get two different loggin accounts and I only want one loggin account

    I am trying to restore my old Macbook Pro data using Time Machine to a new Macbook Air from an external hard drive, but when I restore I get two diferrent loggin accounts and I only wnat one loggin account to access all my data/files?

    This web site might answer all of your Time machine questions:
    http://pondini.org/OSX/Home.html
    Ciao.

Maybe you are looking for

  • Itunes store does not open, or if it opens I cannot search anything. Win 7 home premium 64 bit.

    Well, this has been going on for about a year.  Itunes store gets 60% loaded and stalls.  The new user acct fix does not work, the admin netsh winsock reset, does not work. Stoping Apple mobile device does not work. Uninstalling Bonjour, Mobile, supp

  • FLV. not working in SWF within HTML page

    I have created a SWF presentation which contains several videos as FLVs. The videos are uploaded to a folder on the clients server. The exported SWF and HTML files of the presentations worked perfectly when hosted on my local machine but when sent to

  • Name Pattern Matching

    I have a rough understanding of regular expressions and an even rougher understanding of soundex, so I am aware that there are some powerful tools for matching strings out there. My specific problem is that we are looking to build a name matching ser

  • Loading movie clip to stage with button click AS3

    I'm trying to figure out how to load a movie clip to the stage with a button click and have the movieclip close again using a close button. Does anyone have a step by step on how to do this or links to some tutorials. Below is an example of what I'm

  • 2 questions - exp/imp and coltype

    I have two questions - both unrelated : (Oracle 9.2.0.5 running on AIX 5.3) 1. I did a schema export in database DB1 of a user USR1 that has a bunch of tables with data. Some of the tables are in tablespace TS1 whereas some are in TS2. Export is succ