• 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
Re: can't open library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't open library


  • Subject: Re: can't open library
  • From: daniel <email@hidden>
  • Date: Wed, 30 Mar 2005 12:52:58 -0800

Some comments:

1. Everything in your Xcode project is a reference. Most of the files happen to be located in the general vicinity of your project's ".xcode" file. Some of them may not be. Whatever the state of your project, it always makes sense for XCode to ask whether you want to delete a reference or the actual file. "Delete reference" just means take the file out of the Xcode's lists. "Delete file" means delete the reference AND the file.

2. If you're ever in doubt about which file is being used by Xcode in the process of building your app, you can control-click on the item in the file list (the "reference") and choose "reveal in Finder" from the popup menu. It sounds like you have some confusion about whether the frameworks you're linking have been copied to your source directory or not. This is the way to clarify that.

3. It doesn't matter whether the frameworks are in your source directory or somewhere else on your disk. If there's a reference in your project, and its checkbox is clicked for the target you're interested in, then the library is available to the project and should be linked against by the target.

4. Linking against the library doesn't mean it will be packaged with your application. You need to add a "Copy Files" phase to accomplish this. Select your target. Choose "New Build Phase->New Copy Files Build Phase" from the Project menu. Select "Frameworks" from the Destination popup. Drag the framework reference *into* the Copy Files phase. This tells XCode that you want to take the library with you when your app is built.

Good luck,
Daniel

On Mar 30, 2005, at 6:01 AM, Francis Derive wrote:

Bonjour Daniel, et les autres,

So strange : I copy the framework into my project ( the "Copy items into destination group's folder" checkbox is checked, and after that I see the yellow case in Xcode, and the blue folder in my project in the Finder : the framework is really there - twice on my disk ).
It compiles and run like that - again !


[Session started at 2005-03-30 15:43:26 +0200.]
dyld: /Volumes/Users/fderive/fdeDev/Cocoa/Apps/DocBased/ RaiseManSourceTabSubClassRegexOgreK/build/RaiseManSourceTab.app/ Contents/MacOS/RaiseManSourceTab can't open library: @executable_path/../Frameworks/OgreKit.framework/Versions/A/OgreKit (No such file or directory, errno = 2)


Executable “RaiseManSourceTab” has exited due to signal 5 (SIGTRAP).

It is there, under the hood, and can't get it.

Even worse for my mind now : In Xcode, I want to delete the added framework, and it asks me if I want to delete "References and Files" or "Only but References"... What I want to delete now is "Only but Files" - the files which have been duplicated in my Project from the other project - the OgreKit project, from which I get the framework. There is no sense to delete "Only References" - as it is not references which have been copied, but the real files. And if I click to "Delete Files and References", it delete NOT the framework files duplicated in my project BUT the original framework files in the OgreKit project - crazy, ME crazy !!!

What's SO wrong with me ?

Apart from that, I don't understand so much what you are saying here :

It looks like you need to add "OgreKit.framework" to a copy files build phase for your project. The copy files phase should be set to copy into the "Frameworks" folder of your app.

From what you understand of what I have done - am I far away from what you say ?


Cheers. Merci beaucoup.

Francis


On Mar 29, 2005, at 7:35 PM, daniel wrote:

Hi Francis:

It looks like you need to add "OgreKit.framework" to a copy files build phase for your project. The copy files phase should be set to copy into the "Frameworks" folder of your app.

Reveal in Finder is just showing you the "source" framework. When you run the application, it has to be installed inside the app. That's why you're getting the faliure with "@executable_path/..". If you look inside your built application, you'll see that the framework is not there.

Daniel

On Mar 29, 2005, at 7:26 AM, Francis Derive wrote:

Bonjour à tous !

I proceed the same way for two alternatives, and one of the alternatives is OK, the other not.
It is a little Xcode 1.5 project used for experimenting with two regular expressions frameworks - one is OgreKit, the other is OmniFoundation.
So I "Add to Project ..." the OgreKit.framework in one case, the OmniFoundation.framework ( and also a OmniBase.framework) in the other case.
Both compiles.
Only but the project with the Omni addition runs, the other fails like that :



[Session started at 2005-03-29 17:17:46 +0200.]
dyld: /Volumes/Users/fderive/fdeDev/Cocoa/Apps/DocBased/ RaiseManSourceTabSubClassRegexOgreK/build/RaiseManSourceTab.app/ Contents/MacOS/RaiseManSourceTab can't open library: @executable_path/../Frameworks/OgreKit.framework/Versions/A/OgreKit (No such file or directory, errno = 2)


Executable “RaiseManSourceTab” has exited due to signal 5 (SIGTRAP).


At the beginning of my experiments with RegExp frameworks, I had started with OgreKit - and it ran ok.
Now I can't come back to it.


Any idea here ?

Of course, a "Reveal in Finder" of the framework and the headers included does shows the files with satisfying executable permissions.

Merci beaucoup.

Francis Derive

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


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: 
 >can't open library (From: Francis Derive <email@hidden>)
 >Re: can't open library (From: daniel <email@hidden>)
 >Re: can't open library (From: Francis Derive <email@hidden>)

  • Prev by Date: Function's default values are corrupted (Nasty bug)
  • Next by Date: Re: Function's default values are corrupted (Nasty bug)
  • Previous by thread: Re: can't open library
  • Next by thread: Re: Xcode-users Digest, Vol 2, Issue 107
  • Index(es):
    • Date
    • Thread