Re: XCode 2.0 and ICU
Re: XCode 2.0 and ICU
- Subject: Re: XCode 2.0 and ICU
- From: Scott Tooker <email@hidden>
- Date: Tue, 3 May 2005 13:57:17 -0700
This is another symptom of a well known bug in Xcode, that it is too
aggressive when resolving symlinks. As you can see, this is still a
problem in Xcode 2.0 :(
One workaround for your case that may help is to set the file type on
the file reference in the Get Info window (i.e. open up a Get Info
window on the dylib file reference and change the file type from
'file' to the appropriate file type).
Scott
On May 3, 2005, at 1:44 PM, Marshall Clow wrote:
So, I'm trying to write some code that uses ICU <http://
icu.sourceforge.net/>.
The install/build process for ICU went fine, and I have a folder
full of dylibs, organized like this:
libicuXXX.dylib (a symlink to libicuXXX.dylib.32.0)
libicuXXX.dylib.32 (a symlink to libicuXXX.dylib.32.0)
libicuXXX.dylib.32.0 (the real dylib)
So, I want to link against this library. I add libicuXXX.dylib to
my project. Fine.
Try to link, get "Can't find libicuXXX.sylib". Swear, pull up the
inspector, and
add the location of the dylibs to "Library search paths". Grumble.
Why didn't XCode
do this when I added the dylib? Ok.
Try to link - this time it succeeded. But the program doesn't run -
undefined symbols.
Grrr. Turn off ZeroLink, and link again.
Now it doesn't link. All the symbols that I used in libicuXXX.dylib
are undefined. Open
up the "Show Build Results" window, and look there. No help. Split
the window, and
find the actual commands used, and look there.
A-ha! There, hidden in the detritus, is a clue.
warning: skipping file 'blah/blah/libicuXXX.dylib.
32.0' (unexpected type 'file' in Frameworks and Libraries build
phase)
So, it appears that XCode is looking at the file I added
"libicuXXX.dylib" and saying "This is a dylib, lets pass it to the
linker" but then later it decides that since the symlink points to
a file named "libicuXXX.dylib.32.0" that it will just ignore that
file.
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
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