Re: XCode 4.0.2 Doesn't Name Build Products Folder to <Configuration>
Re: XCode 4.0.2 Doesn't Name Build Products Folder to <Configuration>
- Subject: Re: XCode 4.0.2 Doesn't Name Build Products Folder to <Configuration>
- From: Brock Brandenberg <email@hidden>
- Date: Mon, 18 Jul 2011 16:54:31 -0500
Michael,
I'm not sure that yours is exactly the same issue that I previously encountered, but it appears related and might help point out the numerous locations where build locations can be specified:
Custom build location from Xcode 3 not editable in Xcode 4
http://lists.apple.com/archives/xcode-users/2011/Mar/msg00849.html
Xcode3 used to have a UI textfield for changing the build products location, but it was removed in Xcode4 and the new way to change the build products location(s) is by setting SYMROOT at the project and/or target level as appropriate. However, in the Xcode4 betas, when I opened my Xcode3 projects that had this custom location setting, Xcode4 inherited the setting but would not let me change it. I had to reopen my project in Xcode3, clear the setting, and then Xcode4 would let me set the SYMROOT value. This appears to be corrected in 4.1 to the point that you can override it at the project level, but you still can't find the build setting where it's still defined internally to the project.
Note that in Xcode4, there is a global pref for setting the derived data location, as well as a per-project setting that you can change by selecting your project at the top of the project navigator and choosing "Project Settings" from the "File" menu. Seems like this setting should be in the Utilities pane on the right along with other project settings instead of hidden behind a menu command :/
Anyway, you can explicitly set and override the derived location(s) by setting SYMROOT. SYMROOT used to simply inherit $(PROJECT_DIR)/build, but you can of course set any relative or absolute path you like. For example, because I make builds for both AppStore and non-AppStore versions and like to keep derived data out of my version controlled folders, I use a project relative "$(PROJECT_DIR)/../Builds/MyApp" at the project level, then "$(SYMROOT)/AppStore" and "$(SYMROOT)/Other" at the target levels. This gives me a single build folder one level up from my projects with separate subfolders for each app, and separate subfolders for each target.
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