Mailing Lists: Apple Mailing Lists

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

Re: Frameworks



On 2004/01/29, at 9:11, Bernard Meers wrote:

> I am new to Xcode ( was using Codewarrior before) and I have a problem  
> with
> a private Framework. I want to use a private Framework called
> Ambase.framework in  my app. (= MedusaTest).
> The app is a package and I have a layout as suggested by the Technical  
> docs.
> MedusaTest.app/
>     Contents/
>         Info.plist
>         MacOS/ MedusaTestApp
>         Resources/
>         Frameworks/Ambase.framework/
>         PlugIns/
>         SharedSupport/
> My application won't run however because it seems to be looking for the
> Ambase.framework in the Library/Frameworks/....
> The runtime error message I get is:
> dyld:
> /Data/QMS/cmsapp/MedusaTestApp/Dev/Mac/Xcode1_1/MedusaTestApp/build/ 
> MedusaTe
> stApp.app/Contents/MacOS/MedusaTestApp can't open library:
> /Library/Frameworks/Ambase.framework/Versions/A/Ambase  (No such file  
> or
> directory, errno = 2)
> Is there a setting in Xcode that forces it to look in the application
> package?
>

	When building the framework, you must set it's install path to  
"@executable_path/../Frameworks", so that the linker knows where the  
framework will be relative to the application.


-- 
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Frameworks (From: "Bernard Meers" <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.