Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Objective-C)  »  xcode build targets...
Page 1 of 1    

xcode build targets...

Author Message
Joe...
Posted: Sat Oct 31, 2009 5:17 am
Guest
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...
Posted: Sat Oct 31, 2009 7:00 pm
Guest
Joe <invalid at (no spam) email.account> writes:

Quote:
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...
Posted: Sat Oct 31, 2009 10:19 pm
Guest
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.
 
Tim Hodgson...
Posted: Mon Nov 02, 2009 4:02 am
Guest
Joe <invalid at (no spam) email.account> wrote:

Quote:
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.

There's an Xcode mailing list - see lists.apple.com.
--
TimH
pull tooth to reply by email
 
 
Page 1 of 1    
All times are GMT
The time now is Mon Dec 07, 2009 11:06 pm