iPhone/Xcode: can different project targets have different bundle identifiers? -


I am a little confused in how this works - I understand this:

  • The goal profile for A goal is linked to a specific app ID
  • The bundle identifier target information \ properies \ identifier
< P> but ... The bundle ID is also located in Info.plist. It seems that if you change the bundle ID in Info.plist , Xcode automatically changes to target information / property / identifier , and vice versa.

So this is what takes precedence? target information \ properties / identifier bundle id or Info.plist bundle id?

The reason I ask because I want two versions for my app - a free ad supported version and paid version, and I want to complete it with two different goals. Since they will have two separate apps in the app store, I understand they need two separate app IDs (and I do not want to go down the * root with the app ID, it shows how to do this on the app store Works, brain injury).

Do I need two different information for every goal. The plugins will be required if I do this, or I can use the same information. Plist, and individual targets use a different development / distribution provision profile?

There is no priority, attribute dialog is just another way for you to view your Info.plist.

To share the plist between the targets, but to different identifiers, make sure that the "Create extension in the Info.plist file" option is enabled for both targets, then for each target Create a new user-created variable in the target setting for your bundle ID (e.g., APPLICATION_BUNDLE_IDENTIFIER, see here) and set to the right value for that goal in your plist, for bundle id Enter the following:

  & lt; Key & gt; CFBundleIdentifier & lt; / Key & gt; & Lt; String & gt; $ (APPLICATION_BUNDLE_IDENTIFIER) & lt; / String & gt;  

The variable will be assessed at the build time for each goal, so that everyone gets the correct bundle ID.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -