metrica-plugin-unity icon indicating copy to clipboard operation
metrica-plugin-unity copied to clipboard

Unity without support building for IOS

Open dimmduh opened this issue 8 years ago • 1 comments
trafficstars

If Unity does not support building for IOS (You can select it while installing), after import appmetrica there are some fatal errors in console (you can build or start).

I added: #if UNITY_IPHONE || UNITY_STANDALONE_OSX to PostprocessBuildPlayerAppMetrica.cs and it helps See https://gist.github.com/dimmduh/f2d33246aedb1ca398a3901c63ee39c6 I guess this problem can be when Unity can build for IOS and does not support build for Android

dimmduh avatar Feb 03 '17 04:02 dimmduh

You're right. Temporary solution is to cover all PostprocessBuildPlayerAppMetrica.cs with:

#if UNITY_IPHONE 

// Actual PostprocessBuildPlayerAppMetrica.cs content

#endif

bamx23 avatar Feb 03 '17 08:02 bamx23