Search code examples
xcodexcode6.1

How flexible is order of build phases for Xcode targets?


Is it possible to configure the Build Phases of a target in Xcode 6.1 such that a Copy Files phase can occur before the Compile Sources phase?


Solution

  • Yes.

    For existing phases such as "Copy" and "Compile" in your example:

    • View the Build Phases by selecting the Build Phases tab in the desired project's target
    • Then reorder phases (or elements of each phase) by dragging them using your mouse

    Note: The "Target Dependencies" phase may not be reordered (at the time of this writing).