• 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: 64-bit-compatible iOS targets don't build in Xcode 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64-bit-compatible iOS targets don't build in Xcode 4


  • Subject: Re: 64-bit-compatible iOS targets don't build in Xcode 4
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 18 Sep 2013 22:01:29 -0700

On Sep 18, 2013, at 4:20 PM, Jens Alfke <email@hidden> wrote:

> So, it appears that an Xcode project can either support 64-bit iOS, or work in Xcode 4, but *not* both.

You can, you just have to take into account that Xcode 4 did not know about 64-bit iOS.

We have build settings like XCODE_VERSION_MAJOR, XCODE_VERSION_MINOR, and XCODE_VERSION_ACTUAL for just this reason. (These build settings represent x, x.y, and x.y.z versions respectively, e.g. for Xcode 4.6.3 they should be 0400, 0460, and 0463.)

You can leverage these with build setting expansion to construct a set of build settings like so that will build for ARCHS_STANDARD on Xcode 4.x and ARCHS_STANDARD_INCLUDING_64_BIT on Xcode 5.0 and later:

ARCHS = ARCHS_$(XCODE_VERSION_MAJOR)
ARCHS_0500 = $(ARCHS_STANDARD_INCLUDING_64_BIT)
ARCHS_0400 = $(ARCHS_STANDARD)

This will probably look a little familiar to people who were around during OS X’s 64-bit transition. Back then it was used so developers could construct Xcode projects that would build for 64-bit and 32-bit on 10.5 or later with Xcode 3.0, and build for 32-bit on 10.4 with Xcode 2.5.

Hope this helps!

  -- 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: 64-bit-compatible iOS targets don't build in Xcode 4
      • From: Jens Alfke <email@hidden>
References: 
 >64-bit-compatible iOS targets don't build in Xcode 4 (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Xcode downloads failing
  • Next by Date: CGContextConcatCTM: invalid context 0x0. How to fix?
  • Previous by thread: Re: 64-bit-compatible iOS targets don't build in Xcode 4
  • Next by thread: Re: 64-bit-compatible iOS targets don't build in Xcode 4
  • Index(es):
    • Date
    • Thread