Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4025560
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:51:43+00:00 2026-05-20T10:51:43+00:00

One of my Mac applications contains a framework which I embed into the application

  • 0

One of my Mac applications contains a framework which I embed into the application bundle. Now I have found some evidence that on some customer machines the application links against the same framework located in the /System/Library/Frameworks folder.

I’m obviously missing something when it comes to linking the embedded framework to the application in XCode, so here’s how I’ve done it.. and perhaps you can point me to the missing step:

1) I drag the framework project into my project and set up the dependency between both projects
2) I drag the build product of the framework project to the “Link Binary with Libraries” build phase of my target
3) I drag the build product of the framework project to the “Copy Framework Files” build phase of my target set to “Destination: Frameworks”

This all works great but somewhere I need to specify that I want to link with the embedded version of the framework rather than any framework version that might be found on the system. Is there a search path to be set somewhere? or “static” link?

Any help would be appreciated.

Best regards,

Frank

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:51:44+00:00Added an answer on May 20, 2026 at 10:51 am

    Sounds like you might be missing a key step. You also need to set the “install name” of your embedded framework.

    When you link a framework or dynamic library, your app will look for the framework at the path specified by framework’s install name. This should specify a relative path for embedded frameworks. If it is an absolute name it will pick up the system installed version, even if you’ve embedded the library.

    To examine the install name do the following and look at the first location.

    otool -L <framework-binary>
    

    These two blog posts explain the issue and also how to set everything up properly:

    • http://www.mikeash.com/pyblog/friday-qa-2009-11-06-linking-and-install-names.html
    • http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/

    Additionally, if you’re compiling a dylib from the command line (say an open source library) just add the following to your CFLAGS to set your install name.

    -install_name '@rpath'
    

    If you want to modify an existing binary’s install name use ‘install_name_tool’.

    Also be sure your copy files build phase is copying the right files into the right places in your app bundle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Cocoa, Document-based Mac OS X application. One feature that I have
There is a NSCollectionView in my Mac application, and it contains some icons. Meanwhile,
I have multiple applications which work with one centralized Oracle database. The applications are
In my application, like many Mac applications, I have a source list. At the
I'm writing an application for Mac OS X 10.6 and later in C++. One
I am new in mac os. I have one Mac book pro. I am
I'm developing a Mac App in Java that logs into any one of our
i have a dll, built with mingw one of the header files contains this:
I'm developing some sort of air mouse application for iPhone platform. This applications connects
I'm making the transition from programming iPhone to native Mac applications. One part that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.