Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I save all my build settings from 1 xcode project and use them on other xcode projects?

I'm using xcode 4.5 and cordova/phonegap to build my apps. I have invested a lot of time into getting the build settings just right for my xcode project and I would like to reuse these settings on multiple apps I am building. I'm looking to see if there is a fast way to export these settings or build a template that I can use for future projects.

I've tried copying the project folder and changing the name and that does not work. I get an error when working with the cordovalib.xcodeproj file.

Any help on exporting these settings or creating a template would be appreciated.

like image 721
Rob Elder Avatar asked Oct 05 '22 06:10

Rob Elder


1 Answers

Use an .xcconfig file.

http://developer.apple.com/library/ios/#recipes/xcode_help-project_editor/Articles/BasingBuildConfigurationsonConfigurationFiles.html

File.. New File.. Then choose the Configuration Settings File from the Other section.

You will have to copy the build settings from your xcodeproj file. Open your xcodeproj file in a text editor and copy:

buildSettings = { ... }

Into your xcconfig file. Be aware that the xcconfig file has a specific format. The above video / Apple documentation should help you.

You will then need to tell Xcode which xcconfig file to use for each build configuration.. Debug, Release, etc. You can do this by importing it under your Project's Info tab, under Configurations.

like image 137
StuR Avatar answered Oct 10 '22 03:10

StuR