2017-08-21 5 views
0

Windows上のVS 2017でXamarinクロスプラットフォームプロジェクトを開始しました。アンドロイド部分は正常に動作しますが、iOS Main.Storyboardファイルを開こうとするとエラーが発生します。私はxcode 8.3を持つMacに接続しています。窓VS上Xamarin VS 2017はiOSのストーリーボードドキュメントをレンダリングできません

Xamarin.iOSバージョン - Mac上でVSコミュニティ2017の10.4.0.123

XamarinのiOSバージョン - 10.12.0.18

私はXcodeのダウングレード以外の答えを見つけることができません。私はこの問題がXamarion.iOSのバージョンと一致していない可能性があると考えていますが、解決する方法を理解できません。どんな助けも大歓迎です!!

完全なエラーログ:

System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The returned remote SDK entries are invalid 
    at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore() 
    at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<SetupSession>d__257.MoveNext() 
    --- End of inner exception stack trace --- 
    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 
    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass256_0`1.<EnsureSession>b__0() 
    at System.Threading.Tasks.Task`1.InnerInvoke() 
    at System.Threading.Tasks.Task.Execute() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<RenderXmlWithPartialReloadRetry>d__175.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<RenderXmlWithPartialReloadRetry>d__175.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<RenderXml>d__174.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<RenderXml>d__174.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<ReloadItemsAsync>d__170.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at MonoTouch.Design.Tasks.<Cancellable>d__1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<ReloadItems>d__169.MoveNext() 
---> (Inner Exception #0) System.InvalidOperationException: The returned remote SDK entries are invalid 
    at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore() 
    at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<SetupSession>d__257.MoveNext()<--- 


Contents of C:\Users\Jdoyle\AppData\Local\Xamarin\Logs\15.0\iOSDesigner-11168.2017-08-21__16-14-59.log: 
MDAddinsHash: 1363a8d943bab7700c93a97474060b6734aa7f94 

[2017-08-21 16:17:10.2] INFO: Starting full reload... 
[2017-08-21 16:17:10.8] INFO: Reloading: Serialization took 0ms 
[2017-08-21 16:17:30.4] INFO: Reloading: Deserialization took 13ms 
[2017-08-21 16:17:30.4] INFO: Reloading: Server rendering completed in 19520ms with 52744 bytes 
[2017-08-21 16:17:30.4] ERROR: EnsureSession (counter 1): System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: The returned remote SDK entries are invalid 
    at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore() 
    at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<SetupSession>d__257.MoveNext() 
    --- End of inner exception stack trace --- 
---> (Inner Exception #0) System.InvalidOperationException: The returned remote SDK entries are invalid 
    at MonoTouch.Design.Client.IosSdkTarget.InitializeLocalFileStore() 
    at MonoTouch.Design.Client.IosSdkTarget..ctor(Version xcodeVersion, DataPackEntry[] datapack, String storeDirectory) 
    at MonoTouch.Design.Client.IPhoneDesignerSession.<SetupSession>d__257.MoveNext()<--- 

編集ソリューション

誰もが、この同じ問題を抱えXamarinアップルSDKをアップデートVS &ためXamarinの更新拡張をインストールするためには私のために、この問題を修正しました。ステップhereに従ってください。

答えて

1

最新のバージョンに更新すると修正されます。

さらに、WindowsでVisual Studio 2017を使用する場合、同じ問題がありました。 Xamarin(Macの場合は&の安定版チャンネル)をアップグレードし、Visual Studio 2017を最新バージョン(15.0.26228.12)にアップデートすると、私のために修正されました。

を参照してください: [https://releases.xamarin.com/technical-bulletin-xcode-8-3-support-for-vs-2017/][1]

+0

私はVS 2017用のxamarinをアップグレードする方法はありません。ドキュメントはVisual Studio(私がやったもの)を更新するよう指示します.https://developer.xamarin.com/guides/ios/getting_started/installation/windows/ – jdoyle1331

0

この問題への私の最高のアドバイスはNEVERIOS designerを使用することです。それはごみです。常にXcode Interface Builderを使用してください。主な理由は、ストーリーボードがIOSで有効であることが保証されていることです。私はかつてIOS Designerで空のストーリーボードを作成し、生成したXMLをXcodeで作成された空のストーリーボードと比較しました。それはまったく違ったものでした。デザイナーのバージョンでは、たくさんの情報が欠けていました。それ以来、私はIOSデザイナーを信頼したことはありません。それだけでなく、制約はIOSデザイナーで使用するのに苦労します。これにより、Xcodeでの作業がずっと簡単になります。また、レイアウトが特に複雑な場合は、IOSデザイナーでストーリーボードが完全に間違ってレンダリングされてしまいました。

関連する問題