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

Dar*_*ius 5 xamarin.ios ios xamarin

我有一个Xamarin iOS应用程序,当我在"Debug"配置上启动应用程序时,它可以在我的设备上正常运行.现在我创建了一个名为"Staging"的新配置,并在"Staging"配置中复制了info.plistand和entitlements.plistas 并希望在调试时使用它们.它们之间的唯一区别是不同的标识符(com.blah.blah).我编辑了如此:info-Staging.plistentitlements-Staging.plist.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>
Run Code Online (Sandbox Code Playgroud)

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

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.

Fre*_*Ali 0

这个问题很简单,实际上只需检查您的 MAC 计算机中安装的 Xcode 版本和您系统中当前的 Xamarin 版本是否匹配即可。为此,您需要在 Visual Studio 中签入 Tools/Options/Xamarin