{"id":4821,"date":"2014-03-30T15:36:32","date_gmt":"2014-03-30T15:36:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/xcode-and-dylib-search-path-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:36:32","modified_gmt":"2014-03-30T15:36:32","slug":"xcode-and-dylib-search-path-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/xcode-and-dylib-search-path-collection-of-common-programming-errors\/","title":{"rendered":"Xcode and dylib search path-Collection of common programming errors"},"content":{"rendered":"<p>I have a framework with installation directory <code>@rpath<\/code> and app with runpath search path <code>@loader_path\/..\/Frameworks<\/code> which uses this framework.<\/p>\n<p>After building I have <code>My.app<\/code> and <code>My.framework<\/code> in <code>Build\/Products\/Debug<\/code> directory and I <strong>don&#8217;t<\/strong> copy <code>My.framework<\/code> into <code>My.app<\/code> bundle.<\/p>\n<p>If I run <code>My.app<\/code> from Xcode it runs and loads framework from <code>Build\/Products\/Debug<\/code> directory. If I run my app from Finder it can&#8217;t load the framework as expected.<\/p>\n<p>Does Xcode set runtime search path and how? DYLD_LIBRARY_PATH?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a framework with installation directory @rpath and app with runpath search path @loader_path\/..\/Frameworks which uses this framework. After building I have My.app and My.framework in Build\/Products\/Debug directory and I don&#8217;t copy My.framework into My.app bundle. If I run My.app from Xcode it runs and loads framework from Build\/Products\/Debug directory. If I run my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4821","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4821"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4821\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}