Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you add a build product from a different project as a bundle resource in XCode?

Tags:

xcode

xcode4

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?

like image 395
ctpenrose Avatar asked Jan 27 '12 23:01

ctpenrose


People also ask

Where is copy bundle resources Xcode?

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 .

What is Xcode workspace?

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.


1 Answers

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).

like image 115
ctpenrose Avatar answered Oct 01 '22 16:10

ctpenrose