ios - What is the best way to have multiple variations of a product in Xcode? -


i have project maintain client; let's call mydataassistant. when project goes beta, client likes have "separate app" built them, create using different provisioning profile , modified bundle identifier (mydataassistant-beta). it's pain going , forth , changing bundle identifier, code signature settings, , icon. understand can have multiple targets , multiple build settings (within each target?) in project, i'm not clear on difference is, or how use them appropriately.

additionally, client third version read-only capabilities. can accomplish making flag return part of code, if flag toggled in build (target?) settings.

please advise on how manage kind of project multiple "variations" of build.

add new configuration project duplicating release 1 example.

give name "beta"

enter image description here

add user-defined build setting

enter image description here

call my_data_assistant_bundle_id_suffix example , set value -beta beta configuration.

enter image description here

edit mydataassistant-info.plist file setting bundle identifier com.yourcompanyname.mydataassistant$(my_data_assistant_bundle_id_suffix)

this make have different values different configurations.

you can set display name have different value setting $(product_name)$(my_data_assistant_bundle_id_suffix)

enter image description here

set right provisioning profile each configuration. (of course after creating beta 1 in provisioning portal if new app bundle identifier having suffix "-beta")

enter image description here

create new scheme!

enter image description here

give name: mydataassistant-beta

enter image description here

change build configuration "beta" actions , should ready go. enter image description here

if want have different icons beta version can use $(my_data_assistant_bundle_id_suffix) in mydataassistant-info.plist file icons names , of course add them target.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -