GameAnalytics / GA-SDK-UNITY

The GameAnalytics SDK for tracking events in Unity.
MIT License
116 stars 54 forks source link

GA_PostprocessBuild #5

Closed GabLeRoux closed 8 years ago

GabLeRoux commented 8 years ago

On windows, UnityEditor.iOS doesn't seem to be there all the time. Added UNITY_IOS define for the platform dependent compilation.

In other words, fixing this for windows:

Assets/GameAnalytics/Editor/GA_PostprocessBuild.cs(3,19): error CS0234: The type or namespace name `iOS' does not exist in the namespace `UnityEditor'. Are you missing an assembly reference?
nikolajpedersen commented 8 years ago

Hi Gabriel! Thank you for noticing this and spending time on a fix.

This could be due to the new way Unity handles the installation - you can now deselect platforms you don't use and thus the libs are not there if you do not select iOS I guess.

We will test this (and look for other places) and add a fix to the next release. If you have any further information or requests please create a ticket here for better response etc. http://support.gameanalytics.com/hc/en-us/requests/new

Thanks again.