2017-09-06 5 views
6

「デバッグ」設定でアプリケーションを起動するとデバイス上で正常に動作するXamarin iOSアプリケーションがあります。今度は「ステージング」という新しい設定を作成し、info.plistentitlements.plistinfo-Staging.plistentitlements-Staging.plistと複製し、ステージング設定でデバッグ中にこれらを使用したいと考えています。それらの唯一の違いは、異なる識別子(com.blah.blah)です。私はそう.csproj編集:エラーMT1108:このデバイス用の開発者ツールを見つけることができませんでした

<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.

+0

binとobjフォルダを削除してプロジェクトを再構築しようとします。 –

+0

ありがとうございましたが、私はそれを試しました – Darius

+0

'Staging | iPhone'ではなく' Staging | AnyCPU'として条件を定義した理由は何ですか? –

答えて

0

この問題は、実際にはどうかチェックは非常に簡単ですがあなたのMACマシンにXcodeのバージョンをインストールしてください。あなたのシステムに今あるXamarinのバージョンがあります。そのためにはVisual Studioでツール/オプション/ Xamarinとしてチェックする必要があります

+0

"デバッグ"設定を使用すると動作しないので、それはできません。 – Darius

+0

作成したカスタム設定が適切ですか? @Darius –

+0

他の設定で動作するので間違っている必要があります。ビルド時には正常にビルドされますが、ステータスが「デバッガがiPhoneに接続するのを待っています」と表示されたらハングアップします。アプリケーションの出力に「エラーMT1108:この10.2.1(14D27)デバイス用の開発者ツールが見つかりませんでした」と表示されます。あなたが互換性のあるXcodeバージョンを使用していることを確認してから、このデバイスをXcodeに接続して開発サポートファイルをインストールしてください。 ' – Darius

関連する問題