无论我从平台选择下拉列表中选择什么(Debug | iPhoneSimulator,Release | iPhone等),目标下拉列表都会显示为灰色,只是说"默认"这意味着我无法选择我连接的iOS设备(尝试连接两个不同的设备)或任何iOS模拟器目标。我知道这曾经工作了几个月,但从那时起,许多Xamarin的更新已经开始......
我已尝试过Xamarin Studio的稳定和测试版渠道。我已完全卸载Xamarin(使用卸载程序脚本)并重新安装它。我还更新了macOS Sierra,所以我已经触及了很多地方。
Xamarin日志中有一个例外,我很确定这是所有这些的原因,但我不知道如何解决它。我是否连接设备是个例外。
ERROR [2017-01-13 11:12:56Z]: Error while updating status of command: MonoDevelop.Ide.Commands.ProjectCommands.Run
System.InvalidCastException: Specified cast is not valid.
at MonoDevelop.IPhone.IPhoneProjectFlavor.CreateExecutionCommand (MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.IPhone.IPhoneProjectFlavor appProject, MonoDevelop.IPhone.IPhoneProjectConfiguration appCfg, MonoDevelop.IPhone.IPhoneProjectFlavor targetProject, MonoDevelop.IPhone.IPhoneProjectConfiguration targetCfg, MonoDevelop.Projects.RunConfiguration runConfiguration) [0x0014d] in /Users/builder/data/lanes/3509/e606823f/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:885
at MonoDevelop.IPhone.IPhoneProjectFlavor.OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionItemRunConfiguration runConfiguration) [0x0001a] in /Users/builder/data/lanes/3509/e606823f/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:807
at MonoDevelop.Projects.SolutionItemExtension.OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItemExtension.cs:228
at MonoDevelop.Projects.SolutionItemExtension.OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionItemRunConfiguration runConfiguration) [0x00007] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItemExtension.cs:251
at MonoDevelop.Projects.SolutionItem.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionItemRunConfiguration runConfiguration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionItem.cs:973
at MonoDevelop.Projects.Solution.OnGetCanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionRunConfiguration runConfiguration) [0x0000d] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:819
at MonoDevelop.Projects.Solution+DefaultSolutionExtension.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionRunConfiguration runConfiguration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:1243
at MonoDevelop.Projects.SolutionExtension.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionExtension.cs:79
at MonoDevelop.Projects.SolutionExtension.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionRunConfiguration runConfiguration) [0x00007] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionExtension.cs:102
at MonoDevelop.Projects.SolutionExtension.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionExtension.cs:79
at MonoDevelop.Projects.SolutionExtension.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionRunConfiguration runConfiguration) [0x00007] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/SolutionExtension.cs:102
at MonoDevelop.Projects.Solution.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.SolutionRunConfiguration runConfiguration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:732
at MonoDevelop.Projects.Solution.CanExecute (MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Solution.cs:722
at MonoDevelop.Ide.ProjectOperations.CanExecute (MonoDevelop.Projects.IBuildTarget entry, MonoDevelop.Core.Execution.IExecutionHandler handler) [0x00020] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/ProjectOperations.cs:993
at MonoDevelop.Ide.Commands.RunHandler.CanRun (MonoDevelop.Core.Execution.IExecutionHandler executionHandler) [0x00015] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:254
at MonoDevelop.Ide.Commands.RunHandler.Update (MonoDevelop.Components.Commands.CommandInfo info) [0x00048] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:242
at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandInfo info) [0x00000] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42
at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info) [0x00079] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1518
at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x001cf] in /Users/builder/data/lanes/3509/e606823f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1483
答案 0 :(得分:0)
似乎禁用这些Unity加载项可以解决此问题: