Obi Official Forum
Bug / Crash iOS Build Failed!!! - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Bug / Crash iOS Build Failed!!! (/thread-588.html)



iOS Build Failed!!! - tmartinez88 - 08-05-2018

Hey has any one had any luck building to iOS? I've seen a few other people get similar errors. 

http://obi.virtualmethodstudio.com/forum/showthread.php?tid=534

I've done the fix here and that takes care of a couple of errors. 


Attached is a screenshot of my console. I've tried on two computers both running 2017.4.0f1

The asset store says it supports iOS so can we get a tutorial that shows us how? 

Thanks!


RE: iOS Build Failed!!! - vicapps - 11-05-2018

Same here, can't build for iOS using Unity 2017.3.0

Can you please fix? This plugin is useless if it doesn't compile.


RE: iOS Build Failed!!! - josemendez - 11-05-2018

(11-05-2018, 04:33 PM)vicapps Wrote: Same here, can't build for iOS using Unity 2017.3.0

Can you please fix? This plugin is useless if it doesn't compile.


Hi there,

If you have upgraded from a previous version you might have this file:
Obi/Resources/ObiMaterials/FluidShader.shader.

Simply delete it. It is an old sample file that will not impact the runtime behaviour in any way.

Also, there's a known bug in 3.4 that causes the particle shader to be rejected by the GLES compiler, it doesn't seem to be able to figure out the types involved in a certain expression. Simply make the cast explicit so that it does not get confused by it: (ObiEllipsoids.cginc, line 83 & 84). This has been fixed in 3.5 (to be released shortly)

Code:
a2 = mul((float3x3)UNITY_MATRIX_V,mul(IP,mul(IP,WorldEye(worldPos) - center))); //T^-2 * (eye - center)
a3 = mul((float3x3)UNITY_MATRIX_V,mul(IP,mul(IP,view))); //T^-2 * A[0]

(that its, add the (float3x3) cast to UNITY_MATRIX_V).