2017-08-30 5 views
0

AndroidとiOS用のXamarin Formsアプリケーションを構築しています。これまでは、提供されているシミュレータでiOSバージョンを問題なくテストしてきました。System.Reflection.Emit.DynamicMethod iOSデバイスへのデプロイ時にビルドエラーが発生し、シミュレータが正常に動作します

最新のiOSのアップデートでiPhone 6Sでテストしようとすると、私は次のビルドエラーが表示されます。

Can't resolve the reference 'System.Reflection.Emit.DynamicMethod', referenced from the method 'System.Func 2<System.Object,System.Object> System.Web.Http.Metadata.Providers.AssociatedMetadataProvider 1::CreateDynamicValueAccessor(System.Reflection.MethodInfo,System.Type,System.String)' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

任意の提案ですか? iOSのは、動的コード生成を禁止としてのiOSがSystem.Reflection.Emit使用することがサポートされていない

おかげ

答えて

1

。それはXamarin limitationである:それはいくつかのサードパーティ製のlibによって引き起こされる可能性が

Reflection.Emit is about generating code dynamically and have that code JITed and compiled to native code. Due to the limitations on the iPhone (no JIT compilation) this is not supported.

、あなたはDebugging linker errorsのように、試してみるために、適切なバージョンにアップデートできます。

または、xamarin.iosプロジェクトにlibを追加して試しに使うことができます。xamarin build pass on simulator but fails on real device を参照してください。

関連する問題