• 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
Targets with same app name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Targets with same app name


  • Subject: Targets with same app name
  • From: David Durkee <email@hidden>
  • Date: Wed, 02 Sep 2015 14:21:46 -0500

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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Targets with same app name
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Background fetch with localNotification
  • Next by Date: Re: Targets with same app name
  • Previous by thread: Re: Mantaining legacy APIs in a framework
  • Next by thread: Re: Targets with same app name
  • Index(es):
    • Date
    • Thread