Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode MacRuby发布应用程序缺少libmacruby.dylib_Xcode_Macruby - Fatal编程技术网

Xcode MacRuby发布应用程序缺少libmacruby.dylib

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

使用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/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创建的派生数据中应用程序包的路径。)