Uygulamamda "Hata Ayıklama" yapılandırması başlatıldığında cihazımda düzgün çalışabilen bir Xamarin iOS uygulaması var. Şimdi "Evreleme" adlı yeni bir yapılandırma oluşturdum ve info.plist
ve entitlements.plist
ve ve entitlements-Staging.plist
kopyalarını çoğaltdım ve "Aşama" yapılandırmasında hata ayıklama yaparken bunları kullanmak istiyorum. Aralarındaki tek fark, farklı bir tanımlayıcıdır (com.blah.blah). Ben böylece .csproj
düzenlendi:hata MT1108: Bu cihaz geliştirici araçları bulunamadı
<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>
Ama benim cihazda uygulama oluşturmak çalıştığınızda bu mesaj çıktı:
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.
olarak işaretlemeniz gerekir, bin ve obj klasörünü silmeyi ve projeyi yeniden oluşturmayı deneyin. –
Teşekkürler ama bunu denedim – Darius
Durumu "Staging | iPhone" yerine "Staging | AnyCPU" olarak tanımlamanızın nedeni nedir? –