After I make a build I want to copy some files into my Xcode project.
I discovered that I could do this either in
-
In “Build Phases” with a custom build step.
-
I can also execute scripts before and after the different “tasks” in the Scheme editor:
- Build (This is where I could add my script)
- Run
- Test
- Profile
- Analyze
- Archive
I don’t completely understand the differences / possible implications between the two approaches and I am wondering when to choose either approach. Thanks for clarification.
I assume you want to copy files to your build product, not the Xcode project.
There are several subtle differences between scheme and build phase scripts. Here are some of them: