• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SEMISOLVED: Re: private frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SEMISOLVED: Re: private frameworks


  • Subject: SEMISOLVED: Re: private frameworks
  • From: Niko Matsakis <email@hidden>
  • Date: Tue, 1 Nov 2005 14:14:17 +0100

Problem semi-solved: after searching the archives and reading a bit more, I realized that the "installation path" property on a framework is in fact a clue for where to find the framework, not instructions on where to put it. I have now managed to get my app to run, though I have not successfully been able to include the Framework project into the Application project (I get an error in the Copy Files step; it claims not to be able to find Oaxaca.framework).

Thanks to those who wrote me on the matter.


Niko

On Nov 1, 2005, at 11:48 AM, Niko Matsakis wrote:

I have a utility Framework I have developed that I wish to include in an application of mine as a private framework. I have read the "Framework Programming Guide" and tried tof follow its directions but they don't seem to work.

I did deviate from the guide in one respect: it recommends adding the Framework's source into your application project: this strikes me as a good idea if this framework is only used by one application, but if it is used by many then it makes more sense to have a separate project for the Framework itself. If this is wrong, let me know, but it seems like otherwise there will be configuration for the same framework duplicated among many different projects.

I also tried to include the framework project into the application project by reference, but in this case I get the same error. I could not find the installation directory that is mentioned in the Framework Programming Guide (which I am supposed to set to @executable/../Frameworks or something like that).

Anyhow, what I tried eventually is to add a "copy files" step to my project which copies the referenced Oaxaca.framework into the Frameworks directory of the application. I have verified in Terminal that the file is present. This seems to be what the Framework Programming Guide suggested, although they said to do it via the "install path" from the framework target. As the framework target is not in my project, I thought I'd try a different route.

Unfortunately, it doesn't work (see msg below).  Any advice?

What I don't want is for users to have to install the Framework separately from the Application. I definitely want the Application to be self contained.


[Session started at 2005-11-01 11:43:25 +0100.]
dyld: Library not loaded: /Users/niko/Library/Frameworks/ Oaxaca.framework/Versions/A/Oaxaca
Referenced from: /Users/niko/proj/flash/build/Development/ Flash.app/Contents/MacOS/Flash
Reason: image not found



Niko _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >private frameworks (From: Niko Matsakis <email@hidden>)

  • Prev by Date: Re: private frameworks
  • Next by Date: Any tool to compare resource forks?
  • Previous by thread: Re: private frameworks
  • Next by thread: Private frameworks
  • Index(es):
    • Date
    • Thread