unity3d - Can't link iOS project with il2cpp and Unity -


any of know happening project ?

there error:

ld: symbol(s) not found architecture arm64

unity_ios

unity player settings this:

player_settings

il2cpp scripting backend support deploying arm 64-bit on ios, , mandatory deploy apple app-store releasing new apps.

there ios 64 bit upgrade guide provided unity states

how start using il2cpp on ios

pick in scripting backend dropdown in player settings.

enter image description here

by default build universal architecture (including both arm64 , armv7), if needed might switch specific architecture in player settings. there number of things should done before application , running in 64 bits:

  • you need 64 bit capable device test on. these ios devices a7 or later chip (currently these are: iphone 5s, ipad air, ipad mini retina, iphone 6, iphone 6 plus, ipad mini 3, ipad air 2).
  • you need native plugins compiled 64 bit support (or provided source code). if using 3rd party plugin, should contact plugin vendor obtain 64 bit capable , il2cpp compatible version of plugin. @ moment latest prime31 plugins known good.
  • if plugin vendor or have own native plugins need keep couple of things in mind:

(1) il2cpp not api-compatible (which unexposed) mono runtime api, means if plugin using mono_* functions won’t link anymore. best way resolve issue switch managed delegate/callback approach , pass managed callbacks native side of plugin , call them there when native data or event arrives.

(2) plugins come precompiled static libraries (.a files) should include arm64 slice.

(3) when doing native code/type conversion keep in mind pointers , longs 64 bit wide , ints still 32 wide.

  • to minimise generated amount of c++ code il2cpp (even when stripping level set disabled) doing sort of managed code stripping. need it. link.xml guide in ios player size optimization manual.

troubleshooting

  1. q: code running slower on il2cpp on mono. why? a: make sure testing code performance in xcode release configuration. if issue still remains, please submit bugreport!
  2. q: unity generated xcode project fails compile following or similar error: method not found: 'default constructor not found...ctor() of system.componentmodel.int64converter'. a: deserializers , serializers reference types via .net reflection api , in such cases these methods or classes might stripped project. can hint managed code stripper specific class / method used either via link.xml or via introduction of dummy code explicitly references in 1 of scripts.
  3. q: unity generated xcode project fails compile other error. a: please verify if plugins support arm64 , il2cpp , if that’s case please submit bug report , attach project (or scripting part of it) bug report. thanks!

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -