Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use Protobuf-Net with MonoTouch?
    primarykey
    data
    text
    <p>Has anyone actually managed to accomplish this? </p> <p>I tried the approach suggested <a href="http://www.frictionpointstudios.com/blog/2011/3/31/using-protobuf-net-serialization-in-unity-iphone.html" rel="nofollow noreferrer">here</a>, but no matter how i generate the precompiled serializer, mtouch fails to copy it to the app bundle, thus resulting in a runtime exception. I think this happens because the resulting binary may not be compatible with MonoTouch.</p> <p>I have tried the following:</p> <p>1) I used the provided iOs and Mono binaries included in the latest (r450 as this time) build in order to generate the precompiled serializer.</p> <p>2) I used the source code to produce two different assemblies, built for MonoTouch. The first assembly is built using the symbols FEAT_SAFE;MONOTOUCH;NO_RUNTIME and the second is built using the symbols FEAT_SAFE;MONOTOUCH;FEAT_COMPILER. I have defined the symbol MONOTOUCH and used it the same as MONODROID symbol is used (see file CallbackAttribute.cs and Helpers.cs in the protobuf-net source).</p> <p>I the used this two assemblies and tried to generate the precompiled serializer from a MonoTouch application in the simulator.</p> <p>But no matter which version of the precompiled serializer i use, the assembly is still not included in the app bundle, with mtouch issuing: "Warning: Library 'MyLibrary.dll' missing in app bundle, cannot extract content", despite the fact that <a href="https://stackoverflow.com/questions/6298439/problem-loading-assemblies-in-monotouch-project">i do reference it in my code</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload