xcode build targets

  • Follow


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.

0
Reply invalid829 (13) 10/31/2009 3:26:11 AM

Joe <invalid@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--
0
Reply Sherm 10/31/2009 3:00:55 PM


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.

0
Reply Joe 10/31/2009 6:19:18 PM

Joe <invalid@email.account> wrote:

> 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
0
Reply thnews 11/1/2009 11:02:40 PM

3 Replies
176 Views

(page loaded in 0.104 seconds)

Similiar Articles:




7/16/2012 12:49:18 PM


Reply: