Git Product home page Git Product logo

Comments (16)

yfakariya avatar yfakariya commented on July 18, 2024

I don't have Unity environment, especially for iOS, but there is a person who tried msgpack for cli on iOS. He said that primitive APIs(Packer/Unpacker) worked fine, but MessagePackSerializers did not.
I'm trying solve it using pre-generated serealizers now. Stay tune for next release.

from msgpack-cli.

harmonius avatar harmonius commented on July 18, 2024

Yusuke, thank you for your reply.
The latest version of Unity 4.3 uses Mono 2.6.5.
Here is the forum thread.
http://answers.unity3d.com/questions/536616/which-mono-version-is-used-in-unity-and-do-you-upd.html

from msgpack-cli.

tsubaki avatar tsubaki commented on July 18, 2024

Hi

Unity3d can work compact>msgpack.Net35( targetframework mono/3.5).
If you need build webplayer, you should remove serialize directory before msgpack build.

https://gist.github.com/tsubaki/7954893

Cheers.

from msgpack-cli.

jpmorin avatar jpmorin commented on July 18, 2024

msgpack-cli does work with unity, but sadly, not on IOS.

The limitation comes from the fact that, to run on IOS, your code must be AOT compatible. msgpack make extensive use of classes from the System.Reflection.Emit namespace, which are not supported by mono-AOT. (work fine when JIT-ed tough)

More info here: http://docs.xamarin.com/guides/ios/advanced_topics/limitations/

Scroll down to the "No Dynamic Code Generation" section.

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Thank you for your report!

Just for information, I'm implementing iOS support with pre-generation of serializers (see https://github.com/msgpack/msgpack-cli/blob/0.5/src/MsgPack/Serialization/SerializerGenerator.cs#L220).

from msgpack-cli.

tsubaki avatar tsubaki commented on July 18, 2024

Hi, I tried SerializerGenerator.GenerateCode.
a generated code will be call JIT on SerializationContext.get_Default made with GenerateCode. (test cord)

How can I avoid?

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Hi all, sorry for delay.

I'm just setting up iOS environment to reproduce and fix the issue. Stay tuned.

from msgpack-cli.

sublee avatar sublee commented on July 18, 2024

Is this issue still not fixed?

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

@sublee

As you said, it had been fixed in 0.5.0, and improved 0.5.1. Thx!

from msgpack-cli.

sublee avatar sublee commented on July 18, 2024

But CompareExchange in SerializationContext.Default throws an exception on Unity 3D iOS build. Is there another way to create a serializer?

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

You can use new SerializationContext.
But I have to fix the bug. What version of Unity3D do you use?

from msgpack-cli.

sublee avatar sublee commented on July 18, 2024

I'm using Unity 4.5.1f3. Can we talk about this issue at #msgpack on freenode?

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Yes, of cource.

from msgpack-cli.

sublee avatar sublee commented on July 18, 2024

Thanks. I'm waiting.

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

#37 is critical, so this issue should be reopened.

from msgpack-cli.

yfakariya avatar yfakariya commented on July 18, 2024

Fixed in 0.6.0

from msgpack-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.