处理MonoMac的另一个问题。我甚至无法创建一个包,如果我这样做,我会收到此错误。
Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Contents/Resources/PrefForm.nib
Contents/Resources/SearchForm.nib
Contents/Resources/StreamInformation.nib
Contents/Resources/sd.icns
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/categories.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/cdecls.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/decls.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/files.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/imports.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/pbxindex.header
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/protocols.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/refs.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/subclasses.pbxbtree
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/symbols0.pbxsymbols
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/strings.pbxstrings/control
Contents/Resources/build/StreamDesk.build/StreamDesk.pbxindex/strings.pbxstrings/strings
Merging Mono into app bundle
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/mmp -o "/tmp/monomac-build-634642319384392990" -n "StreamDesk" -a "/Users/michaelmanley/Desktop/NasuTek-StreamDesk/libstreamdesk/Managed/StreamDesk.Core/bin/Debug/StreamDesk.Managed.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Drawing.dll" -a "/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Data.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/System.Data.DataSetExtensions.dll" -a "/Users/michaelmanley/Desktop/NasuTek-StreamDesk/3rdParty/Mono.Addins.dll" "/Users/michaelmanley/Desktop/NasuTek-StreamDesk/StreamDesk-Cocoa/bin/Debug/StreamDesk.exe"
Could not link assemblies: System.ArgumentException: Member 'System.Int32 Mono.Addins.Database.SetupProcess::Main(System.String[])' is declared in another module and needs to be imported
at Mono.Cecil.MetadataBuilder.LookupToken (IMetadataTokenProvider provider) [0x00000] in <filename unknown>:0
at Mono.Cecil.MetadataBuilder.BuildModule () [0x00000] in <filename unknown>:0
at Mono.Cecil.MetadataBuilder.BuildMetadata () [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0 (Mono.Cecil.MetadataBuilder builder, Mono.Cecil.MetadataReader _) [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleDefinition.Read[MetadataBuilder,MetadataBuilder] (Mono.Cecil.MetadataBuilder item, System.Func`3 read) [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleWriter.BuildMetadata (Mono.Cecil.ModuleDefinition module, Mono.Cecil.MetadataBuilder metadata) [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleWriter.WriteModuleTo (Mono.Cecil.ModuleDefinition module, System.IO.StreamFailed to link /Users/michaelmanley/Desktop/NasuTek-StreamDesk/StreamDesk-Cocoa/bin/Debug/StreamDesk.exe
stream, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleDefinition.Write (System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0
at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0
at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0
at Mono.Linker.Steps.OutputStep.OutputAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
at Mono.Linker.Steps.OutputStep.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0
at MonoMac.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0
mmp exited with code 1
Merging Mono failed
我确实包含了Mono.Addins的构建,但是甚至没有任何东西甚至可以远程调用这样的功能,而且我很遗憾为什么它会这样做。只是没有与Mono度过美好的一天。
如果你想要一个镜头,源代码是https://github.com/NasuTek/NasuTek-StreamDesk
答案 0 :(得分:1)
我想通了,当我使用“不要链接装配”选项时,它运作良好。