You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to learn how to create iOS plugin for Godot engine. I just created simple iOS plugin which stores some key value data in UserDefaults and retrieve it. Here are the steps which i followed
Download Godot source code from master branch
brew install scons
cd to Godot source code directory in terminal and ran scons platform=ios target=template_release -j4
Open xcode and selected static library for iOS
Go to the downloaded godot-repo, navigate to platform / iOS folder and add this path to Build settings => Header Search Paths in Xcode
Add the required code to my objective-c file & selected my iOS simulator and ran Command + B for the library to be build which is successfull
Create my Godot poject in Godot editor and created a bin folder
Found the libmystatticlib.a from my iOS project and copy pasted it to the bin folder of my iOS project
Create a folder called iOS and inside that a plugins folder. In pulgins folder created .gdip file and copied the code from docs and refactored it according to my needs
In Godot, click project => Export => Add iOS => Click Fix Import Error => Added bundle identifier & App Store team id
Created a button in Godot tscn and added pressed listener to gdscript file
On button pressed code , added the followed code
var bridge = load("res://ios/plugins/MyStaticlib.gdip").new()
bridge._save_value("Hello", "keyhello")
When i try to export my godot project for iOS i keep getting error saying Invalid plugin config file MyStaticlib.gdip
Which step am i doing wrong. Please help
Here is the sample ios plugin repo Here is the sample godot projectn repo
The text was updated successfully, but these errors were encountered:
I am trying to learn how to create iOS plugin for
Godot
engine. I just created simple iOS plugin which stores some key value data inUserDefaults
and retrieve it. Here are the steps which i followedbrew install scons
cd
to Godot source code directory in terminal and ran scons platform=ios target=template_release -j4
platform / iOS
folder and add this path toBuild settings => Header Search Paths
in Xcodeobjective-c
file & selected my iOS simulator and ran Command + B for the library to be build which is successfulllibmystatticlib.a
from my iOS project and copy pasted it to the bin folder of my iOS project.gdip
file and copied the code from docs and refactored it according to my needstscn
and added pressed listener togdscript
fileWhen i try to export my godot project for iOS i keep getting error saying
Invalid plugin config file MyStaticlib.gdip
Which step am i doing wrong. Please help
Here is the sample ios plugin repo
Here is the sample godot projectn repo
The text was updated successfully, but these errors were encountered: