Hi,

I’m trying to build three targets for my Mac application that are nearly 
identical, and that I want to have the same app name. One is a demo version, 
that will expire a certain time after it is first launched. Another is a beta, 
that expires a certain time after it is built, and the last is the version of 
the App Store. To do this I made three identical targets, using the same 
info.plist and the same name for the .app bundle, but a different .pch file for 
each with #defines to force the differences.

My problem is that they all build in the same location, so if I change schemes 
(to change target) and debug, it uses the target I was previously using, not 
the one I just changed to. I can Clean the project, but I don’t want to have to 
remember that.

I’ve tried everything I can think of to get them to build in different 
locations. I tried changing Build Products Path in Build Locations under Build 
Settings (seems like a no-brainer, right?) from “build” to “build_beta”, but it 
seems to have no effect. (The actual path where the build product is going has 
“Build” in it, but not “build”, and it didn’t change.)

I found this document about Changing the Build Location:

https://developer.apple.com/library/ios/recipes/xcode_help-locations_preferences/Build/Build.html
 
<https://developer.apple.com/library/ios/recipes/xcode_help-locations_preferences/Build/Build.html>

From reading it, it sounds like the only way to get a build location based on 
target settings is in Preferences->Locations using an option labeled Legacy. I 
don’t like this for two reasons: I don’t want it to affect other projects in 
the future, which is implied that it would by being in Preferences, and the 
fact that it’s called Legacy implies that things aren’t done this way anymore 
which makes me think I’m taking an entirely wrong approach.

Any suggestions?

David Durkee
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to