abwaters
abwaters

Reputation: 33

Target OS X 10.7+ on Xcode 5

I've been trying to build an app that supports 10.7+ using Xcode 5 on 10.9. I can get 10.8+ working but have not succeeded in getting 10.7 to work.

I've tried the following:

When I do the above (mainly the deployment target and base SDKs) I can't run on 10.9. I get the following error message.

Xcode cannot run using the selected destination.

This seems exceptionally difficult. What am I missing? What else can I try?

Upvotes: 3

Views: 1155

Answers (1)

Rob Napier
Rob Napier

Reputation: 299595

That message suggests you are trying to run 64-bit code on a 32-bit destination. Having reproduced your steps, I see this problem intermittently, but if I clean and re-run it, it works.

Do make sure that you've selected a 64-bit destination ("My Mac 64-bit") and that you're building for 64-bit Intel (and not "Universal" for instance). I do suspect there's an Xcode bug in here since I'm seeing it fail and then succeed if I clean between, but this is not a supported configuration and Apple's not going to help you (i.e. a radar is probably a waste of time).

BTW: I build for 10.5 every day with Xcode 5 without any problems, but I'm explicitly building for 32-bit only and so am probably not bumping into this problem.

Upvotes: 1

Related Questions