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

后端 未结 2 1609
一向
一向 2021-02-04 20:16

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 re

2条回答
  •  情话喂你
    2021-02-04 20:47

    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.

提交回复
热议问题