Greetings fellow devs,

I'm running into an issue trying to include the AP framework with a RapidWeaver 
plugin I'm working on. Based upon the CocoaCast video and AP's online 
documentation I've done all the appropriate steps to get this working:

1. Added AquaticPrime.h to my project, imported it in my implementation file
2. Added AquaticPrime.framework to my project
3. Added a new Copy Files build phase, then drag and droped the AP framework 
into that Copy FIles build phase folder

The app builds successfully, but the host app (RapidWeaver) throws this error 
in the console and my plugin isn't recognized:

RapidWeaver[2486:a0f] Error loading 
/Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize:
  
dlopen(/Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize,
 265): Library not loaded: 
@executable_path/../Frameworks/NimblePrime.framework/Versions/A/NimblePrime
  Referenced from: 
/Developer/NimbleHost/RWPlugins/Mobilize/build/Debug/Mobilize.rwplugin/Contents/MacOS/Mobilize
  Reason: image not found


After searching the interwebs and finding a similar error with those using the 
Sparkle framework I tried installing the AP framework to 
@loader_path/../Frameworks  (could possibly have done this part wrong - did 
this through the inspector for the above mentioned Copy Files build phase 
folder).

I've also tried compiling the AP framework from scratch based on bdrister's 
github project, and adding that to my project instead - again with the same 
results.

If I remove the framework from my project, the plugin builds successfully and 
works properly with the host app.

Anyone have suggestions as to what might be causing this problem and how to go 
about fixing it?

Best,

Jonathan
NimbleHost.com
 

Reply via email to