I have two projects in an Xcode workspace. I would like to add the build product of project B as a bundle resource in project A. I have already configured the scheme of project A to build project B first. Is there a proper way to do this besides simply adding the build product of project B from the file system?
You're in the Build Settings tab, Build Phases is next to it. It will be a list of phases that includes Copy Bundle Resources .
A workspace is an Xcode document that groups projects and other documents so you can work on them together. A workspace can contain any number of Xcode projects, plus any other files you want to include.
I was able to add the product of project B into project A in the following manner. I simply dragged the product of project B from the Project Navigator into the Copy Bundle Resources pane of project A. It can be tricky as you cannot initiate the drag by selecting the icon of the product -- I succeeded only by dragging its title. It was not necessary to make project B a target dependency of target A; the build dependency can be managed instead by schemes (which was the way I originally had the workspace configured).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With