Re: Xcode 4 Release Builds
Re: Xcode 4 Release Builds
- Subject: Re: Xcode 4 Release Builds
- From: Brock Brandenberg <email@hidden>
- Date: Thu, 21 Jul 2011 00:08:25 -0500
Seth,
> No, it's not that simple. This is a question more of interface than simply getting it done. I can already get at the release build the intended way, it's just really annoying.
>
> 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.
>
> And the only way to even build a Release product in Xcode 4 is to build for Profiling or Archiving.
>
> 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.
>
> It's all just far more steps than it used to be.
Try setting SYMROOT to "$(PROJECT_DIR)/build" under the build locations section of the project or target build settings (as appropriate for your product). This will cause your executables to be written into a build folder inside your project folder, the same old familiar place as Xcode3 wrote them. Make sure you set the combined setting and not the individual release and debug variants because they will automatically append "Release" and "Debug" to the SYMROOT path for you when you build. The new "derived data" will still be buried in your ~/Library/Developer folder, but at least you'll have your executables in the place you want them.
You should be able to do a simple build (command-B) with a scheme that has "run" set to release and have a complete product sitting in your ...build/Release folder.
Brock Brandenberg _______________________________________________
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