Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

where to locate dylib



Hi there,

I could make my own dynamic library and my application can link it at runtime without any problem. And it runs perfectly. However, when I put the app and library into the other directory, the app doesn't run because of undefined symbols' error.

The directory is like this:

Original Folder
+ myApp.xcode
+ build
  + myApp.app
  + libMyDynamicLibrary.dylib

Installation Path in the information of the library target isn't set.


Then as I described former, when I move those files in to somewhere else, the app doesn't run.
Like:


Other folder
  + myApp.app
  + libMyDynamicLibrary.dylib


In fact I'd like to put the library in "MacOS" directory or any other directory in the application bundle, but somehow, even though I put the library in the directory where the application executable locates, the app doesn't run.


Could you tell me what I am missing?
And how to set the target information to make the application link the library when it locates in the same directory as the executable file?


Thank you,
Norio Ota

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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.