Linking against libcrypto.dylib fails at strip
Linking against libcrypto.dylib fails at strip
- Subject: Linking against libcrypto.dylib fails at strip
- From: Steve Weller <email@hidden>
- Date: Sat, 10 Feb 2007 14:14:08 -0800
I thought I knew how to link against a dynamic library: drag it into
the Linked Frameworks folder in XCode and check Copy so that it is
added to the bundle and is available when deployed. However strip is
failing with "dynamic stub library can't be changed once created".
I am compiling on an Intel machine for Intel. The dynamic library is
coming from Developer/SDK/MacOSX10.4u.sdk /usr/lib and is Universal.
Is this an architecture problem, a library problem, or what? I have
read all I can find about linking libraries in and cannot see why
this would fail.
If I clean all and then build I get:
Building target “Random_Wok” of project “Random Wok” with
configuration “Release”
Checking Dependencies
Processing "/Users/steveweller/Documents/Progging/Cocoa/Aperture/
Random Wok/build/Release/Random_Wok.ApertureExport/Contents/
Info.plist" Info.plist
mkdir "/Users/steveweller/Documents/Progging/Cocoa/Aperture/
Random Wok/build/Release/Random_Wok.ApertureExport/Contents"
cd "/Users/steveweller/Documents/Progging/Cocoa/Aperture/Random
Wok"
com.apple.tools.info-plist-utility Info.plist -
expandbuildsettings -o /Users/steveweller/Documents/Progging/Cocoa/
Aperture/Random\ Wok/build/Release/Random_Wok.ApertureExport/Contents/
Info.plist
CpResource build/Release/Random_Wok.ApertureExport/Contents/Resources/
English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings
mkdir "/Users/steveweller/Documents/Progging/Cocoa/Aperture/
Random Wok/build/Release/Random_Wok.ApertureExport/Contents/Resources/
English.lproj"
cd "/Users/steveweller/Documents/Progging/Cocoa/Aperture/Random
Wok"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-
debug-symbols -resolve-src-symlinks /Users/steveweller/Documents/
Progging/Cocoa/Aperture/Random\ Wok/English.lproj/InfoPlist.strings /
Users/steveweller/Documents/Progging/Cocoa/Aperture/Random\ Wok/build/
Release/Random_Wok.ApertureExport/Contents/Resources/English.lproj
CpResource build/Release/Random_Wok.ApertureExport/Contents/Resources/
English.lproj/Random_Wok.nib English.lproj/Random_Wok.nib
cd "/Users/steveweller/Documents/Progging/Cocoa/Aperture/Random
Wok"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-
debug-symbols -resolve-src-symlinks /Users/steveweller/Documents/
Progging/Cocoa/Aperture/Random\ Wok/English.lproj/Random_Wok.nib /
Users/steveweller/Documents/Progging/Cocoa/Aperture/Random\ Wok/build/
Release/Random_Wok.ApertureExport/Contents/Resources/English.lproj
CpResource build/Release/Random_Wok.ApertureExport/Contents/Resources/
English.lproj/Localizable.strings English.lproj/Localizable.strings
cd "/Users/steveweller/Documents/Progging/Cocoa/Aperture/Random
Wok"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-
debug-symbols -resolve-src-symlinks /Users/steveweller/Documents/
Progging/Cocoa/Aperture/Random\ Wok/English.lproj/
Localizable.strings /Users/steveweller/Documents/Progging/Cocoa/
Aperture/Random\ Wok/build/Release/Random_Wok.ApertureExport/Contents/
Resources/English.lproj
CpResource build/Release/Random_Wok.ApertureExport/Contents/Resources/
libcrypto.0.9.dylib libcrypto.0.9.dylib
cd "/Users/steveweller/Documents/Progging/Cocoa/Aperture/Random
Wok"
/System/Library/PrivateFrameworks/DevToolsCore.framework/
Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-
debug-symbols -resolve-src-symlinks /Users/steveweller/Documents/
Progging/Cocoa/Aperture/Random\ Wok/libcrypto.0.9.dylib /Users/
steveweller/Documents/Progging/Cocoa/Aperture/Random\ Wok/build/
Release/Random_Wok.ApertureExport/Contents/Resources
/usr/bin/strip: dynamic stub library can't be changed once created: /
Users/steveweller/Documents/Progging/Cocoa/Aperture/Random Wok/
libcrypto.0.9.dylib (for architecture i386)
pbxcp: warning: couldn't strip: /Users/steveweller/Documents/Progging/
Cocoa/Aperture/Random Wok/build/Release/Random_Wok.ApertureExport/
Contents/Resources/libcrypto.0.9.dylib: No such file or directory
--
Bagelturf Blog http://homepage.mac.com/bagelturf/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden