Comments (10)
Well, thanks a lot anyway. I will update when I solve this :)
from unityionicintegration.
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.
Does the same issue occur on a fresh new Unity project's build? Are you using some tool that obfuscates your code?
from unityionicintegration.
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.
I can't think of any reasons for this behavior, sorry :/
from unityionicintegration.
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.
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.
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.
You may try changing Scripting Runtime Version and/or Api Compatibility Level in Player Settings.
from unityionicintegration.
@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)
- ERROR: Couldn't find method compile() ... HOT 4
- Ionic Cloud Build? HOT 1
- Android Studio: Failed to process unity-classes.jar HOT 9
- Sending of String not working from Ionic to Unity and vice versa. HOT 6
- Ionic 4 compatibility HOT 4
- Undefined symbols for architecture arm64 HOT 2
- Ionic Cordova Automation Script HOT 1
- No Members named "*" in namespace "il2cpp::icalls::mscorlib::System::reflection::..." HOT 3
- ERROR: Manifest merger failed: Attribute application @ debuggable HOT 8
- app crash when launch unity HOT 3
- app crash when try to open unity HOT 3
- ios issue HOT 8
- Ionic 4 Capacitor HOT 2
- Ionic 4 Duplicate Classes [ Capacitor ] HOT 1
- How to pass message from OnMessageReceivedFromIonic() to other classes HOT 4
- Cannot find module 'unityARCaller' HOT 5
- On click app is crashing. openUnity() function is calling on button click. Using unity 2019.4.10f1 and gradle 6.5. with Ionic CLI 6.11.7
- Type bitter.jnibridge.JNIBridge$a is defined multiple times HOT 18
- library not found for -lUnityARKit HOT 6
- App crashing on startup HOT 3
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 unityionicintegration.