Confusing runtime link error
Confusing runtime link error
- Subject: Confusing runtime link error
- From: Darkshadow <email@hidden>
- Date: Sun, 9 Apr 2006 23:11:56 -0400
I released a new version of one of my apps today, and have received a
crash report that is just confusing the heck out of me. I'm hoping
someone here may have an idea of what's going on.
Apparently, my app is trying to link against the AE framework (one of
the subframeworks in the ApplicationServices framework) on his
system. I haven't linked against it, nor am I using any of those
functions in the app.
Here's the crash report:
**********
Host Name: adriens-imac-g5
Date/Time: 2006-04-09 19:24:51.823 +0100
OS Version: 10.4.6 (Build 8I127)
Report Version: 4
Command: Picture Switcher
Path: /Applications/Picture Switcher.app/Contents/MacOS/Picture
Switcher
Parent: WindowServer [64]
Version: 1.1 (1.1)
PID: 598
Thread: Unknown
Link (dyld) error:
image not found /System/Library/Frameworks/
ApplicationServices.framework/Frameworks/AE.framework/AE
Here's the frameworks I'm actually linked against:
> $ otool -L /Applications/Picture\ Switcher.app/Contents/MacOS/
Picture\ Switcher
/Applications/Picture Switcher.app/Contents/MacOS/Picture Switcher:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 11.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 275.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 88.1.3)
So I'm not entirely sure why it's trying to link against the AE
framework. I do realize that it may be indirectly loaded by the
Cocoa framework, but still...
I tried weak linking against the ApplicationServices framework and
had him try that, but that didn't work, either. I didn't
particularly think that would work, but it was worth a shot.
It gets even stranger. I asked him to see if the AE framework was
present on his machine. Apparently, it is. I gave him a way to
check with either the Terminal or the Finder, whichever he was most
comfortable with. He actually did both. Here's the outcome:
$ ls -l /System/Library/Frameworks/ApplicationServices.framework/
Frameworks/
total 0
drwxr-xr-x 5 root wheel 170 Mar 28 2005 AE.framework
drwxr-xr-x 6 root wheel 204 Mar 28 2005 ATS.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 ColorSync.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 CoreGraphics.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 CoreText.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 FindByContent.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 HIServices.framework
drwxr-xr-x 5 root wheel 170 Feb 15 03:21 ImageIO.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 LangAnalysis.framework
drwxr-xr-x 6 root wheel 204 Mar 28 2005 LaunchServices.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 PrintCore.framework
drwxr-xr-x 5 root wheel 170 Feb 15 03:21 QD.framework
drwxr-xr-x 5 root wheel 170 Mar 28 2005 SpeechSynthesis.framework
$ ls -l /System/Library/Frameworks/ApplicationServices.framework/
Frameworks/AE.framework
total 16
lrwxr-xr-x 1 root wheel 19 Oct 2 2005 AE -> Versions/Current/AE
lrwxr-xr-x 1 root wheel 26 Oct 2 2005 Resources -> Versions/
Current/Resources
drwxr-xr-x 4 root wheel 136 Mar 28 2005 Versions
...and from his look with the Finder (my original statements are the
double quoted ones below):
Tell me if AE.framework is there,
YES
and if it is, open that up and tell me if an alias named AE is there.
YES, "exec" name AE is Alias
Then I opened alias origin:
"Going to Original AE from alias: AE.framework -> Versions -> A ->
AE -> exec -
Unix Executable File
340 KB on disk
Created and Modified
03/04/2006
[which is British usage for 3rd April 2006
So it really looks like there's something strange going on here. The
framework appears to be there, yet it can't be found by dyld and loaded.
Just as a background, this is a universal binary, with both ppc and
i386 being built against the 10.4u SDK. If anyone wants more info on
the build settings I'm using, let me know.
There was someone else that commented on the MacUpdate site that he
couldn't get it to load on his G5, either. I'm fairly certain it's
not the same person. Whoever it was didn't send me a crash report,
so I can't say if it's the same problem. I just now received another
email saying that it won't load on another user's iMac G5.
Has anyone come across anything like this before?
If anyone has a G5 out there and would like to test it out (I don't
have access to one myself), you can download it at <http://
homepage.mac.com/darkshadow02/picswitch.dmg> (450K). Small app that
puts up a status menu you can use to switch the desktop picture.
Darkshadow
(aka Michael Nickerson)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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