64-bit-compatible iOS targets don't build in Xcode 4
64-bit-compatible iOS targets don't build in Xcode 4
- Subject: 64-bit-compatible iOS targets don't build in Xcode 4
- From: Jens Alfke <email@hidden>
- Date: Wed, 18 Sep 2013 16:20:59 -0700
So, it appears that an Xcode project can either support 64-bit iOS, or work in Xcode 4, but *not* both. This sucks.
The problem is that, once you change an iOS target’s Architecture setting to “Standard architectures (including 64-bit)”, the internal value becomes “$(ARCHS_STANDARD_INCLUDING_64_BIT)”, but that environment variable isn’t defined in Xcode 4, so the value is treated as empty. And then you get a build error:
> No architectures to compile for (ARCHS=, VALID_ARCHS=armv7 armv7s).
I just discovered this after committing a change to add 64-bit support for Couchbase Lite, and then getting the above error from our buildbot which is still on Xcode 4.6.
As I said, this sucks, because this project is a library, not an app, and it needs to produce 64-bit libraries to support apps using it that want to go 64-bit. But it would sure be nice if everyone using it didn’t suddenly have to upgrade to Xcode 5 … although that’s the least-bad solution I can see. (The next worse solution is to duplicate the target and have a separate 32-bit and 64-bit target. Which then have to be manually kept in sync any time the target settings or file list change; yuck.)
(I’m kicking myself now for not leaping to try the 64-bit stuff last week right after it was announced at the iPhone 5s intro, but in my defense we were busy with trying to get a beta release of our own out the door and preparing for a conference. :-p And in any case, by the time we even knew about 64-bit support in iOS, Xcode 5 was basically GM already, giving us no chance to report issues with that. Yay again for Apple secrecy.)
—Jens
PS: Now I’m wondering if I could add a custom variable “ARCHS_STANDARD_INCLUDING_64_BIT” to the build settings and have it take effect in Xcode 4…
_______________________________________________
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