Error building iOS plugin for Godot

Godot Version

4.2.2

Question

I am trying to learn how to create iOS plugin for Godot Game engine. I downloaded the Godot source code from Github and ran scons platform=ios target=template_debug -j4 to generate ios headers. Then i created a static library using Xcode and copied
flashlight_module.mm, flashlight.h, flashlight.gdip, flashlight.mm, flashlight_module.h from Godot FlashLight repo

I also went to Header Search Path in Build Settings and added this path /Users/Desktop/godot/platform/ios. Now when i try to build the project i get error saying 'core/engine.h' file not found

Now i tried creating an xcframework as well using Xcode and copied all the files and set the Header Search Path and with that approach i get ton of errors.

What am i missing?

Resolved, watch this