Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xcode build targets

1 view
Skip to first unread message

Joe

unread,
Oct 30, 2009, 11:26:11 PM10/30/09
to
Apologies if this isn't the right place to post xcode questions, but
looking through the archives, it seems to be since there's no other
groups I've found that relate directly to xcode.

---

I've created a framework project in which I want to have a dylib.

Problem is, when I compile it, it doesn't compile any of the source
files. I'm sure I've got something wrong w/ the build targets, but I
don't know what yet.

I have 1 build target of type framework w/ 4 build phases under it.
- Copy Headers
- Copy Bundle Resources
- Compile Sources
- Link Binary w/ Libraries

Every one of them is empty and I'm not sure how to work with them or
what's needed. I have all my source and include files included in the
projects "Groups & Files". This used to work as a dylib, then I
recreated the project as a framework (because I want to start
distributing it).

Any help much appreciated.

Sherm Pendley

unread,
Oct 31, 2009, 11:00:55 AM10/31/09
to
Joe <inv...@email.account> writes:

> I have 1 build target of type framework w/ 4 build phases under it.
> - Copy Headers
> - Copy Bundle Resources
> - Compile Sources
> - Link Binary w/ Libraries
>
> Every one of them is empty and I'm not sure how to work with them or
> what's needed.

Just drop all of your files on the target. Xcode will figure out on its
own what build phases they belong in.

sherm--

Joe

unread,
Oct 31, 2009, 2:19:18 PM10/31/09
to
Well, I'm almost getting there. Still trying to get my app proj to
build and depend on my framework proj. The app compiles, but when I run
it, I get the following error.

[Switching to process 17759]
dyld: Library not loaded:
/Users/me/Library/Frameworks/my.framework/Versions/A/ann
Referenced from:
/Users/me/projects/test/build/Release/test.app/Contents/MacOS/test
Reason: image not found

One thing I've noticed is that when I click on my target and the
"Target Info" General pane comes up, there are no "Direct Dependencies"
listed. And I can't add any dependencies because the '+' is disabled.
I'm thinking this is why I'm getting this error. Then I found the
following in the documentation.

"Adding Target Dependencies ...
To add a target dependency, click the plus-sign button. (For the plus
sign button to be available, the project must contain or reference more
than one target.) "

I only have one target in my project, and I was expecting that target
to have the dependency. I don't get why I need another target or what
it would be.

Message has been deleted
0 new messages