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"
add user-defined build setting
call my_data_assistant_bundle_id_suffix
example , set value -beta
beta configuration.
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)
set right provisioning profile each configuration. (of course after creating beta 1 in provisioning portal if new app bundle identifier having suffix "-beta")
create new scheme!
give name: mydataassistant-beta
change build configuration "beta" actions , should ready go.
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
Post a Comment