Is it possible to Copy targets from one Xcode project to another, and if so, how?
Thanks!
You will have to copy/paste or re-add the files to the new target/project in Xcode 8.
Copy Build Settings
The Build Settings panel supports copy/paste of rows, and it'll overwrite the existing values.
- In Xcode go to the target you want to copy settings from and open the Build Settings tab
- Switch to "Customized" to see only changes and choose "Combined"
- Select your top-level , which should be the same name as your Xcode project
- Select all and then copy (Command + C) the Build Settings tab
- Open the new project/target to the Build Settings tab
- Paste the copied settings (Command + V)
- Repeat for the specific target properties (static library, executables, etc.)
Copy Build Phases
You won't be able to copy/paste these settings (unless you dig around in the project file in a text editor, but I don't recommend).
- Open both projects side by side, and then add each target dependency, source file, linked library, and headers to the new project/target
- Re-create new build scripts and copy your scripts (if you have them)
- Re-create new copy file phases any build scripts and copy file phases (if you have them)