BulletSharpUnity3d icon indicating copy to clipboard operation
BulletSharpUnity3d copied to clipboard

issues on IOS build

Open franckmolto opened this issue 9 years ago • 6 comments

there are conflicting problem with getfacevertexdata facevertexnormaldata linkvertexnormaldata and tetravertexnormaldata c++ declarations in softbody.cs when using il2cpp, because they are duplicated for Vector[] and float[]. Il2cpp transform them as btscalar* ans it makes a conflict when building in xcode

franckmolto avatar Aug 04 '16 09:08 franckmolto

Hi Franckmolto

Thanks for submitting this. Unfortunately I am away from my office (where my Mac is) until the end of August so I won't be able to look into the problem until then. I am surprised you are seeing a conflict though since I have been able to build for iOS recently. Any idea why you are seeing this problem an I am wasn't?

Phong13 avatar Aug 04 '16 16:08 Phong13

No idea,

It seems that both functions type with vector3 and float ends as the same type, and as functions have the same names it breaks. Maybe it is due to Unity 5.4f3.

I hacked a bit softbody to remove functions so that functions are not duplicated with only vector3 array and float array changing, and it works fine ( I don’t need softbody for now)

franckmolto avatar Aug 12 '16 15:08 franckmolto

Thanks for the update. I am curious to look into this when I get back.

Phong13 avatar Aug 12 '16 16:08 Phong13

I want to build this projiect on iphone8,saw the same issues,How do you solve this problem?

WarrenMondeville avatar Jan 19 '18 03:01 WarrenMondeville

I would suggest removing one of the duplicated functions, either the Vector3 version or the float version to prevent the name collision.

Phong13 avatar Jan 20 '18 00:01 Phong13

It is worked ,delete plugins for linux, Xcode setting ENABLE_BITCODE no

WarrenMondeville avatar Jan 22 '18 01:01 WarrenMondeville