Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Urban Airship and AirshipConfig.plist

is there a possibility to have XCode configure the AirshipConfig.plist for iOS depending on the build target? Urban Airship at the moment only supports 2 configurations, set in the AirshipConfig.plist, but I want to have 3 or more. Does anyone have experience if it's possibile to switch the config file depending on the target? Does UA require the file to have exactly the above name?

It's really a drawback that UA does not offer any options for more than 2 configs. UA support says it's not possible at the moment, but I thought maybe switching the file dynamically would be an option.

Regards Kim

like image 859
Micky Avatar asked Jan 15 '13 10:01

Micky


1 Answers

I found out myself. If anyones interested: Just create subfolders for each configuration and put the corresponding AirshipConfig.plist in there. Then create different targets for the configurations and set the target membership of the right file to that target. That's all.

like image 140
Micky Avatar answered Sep 17 '22 12:09

Micky