• 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: How to build a project with 32-bit and 64-bit run destinations except for one 32-bit only target [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build a project with 32-bit and 64-bit run destinations except for one 32-bit only target [SOLVED]


  • Subject: Re: How to build a project with 32-bit and 64-bit run destinations except for one 32-bit only target [SOLVED]
  • From: João Varela <email@hidden>
  • Date: Thu, 22 Aug 2013 13:04:58 +0100
  • Thread-topic: How to build a project with 32-bit and 64-bit run destinations except for one 32-bit only target [SOLVED]

After some advice from people like Nick and Kevin, I managed get
everything to work properly. For those who will be in my predicament the
tricks are:

1) Use the 32-bit destination to build your product (not the 64-bit)
2) Include all the dependent targets, including the 32-bit-only target,
that your main app depend upon on the target dependencies in Build Phases
3) On the Build Settings of your 32-bit only target make sure to modify
TWO settings:
Architectures = 32-bit Intel
Valid Architectures = i386

(on the remaining targets use the OS X default)

4) And now is the neat trick that made or broke everything: in the build
setting "Build Active Architectures Only" must be NO, otherwise you will
have a link error like I did.

Hope this helps someone that may get the same problem as I did.

J.V.


On 8/21/13 8:00 PM, "email@hidden"
<email@hidden> wrote:

>On Aug 20, 2013, at 3:40 PM, João Varela <email@hidden> wrote:
>
>>>If they're in the same project, then you set the project default to make
>>>Release configuration builds for both architectures, and change the
>>>helper app target to make both Debug and Release configuration builds
>>>for
>>>32-bit only.
>>That does not work. I did just that. Even though I only added the 32-bit
>>Intel architecture to the target of the 32-bit only helper, a 64-bit run
>>destination for this helper was created. When I try to build the 64-bit
>>arch of my main app, which includes all the helper targets as
>>dependencies, I get a build error when Xcode tries to link non-existing
>>code objects (which were never compiled) of this 32-bit only helper. It's
>>unfortunate you cannot exclude a target from a given arch when you try to
>>build and link, or so it seems.
>>Any other ideas?
>
>You need to re-check the build settings on that helper target. We have a
>similar situation here, where we have a 32-bit helper task that is
>launched by a 64-bit parent app, and the helper task's architectures for
>all build configurations are set to "32-bit Intel" in Xcode, and building
>for the active architecture only is disabled in all build configurations
>(this setting should never be turned on in Release builds). This works
>for us; when the helper task is built as a dependency of the parent app,
>it is built as 32-bit only.
>
>Nick Zitzmann
><http://www.chronosnet.com/>



 _______________________________________________
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


  • Prev by Date: Re: installing and updating Xcode
  • Next by Date: Xcode 4.6.3 and storyboard zooming
  • Previous by thread: Suggestions on Configuring Development Environment and Xcode Preferences
  • Next by thread: Xcode 4.6.3 and storyboard zooming
  • Index(es):
    • Date
    • Thread