如何创建用于Mac OS一个单声道的.app捆绑 [英] How to create a .app mono bundle for Mac OS

查看:127
本文介绍了如何创建用于Mac OS一个单声道的.app捆绑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建我的单程序在Mac OS X上运行的一束名为.app,但是尽管看了无形中就macpack和捆绑单声道,没有方法的工作。

I am trying to create a .app bundle of my mono program to run on Mac OS X, but despite having read virtually all articles and documentation on macpack and bundling mono, none of the methods work.

使用macpack的二进制文件中的.app包成功捆绑在一起:

Using macpack the binaries are bundled successfully in a .app package:

macpack -m:X11 -o :. -r:sqlite3.dll -r:Nini.dll -r:extraIcons.ini -r:APP_DATABASE.db3 -r:APP_Values.db3 -r:./文件/手册.pdf -r:GemBox.Spreadsheet.dll -r :Mono.Data.SqliteClient.dll -a:APP.EXE -n:APP

macpack -m:x11 -o:. -r:sqlite3.dll -r:Nini.dll -r:extraIcons.ini -r:APP_DATABASE.db3 -r:APP_Values.db3 -r:./Documents/manual.pdf -r:GemBox.Spreadsheet.dll -r:Mono.Data.SqliteClient.dll -a:APP.exe -n:APP

。当我尝试从包启动程序出现这种情况:

. When I try to start the program from the package this happens:

FFMACM-2:MacOS dev$ open -a APP
LSOpenURLsWithRole() failed for the application /Users/dev/Workspace/Software/APP.app with error -10810.



我试着使用的这个方法但是脚本失败,出现以下错误:

I tried using this method but the script fails with the following error:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Nini, Version=1.1.0.0, Culture=neutral, PublicKeyToken=691faec150a7fa7b' or one of its dependencies.
File name: 'Nini, Version=1.1.0.0, Culture=neutral, PublicKeyToken=691faec150a7fa7b'
  at APP.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
logout

我是新鲜的想法。该Nini.dll就是应该的。我使用GTK#的图形用户界面。

I am fresh out of ideas. The Nini.dll is where it should be. I am using GTK# for the GUI.

推荐答案

创建包MacOS X系统现在使用MonoMacPackager完成。你可以在这里 http://www.mono-project.com/MonoMacPackager 发现的细节。

Creating a package for MacOS X is now done using MonoMacPackager. You can find details here http://www.mono-project.com/MonoMacPackager.

不过,你在这里看到的问题是,你从你的包丢失的DLL(妮妮组装)。它需要在你的应用程序路径(它已被捆绑后),以正常加载。

However, the issue that you're seeing here is that you're missing your dll (The Nini assembly) from your package. It needs to be in your application path (after it has been bundled) to load properly.

这篇关于如何创建用于Mac OS一个单声道的.app捆绑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆