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