Re: Xcode 4 Release Builds
Re: Xcode 4 Release Builds
- Subject: Re: Xcode 4 Release Builds
- From: Quincey Morris <email@hidden>
- Date: Wed, 20 Jul 2011 21:27:48 -0700
On Jul 20, 2011, at 20:20, Seth Willits wrote:
> In Xcode 4, it seems I'm supposed to create an archive (which seems to *always* build from scratch), and then in the Organizer click on the Share button, go through a couple-panel-sheet to unpackage it and save it somewhere (like the Desktop), and then I have to traverse through the 4-level-deep folder hierarchy
Huh? It's not clear what folder hierarchy you're referring to. If I choose the middle option ("Application"), I get the actual application on the desktop, ready to zip and attach to an email. For this kind of purpose, choosing the "Package" option is useful only if you need to get to the dSYM file.
> to find the app so I can pull it out, zip it, and send it on its way. Followed by deleting that hierarchy and deleting the archive from the Organizer because I don't ever want to use it again.
I can understand throwing the Desktop files in the trash immediately, but I'm not sure why it's necessary to delete it from the Organizer quite so obsessively. You could, you know, housekeep in the Organizer once a month or so. :)
On Jul 20, 2011, at 20:57, Seth Willits wrote:
> Also, Xcode 4's build folder location isn't like Xcode 3's. With Xcode 3, if you set a custom build location, all of your Release products for all of your projects were put into ..../build/Release. So they were all in the same folder. That made them very easily accessible (though it had its problems in fringe cases). In Xcode 4, the best you can do is put all of your "derived data" into ..../build, but then your actual product is in ..../build/Project-lksjdflkjsdlfkjsdlfk/Build/Products/Release.
I believe there's a way of making it do exactly what Xcode 3 does, so that it puts built apps in the same places. I thought there were basically 3 choices: Xcode 4 standard way, Xcode 4 custom way and Xcode 3 way. But I admit I didn't study this in detail. There's options for this in Preferences, and in Workspace settings.
> And the only way to even build a Release product in Xcode 4 is to build for Profiling or Archiving.
How did you build a Release product in Xcode 3? You changed the configuration to Release, you built it, you changed the configuration back to Debug. In Xcode 4 you can just Build For Archive directly, which seems easier. Or you can make a scheme to build the Release configuration with a "regular" build (as you already said), but that seems no harder or easier than the Xcode 3 way -- except for needing to create the scheme, which takes 10 seconds one time.
A scheme is a lightweight thing, not like a target.
> And even doing that, the only remotely sane way of accessing the actual build product is to right-click it in the project navigator and choose "Show in Finder", but that always ends up showing me the Debug version, so I still have to navigate up over and down in the file tree to get at it.
You can go to Organizer/Projects and click the arrow to take you to the Derived Products directory, and just go down.
Or, if you use an extra scheme for this, then (I presume) Show In Finder will take you directly to the Release version, won't it?
_______________________________________________
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