godotengine / godot-ios-plugins

MIT License
126 stars 48 forks source link

Error building iOS plugin for Godot #65

Closed BraveEvidence closed 2 months ago

BraveEvidence commented 2 months ago

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?

BraveEvidence commented 2 months ago

https://www.youtube.com/watch?v=Y6Iq71zZO10