Git Product home page Git Product logo

Comments (10)

Caratroc avatar Caratroc commented on June 14, 2024 1

Well, thanks a lot anyway. I will update when I solve this :)

from unityionicintegration.

lfwells avatar lfwells commented on June 14, 2024 1

I believe I was compiling with Net 4 for all of this, but I still had to add the NET_4_0 preprocessor directive manually in Xcode. No idea why :) I got rid of my crashing using the advice in this thread: https://forum.unity.com/threads/il2cpp-anyone-else-seeing-metadatacache-initialize-crashes-sometimes-when-the-game-starts.383145/page-2 Again, unsure if related to this issue or if I was just getting multiple issues at once here.

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Does the same issue occur on a fresh new Unity project's build? Are you using some tool that obfuscates your code?

from unityionicintegration.

Caratroc avatar Caratroc commented on June 14, 2024

Yes same issue with a new project. I just put the IonicComms.cs in and uIonicComms.mm in the plugin/ios folder.
No obfuscating code. Thanks for the quick answer.

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

I can't think of any reasons for this behavior, sorry :/

from unityionicintegration.

lfwells avatar lfwells commented on June 14, 2024

Any update on this? getting similar mscorlib compiler problems: [...]Classes/Native/Bulk_mscorlib_15.cpp:18759:114: No member named 'EncodingHelper' in namespace 'il2cpp::icalls::mscorlib::System::Text' and a bunch more too.

Building with Unity 2018.3.5f1

I will also update if I find anything new.

from unityionicintegration.

lfwells avatar lfwells commented on June 14, 2024

Curiously, the class members it is looking for in my error message there do exist inside Unity/Libraries/libil2cpp/include/icalls/mscorlib/... However they're wrapped up in #if NET_4_0, so they're not found.

Still poking around trying to get it to compile (I'm out of my depth here), but the members are clearly found if NET_4_0 is defined as true, and the compiler error goes away.

Not sure where the root cause is yet though, surely NET_4_0 should be defined somewhere?

from unityionicintegration.

lfwells avatar lfwells commented on June 14, 2024

I added NET_4_0 as a preprocessor Macro under target build settings. I've gotten it to compile now (I think I had some other problems unrelated (?) to this one. Unfortunately get a crash when trying to launch unity now, but honestly not surprised given how much I've hacked at this. Will report back if I learn anything.

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

You may try changing Scripting Runtime Version and/or Api Compatibility Level in Player Settings.

from unityionicintegration.

zoix avatar zoix commented on June 14, 2024

@lfwells - you posted this so long time ago and the same is happening to me now. I solved everything except the crash. Not sure which was the advice you followed (there are a couple, both did not work for me) and how you finally solved.

from unityionicintegration.

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.