错误MT1108:无法找到此设备的开发人员工具

时间:2017-09-06 18:02:43

标签: ios xamarin xamarin.ios

我有一个Xamarin iOS应用程序,当我在“Debug”配置上启动应用程序时,它可以在我的设备上正常运行。现在我创建了一个名为“Staging”的新配置,并将info.plistentitlements.plist复制为info-Staging.plistentitlements-Staging.plist,并希望在“Staging”配置中调试时使用这些配置。它们之间的唯一区别是不同的标识符(com.blah.blah)。我编辑.csproj如此:

<ItemGroup>
  <None Include="packages.config" />

  <None Include="Entitlements.plist" Condition="'$(Configuration)' != 'Staging'" />

  <None Include="Info.plist" Condition="'$(Configuration)' != 'Staging'" />

  <None Include="Info-Staging.plist" Condition="'$(Configuration)' == 'Staging'">
    <LogicalName>Info.plist</LogicalName>
  </None>

  <None Include="Entitlements-Staging.plist" Condition="'$(Configuration)' == 'Staging'">
    <LogicalName>Entitlements.plist</LogicalName>
  </None>
</ItemGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Staging|AnyCPU' ">
  <Optimize>false</Optimize>
  <OutputPath>bin\Staging</OutputPath>
  <DefineConstants></DefineConstants>
  <WarningLevel>4</WarningLevel>
  <CodesignKey>iPhone Developer</CodesignKey>
  <CodesignEntitlements>Entitlements-Staging.plist</CodesignEntitlements>
  <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
  <MtouchLink>SdkOnly</MtouchLink>
  <MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
  <AssemblyName>MyApp.iOS</AssemblyName>
  <DebugSymbols>true</DebugSymbols>
  <DebugType>full</DebugType>
  <DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
  <ErrorReport>prompt</ErrorReport>
  <ConsolePause>false</ConsolePause>
  <DeviceSpecificBuild>true</DeviceSpecificBuild>
  <MtouchDebug>true</MtouchDebug>
  <MtouchFastDev>true</MtouchFastDev>
  <MtouchFloat32>true</MtouchFloat32>
  <MtouchArch>ARMv7, ARM64</MtouchArch>
  <MtouchTlsProvider>Default</MtouchTlsProvider>
  <PlatformTarget>x86</PlatformTarget>
</PropertyGroup>

但是当我尝试在我的设备上构建应用程序时,我收到此消息:

error MT1108: Could not find developer tools for this 10.2.1 (14D27) device. Please ensure you are using a compatible Xcode version and then connect this device to Xcode to install the development support files.

1 个答案:

答案 0 :(得分:0)

这个问题非常简单实际上只需检查MAC机器中安装的Xcode版本和系统中现在的Xamarin版本是否匹配。为此,您需要将Visual Studio签入工具/选项/ Xamarin