Ich habe eine Xamarin iOS-Anwendung, die auf meinem Gerät ausgeführt werden kann, wenn ich die Anwendung in der "Debug" -Konfiguration starte. Jetzt habe ich eine neue Konfiguration namens „Staging“ und dupliziert die info.plist
und entitlements.plist
als info-Staging.plist
und entitlements-Staging.plist
und wollen diejenigen verwenden, während in der „Staging“ Konfiguration debuggen. Der einzige Unterschied zwischen ihnen ist eine andere Kennung (com.blah.blah). Ich habe die .csproj
wie so:Fehler MT1108: Entwickler-Tools für dieses Gerät wurden nicht gefunden
<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>
Aber wenn ich versuche, die App auf meinem Gerät zu bauen, bekomme ich diese Meldung:
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.
versuchen, den Ordner bin und obj zu löschen und das Projekt neu zu erstellen. –
Danke, aber ich habe versucht, dass – Darius
Was ist der Grund, dass Sie die Bedingung definiert als 'Staging | AnyCPU' anstelle von' Staging | iPhone'? –