Mailing Lists: Apple Mailing Lists

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

Embedding Frameworks within an Applications Bundle



Hi

I'm currently testing moving my project from Project Builder over to
XCode. Doing this I encountered a problem. My project consists of one
framework which is packaged in the applications bundle. However, when
running the application I encounter a dyld problem stating that the
framework cannot be found. It is attempting to resolve the location

build/Base.framework/Versions/A/Base.

Checking back in the frameworks build settings I have set the
INSTALL_PATH correctly to @executable_path/../Frameworks I have also
double checked that the library build style is set to dynamic (was
changed to static during the conversion to a native project). The
framework file under the products grouping is also build product
relative.

I have tried multiple changes to build settings such as:

INSTALL_PATH = @executable_path/../Frameworks

DYLIB_INSTALL_NAME_BASE = @executable_path$(/)..$(/)Frameworks$(/
)$(PRODUCT_NAME).$(WRAPPER_EXTENSION)$(/)Versions$(/
)$(FRAMEWORK_VERSION)$(/)$(PRODUCT_NAME)

INSTALLED_NAME_FLAG = -install_name
@executable_path$(/)..$(/)Frameworks$(/
)$(PRODUCT_NAME).$(WRAPPER_EXTENSION)$(/)Versions$(/
)$(FRAMEWORK_VERSION)$(/)$(PRODUCT_NAME)

DYLIB_INSTALLED_NAME =
@executable_path$(/)..$(/)Frameworks$(/
)$(PRODUCT_NAME).$(WRAPPER_EXTENSION)$(/)Versions$(/
)$(FRAMEWORK_VERSION)$(/)$(PRODUCT_NAME)

FRAMEWORK_INSTALLED_NAME =
@executable_path$(/)..$(/)Frameworks$(/
)$(PRODUCT_NAME).$(WRAPPER_EXTENSION)$(/)Versions$(/
)$(FRAMEWORK_VERSION)$(/)$(PRODUCT_NAME)

But none of these seem to change the outcome of the -install_name
directive in the linker.

Any help would really be appreciated.

Regards,

Jared Watts.
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.



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.