Xcode MacRuby发布应用程序缺少libmacruby.dylib
使用XCode 4.5.2和MacRuby 0.12,我的应用程序在我的计算机上运行良好,但发布版本在其他计算机上不起作用:Xcode MacRuby发布应用程序缺少libmacruby.dylib,xcode,macruby,Xcode,Macruby,使用XCode 4.5.2和MacRuby 0.12,我的应用程序在我的计算机上运行良好,但发布版本在其他计算机上不起作用: Dyld Error Message: Library not loaded: /Library/Frameworks/MacRuby.framework/Versions/0.12/usr/lib/libmacruby.dylib Referenced from: /Users/USER/Desktop/PocheFactory.app/Contents/Mac
Dyld Error Message:
Library not loaded: /Library/Frameworks/MacRuby.framework/Versions/0.12/usr/lib/libmacruby.dylib
Referenced from: /Users/USER/Desktop/PocheFactory.app/Contents/MacOS/PocheFactory
Reason: image not found
我已经检查了部署设置,它们看起来很好:
在BuildPhases->“linkbinary With Libraries”中,我有所需的“MacRuby.framework”,在BuildSettings->framework搜索路径中,我有带有递归选项的include“/Library/Frameworks”
为什么这个特定的库没有包含在发布版本中?
有什么想法吗?与其弄清楚正确的Xcode设置,不如运行以下命令: /usr/local/bin/macruby_部署--编译--嵌入 我从Matt Aimonetti的MacRuby(权威指南)那里得到了这些信息 (最后一个命令参数被剥离:它是Xcode创建的派生数据中应用程序包的路径。)