Comments (16)
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.
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.
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.
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.
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.
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.
Hi all, sorry for delay.
I'm just setting up iOS environment to reproduce and fix the issue. Stay tuned.
from msgpack-cli.
Is this issue still not fixed?
from msgpack-cli.
As you said, it had been fixed in 0.5.0, and improved 0.5.1. Thx!
from msgpack-cli.
But CompareExchange
in SerializationContext.Default
throws an exception on Unity 3D iOS build. Is there another way to create a serializer?
from msgpack-cli.
You can use new SerializationContext
.
But I have to fix the bug. What version of Unity3D do you use?
from msgpack-cli.
I'm using Unity 4.5.1f3. Can we talk about this issue at #msgpack on freenode?
from msgpack-cli.
Yes, of cource.
from msgpack-cli.
Thanks. I'm waiting.
from msgpack-cli.
#37 is critical, so this issue should be reopened.
from msgpack-cli.
Fixed in 0.6.0
from msgpack-cli.
Related Issues (20)
- Add a non-generic override to SerializerRepository
- EnumMemberAttribute does not work. (expectedly)
- Type Object in MessagePack HOT 1
- GetMemberName() causes NullReferenceException when using MessagePackSerializer.Get<T>() in Xamarin iOS
- [Unity][il2cpp]'class' is not registered in this resolver,resolver.StandardResolver HOT 2
- How to serialize and deserialize a List member in a class HOT 2
- Problem deserializing byte array - InvalidOperationException caused by Decoders.InvalidArrayHeader.Read call HOT 4
- about LZ4 HOT 1
- Unable to cast object of type on netcore HOT 1
- Custom Serialisation docs appear to be out of date. HOT 1
- PackAsync & UnpackAsync not working when passing data continuously using for loop c# HOT 1
- The unpacked value is not expected type HOT 2
- Authenticode Signing? HOT 2
- DateTime serialization and deserialization timezone HOT 3
- Enum Deserialization Not working? HOT 1
- Serializer.Unpack Continuosly Stream of Data => High Memory Usage HOT 3
- Serialization / deserialization speed optimizations HOT 2
- Serialization field order by declaration order HOT 3
- Add additional TFM do dependencies can be optimised HOT 2
- Set additional package metadata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msgpack-cli.