xcode4 - XCode: Possible to specify CFBundleIdentifier per-build-configuration? -


i can't figure out how this.

i have special build configuration alongside debug , release. (let's call foo)

my cfbundleidentifier com.my-company.our-project.

however, when build (and archive) foo configuration, want use bundle identifier com.my-company.foo.our-project

is possible? i've tried has failed.

i spend of day building white-label product, have time.

the solution came use xcode "run script" build phase "postflight" script.

in project file, select target, build phases, , add new "run script" build phase. renamed phase "postflight" , ensured move phase last thing done amongst build phases.

the essential thing postflight script built .app package, info.plist within it, , change cfbundleidentifier within whatever our present build configuration set for. our script lot more (other logic, post-processing, resource manipulations, etc.).

i can't provide many specifics since setup customized me, , yours customized you. that's basic approach. it'll work you.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -