Note that there are some explanatory texts on larger screens.

plurals
  1. POIBPlugin and paths to framework
    text
    copied!<p>IBCocoaSimulator crashes when IB cannot find the framework, I assume that happens to you too. I can run IBCocoaSimulator without crash, when I manually copy my framework+ibplugin from the build dir into <code>/Users/username/Library/Frameworks</code>. I'm doing this with Finder, this is not optimal, but works. </p> <p>I have searched for a smarter way and each solution (BWToolkit, BGHUDAppKit, KTUIKit) I have been looking at, <strong>does things in much different ways</strong>. One solution runs a sudo script that copies it to the system wide <code>/Library/Frameworks</code>. Another sets <code>@loader_path</code> and yet another uses <code>@executable_path</code>. I haven't had luck with any of them and because of the great differences it's hard to see the pattern.</p> <p>I'm confused. </p> <p><strong>How do you config you IBPlugin, so that you can embed it in your app?</strong> </p> <hr> <p><strong>UPDATE 1:</strong></p> <p>Yay, solved it, after reading a <a href="http://www.dribin.org/dave/blog/archives/2009/11/15/rpath/" rel="nofollow noreferrer">blog post by dribin</a> about how to use @rpath, I figured out how to get it working with my IBPlugins. So copy using Finder is no longer needed.</p> <p>What I did was:</p> <ol> <li>For MySmallFramework set <code>Installation Directory</code> to <code>@rpath</code></li> <li>For MySmallPlugin set <code>Runpath Search Paths</code> to <code>@loader_path/../Frameworks</code></li> <li>For MySmallApp set <code>Runpath Search Paths</code> to <code>@loader_path/../Frameworks</code></li> </ol> <p>Nice.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload