Trouble loading library in Audio Unit Plugin.

I'm really new to xcode and Mac Development, so please bear with me.


I'm trying to create an Audio Units plugin that will use the Chromium Embedded Framework. I've seen and successfully compiled projects such as this one:


https://github.com/acristoffers/CEFSimpleSample


And I've been able to create a compiled and loading Audio Unit plugin too. However, When I try to load the Chromium Embedded Framework.framework via copying into the Frameworks folder and use the following build script:


install_name_tool -change "@executable_path/Chromium Embedded Framework" "@executable_path/../Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework" "$PROJECT_DIR/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework"


I get this error on test of the AU:



    AU Validation Tool
    Version: 1.6.1a1
    Copyright 2003-2013, Apple Inc. All Rights Reserved.
    Specify -h (-help) for command options
--------------------------------------------------
VALIDATING AUDIO UNIT: 'aufx' - 'FILT' - 'DEMO'
--------------------------------------------------
Manufacturer String: DEMO
AudioUnit Name: Broch
Component Version: 1.0.0 (0x10000)
Component's Bundle Version: 1.0.0
* * PASS
--------------------------------------------------
TESTING OPEN TIMES:
COLD:
2015-07-21 00:37:12.985 auvaltool[25577:614361] Error loading /Users/brochstilley/Library/Audio/Plug-Ins/Components/Broch.component/Contents/MacOS/Broch:  dlopen(/Users/brochstilley/Library/Audio/Plug-Ins/Components/Broch.component/Contents/MacOS/Broch, 262): Library not loaded: @executable_path/Chromium Embedded Framework
  Referenced from: /Users/brochstilley/Library/Audio/Plug-Ins/Components/Broch.component/Contents/MacOS/Broch
  Reason: image not found
FATAL ERROR: OpenAComponent: result: -50,0xFFFFFFCE


I'm pretty sure that the reason it can't find @executable_path/Cromium Embedded Framework is that the new path is wrong, but I'm so new to this that I don't know how to figure out the correct path. Any help would be really awesome, and most appreciated!


Also, if there is a more appropriate location for me to post this, then please let me know and I'll do so.

Trouble loading library in Audio Unit Plugin.
 
 
Q