[MacRuby-devel] Rspec, Embedded frameworks and ENV['DYLD_FRAMEWORK_PATH']

Eloy Duran eloy.de.enige at gmail.com
Fri Jan 21 06:40:29 PST 2011


Xcode sets the env variable durin build time. So running this from a 'build phas script' (or whatever it is called) should work. However, if you just run this from the terminal it won't, as the env var isn't defined, so you should set it yourself.

HTH

On 19 jan. 2011, at 17:12, Michael Hagedorn <mike at silverchairsolutions.com> wrote:

> Has anyone had any luck using rspec and putting the objects under test in an embedded framework?  When I try to do this and and put "ENV['DYLD_FRAMEWORK_PATH'] = ENV['BUILT_PRODUCTS_DIR']" in the spec_helper and then execute the rspec file via 'macruby blah_spec.rb', I get a "framework not found" error.  The framework is in fact living in the build directory as expected.
> 
> Can anyone tell me what I am missing?
> 
> Thanks
> 
> Mike Hagedorn
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110121/ce500e28/attachment.html>


More information about the MacRuby-devel mailing list