我正嘗試創建一個.app的單聲道程序包以便在Mac OS X上運行,但儘管幾乎閱讀了所有關於macpack和捆綁單聲道的文章和文檔,的方法工作。如何爲Mac OS創建.app單聲道軟件包
macpack -m:X11 -o :.
使用macpack的二進制文件中的.app包成功捆綁-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
。當我嘗試從包中啓動程序出現這種情況:
FFMACM-2:MacOS dev$ open -a APP
LSOpenURLsWithRole() failed for the application /Users/dev/Workspace/Software/APP.app with error -10810.
我試着用this method但是腳本失敗,出現以下錯誤:
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#作爲GUI。
您是否使用尼妮單聲道版本? – xanadont 2011-05-10 07:17:09