为 osx 创建安装程序时合并 Mono 失败

发布于 2024-11-06 10:39:26 字数 1609 浏览 4 评论 0原文

当我尝试将 MonoMac 应用程序发布为 mac 安装程序时,出现以下错误。 我正在使用 MonoDevelop 2.4.2、MonoMac 2.4.2.4,该项目是由“C# MonoMac 项目”创建的新项目。

我刚刚添加了两个类并通过主窗口的 Initialize 调用它们。

Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Contents/Resources/Scripts/itunes.scpt
Contents/Resources/Scripts/out.txt

Merging Mono into app bundle
mmp --linksdkonly -o "/tmp/monomac-build-634406615434742750" -n "djBillboard" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/Sebi/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" -a "/Users/Sebi/Projects/djBillboard/lib/Nugget.dll" "/Users/Sebi/Projects/djBillboard/djBillboard/bin/Debug/djBillboard.exe"

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in :0 
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in :0 
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 


Merging Mono failed

I get the following error when I try to publish my MonoMac application as mac installer.
I am using MonoDevelop 2.4.2, MonoMac 2.4.2.4 and the project is a fresh project created by the "C# MonoMac Project".

I just added two classes and called them via Initialize of the MainWindow.

Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Contents/Resources/Scripts/itunes.scpt
Contents/Resources/Scripts/out.txt

Merging Mono into app bundle
mmp --linksdkonly -o "/tmp/monomac-build-634406615434742750" -n "djBillboard" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/Sebi/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" -a "/Users/Sebi/Projects/djBillboard/lib/Nugget.dll" "/Users/Sebi/Projects/djBillboard/djBillboard/bin/Debug/djBillboard.exe"

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in :0 
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at MonoMac.Bundler.Driver.Link () [0x00000] in :0 
  at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in :0 


Merging Mono failed

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眸中客 2024-11-13 10:39:26

将链接器更改为“不链接程序集”为我解决了这个问题。

Changing the Linker to "Don't link assemblies" fixed this for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文