On Aug 24, 2012, at 10:12 PM, Brian Hughes < email@hidden> wrote: However when I try to run it I get and alert that says:
The run destination My Mac 64-bit is not valid for Running the scheme 'LTN'.
The scheme 'LTN' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
Here are my Architecture settings:
Debug: ARCHS = ppc
Release: ARCHS = ppc i386
This is the cause right here. When you “run” in Xcode 4, the typical action is actually “Run for Debugging.” For that scheme action, Xcode defaults to using your Debug configuration. Other scheme actions like Run for Profiling and Archive will use the Release configuration by default, and all of this is customizable in the Edit Scheme sheet.
First, change your “Architectures” build setting to “32-bit Intel” while you’re bringing your application up under modern tools and a modern SDK. Do this in both your Debug and Release configuration. This should result in only having a choice of “My Mac 32-bit” as your run destination, and your app should work when run.
Then, customize the “Build Active Architecture Only” build setting to Yes for just your Debug configuration, leave it at the default (No) for your Release configuration. This way, when you do start to convert your application to 64-bit, all you have to do is change your “Architectures” build setting to “Standard (32/64-bit Intel)” and Xcode will provide both “My Mac 32-bit” and “My Mac 64-bit” run destinations. Choosing one of them will result in only code for that destination being built while you’re debugging, but when you do things like Archive to publish your app to the App Store, the Release build will be generated for both architectures.
-- Chris
|