Re: Embedded framework not loaded on 10.5
Re: Embedded framework not loaded on 10.5
- Subject: Re: Embedded framework not loaded on 10.5
- From: Christiaan Hofman <email@hidden>
- Date: Tue, 20 Sep 2011 19:28:17 +0200
On Sep 20, 2011, at 19:21, Jean-Daniel Dupas wrote:
>
> Le 20 sept. 2011 à 19:16, Christiaan Hofman a écrit :
>
>> I have a problem where my app crashes on 10.5.8 because it fails to load an embedded framework. The crash report gives something like this:
>>
>>
>> Exception Type: EXC_BREAKPOINT (SIGTRAP)
>> Exception Codes: 0x0000000000000002, 0x0000000000000000
>> Crashed Thread: 0
>>
>> Dyld Error Message:
>> Library not loaded: @loader_path/../Frameworks/MyFramework.framework/Versions/A/MyFramework
>> Referenced from: /Applications/MyApp.app/Contents/MacOS/MyApp
>> Reason: no suitable image found. Did find:
>> /Applications/MyApp.app/Contents/MacOS/../Frameworks/MyFramework.framework/Versions/A/MyFramework: unknown required load command 0x80000022
>>
>>
>> I don't understand why this happened. I have checked that the framework and app both contain the same archs, and in particular the one that is loaded (in this case i386). The framework is linked from the app, so the expanded path from @loader_path does indeed resolve to the path that it says it does find. Though I don't really understand what it means by "unknown required load command 0x80000022." I should note that the app has no problem running on 10.6, and moreover never had a problem (in previous releases) before. Can anyone tell me what this error really means, and what could be the problem? How could I debug this?
>>
>
> Look like the framework is compiled with the wrong deployment target. It must be 10.5 to be loadable on this OS.
>
Thanks, you may be right. Apparently a newer version of Xcode is using a different default value for the deployment target, because it was not changed and it was working with the correct deployment target before.
thanks
Christiaan
_______________________________________________
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