Re: My app won't work on Mini
Re: My app won't work on Mini
- Subject: Re: My app won't work on Mini
- From: Kyle Sluder <email@hidden>
- Date: Tue, 27 Oct 2015 19:17:25 -0600
On Tue, Oct 27, 2015, at 03:25 PM, Gil Dawson wrote:
> On Oct 27, 2015, at 1:23 PM, Wim Lewis wrote:
>
> > You should be able to compile a "fat" version of the app that runs on both machines by adding "i386" to the list of architectures in Xcode's build settings
>
> That was it!
>
> I changed Project -> Set Active Architecture from "x86_64" to "i386"
> (only one is selectable at a time), then clicked "Build and Debug". Now
> the resultant app works on both machines!
>
> (The same choices are available on the big pulldown in the ULCorner of
> the main window.)
You've gone about this from the wrong end :)
The "Active Architecture" build setting is automatically controlled by
the scheme selector in the toolbar. When you have "My Mac" selected, the
Active Architecture setting reflects what architecture that Mac has.
By default, the Active Architecture setting only matters when building a
Debug build. By default, Debug and Release are the two variants defined
in a freshly-created target. Each action you can perform on a scheme
(Run, Test, Profile, Archive) will build its targets using a particular
variant (configurable in the scheme editor). By default, the Run action
is set up to use the Debug variant, while the others are all set up to
use the Release variant.
Long story short: only use Build for Running (the Cmd-B shortcut) when
building and running code on your machine. When you actually want to
"release" your product, even if you're only releasing it to yourself,
use Archive. That'll build a Release version of your app that is built
for all valid architectures on the platform (in your case, i386 and
x86_64).
--Kyle Sluder
_______________________________________________
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