Xamarin表单IOS构建失败,出现意外错误

时间:2017-08-09 03:05:01

标签: xamarin.ios xamarin.forms visual-studio-2017

任何遇到此问题或知道如何解决此问题的人?

我有一个Xamarin表单项目。我可以在iPhoneSimulator中构建和运行,但是当我尝试进行发布构建时,我得到:  错误:意外错误,System.NullReferenceException:

我正在使用Visual Studio 2017,并远程使用MacInTheCloud进行构建

打开诊断日志级别后,请参阅下面的日志输出:

Detected signing identity:
2>    Code Signing Key: "XXXXXXXXXXX" (XXXXXXXXXXXXXXXXXXXX)
2>    Provisioning Profile: "InfogenDevProfile" (XXXXXXXXXXXXXXXXXXXXXXXXXX)
2>    Bundle Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
2>    App Id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
2>  System.NullReferenceException: Object reference not set to an instance of an object
2>    at MonoTouch.Tuner.Linker.Process (MonoTouch.Tuner.LinkerOptions options, MonoTouch.Tuner.MonoTouchLinkContext& context, System.Collections.Generic.List'1[Mono.Cecil.AssemblyDefinition]& assemblies) [0x00145] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Tuning.cs:94 
2>    at Xamarin.Bundler.Target.LinkAssemblies (System.Collections.Generic.List'1[Mono.Cecil.AssemblyDefinition]& assemblies, System.String output_dir, System.Collections.Generic.IEnumerable'1[T] sharedCodeTargets) [0x0029a] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Target.cs:491 
2>    at Xamarin.Bundler.Target.ManagedLink () [0x005c5] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Target.cs:614 
2>    at Xamarin.Bundler.Target.ProcessAssemblies () [0x000bb] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Target.cs:800 
2>    at Xamarin.Bundler.Application.ProcessAssemblies () [0x0002f] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Application.cs:1396 
2>    at Xamarin.Bundler.Application.BuildManaged () [0x00001] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Application.cs:827 
2>    at Xamarin.Bundler.Application+<>c.<BuildAll>b__134_1 (Xamarin.Bundler.Application v) [0x00000] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Application.cs:775 
2>    at System.Collections.Generic.List'1[T].ForEach (System.Action'1[T] action) [0x00024] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
2>    at Xamarin.Bundler.Application.BuildAll () [0x00050] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/Application.cs:775 
2>    at Xamarin.Bundler.Driver.Main2 (System.String[] args) [0x00481] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/mtouch.cs:1420 
2>    at Xamarin.Bundler.Driver.Main (System.String[] args) [0x0000f] in /Users/builder/data/lanes/4991/bf350ba5/source/xamarin-macios/tools/mtouch/mtouch.cs:945 

0 个答案:

没有答案