Unity AppController.mm file causing error

I have created a new Xcode Project and added “Data”, “Classes” & “Libraries” folder from the Xcode project generated by unity.Now AppController.mm is causing error.Below is the code where error is:

(surface->eaglLayer) = (CAEAGLLayer*)[view layer];

and Here is the error line:
Assigning to " void * " from incompatible type " CAEAGLLayer * "

How did you solve it?

solved it now…