iphone doesn't like GetComponent?

Everything was working fine in Unity 3 so I went to build it for iPhone to see it on the device. That’s when the errors started. Now it won’t even play inside Unity.

Error building Player because scripts had compiler errors
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Assets/my_assets/scripts/Controller.js(128,34): BCE0019: ‘HIT’ is not a member of ‘UnityEngine.Component’.

here’s Controller.js line 128:
clone.GetComponent(data).HIT = false;

if iPhone doesn’t like GetComponent, how else can I read/change variables in other GameObjects? Especially a GameObject that was just created with gameObject.Instantiate?

The problem isn’t GetComponent, the problem is that you’re trying to use dynamic typing, which isn’t available on Unity iPhone.

–Eric