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.

  • Sorting an NSArray in reverse order
  • Passing Data(String) from Child VC to Parent VC using easiest Way
  • Swift OpenGL unresolved identifier kCGImageAlphaPremultipliedLast
  • How to install SDWebImage
  • Shared variable between two tabs for Xcode
  • type 'Any?' has no subscript members (using Firebase)
  • Any help on exporting these settings or creating a template would be appreciated.

    Solutions Collect From Internet About “How can I save all my build settings from 1 xcode project and use them on other xcode projects?”

    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.