• 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: My app won't work on Mini
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >My app won't work on Mini (From: Gil Dawson <email@hidden>)
 >Re: My app won't work on Mini (From: Wim Lewis <email@hidden>)
 >Re: My app won't work on Mini (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: Xcode 7 command line tools
  • Next by Date: Re: linker error nonsense?
  • Previous by thread: Re: My app won't work on Mini
  • Next by thread: iTunes Connect - Which listserv is right one to use to ask a question?
  • Index(es):
    • Date
    • Thread