'core/version.h' file not found

Godot Version



I am trying to get photo_picker plugin for ios to work on ios simulator. I am usin m1 mac, Godot 4.2 and xcode version is 15.0.1

When i run below command
./scripts/generate_xcframework.sh photo_picker release_debug 4.0

I get below error saying

scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o plugins/photo_picker/photo_picker_module.o -c -fomit-frame-pointer -O2 -ftree-vectorize -DNDEBUG -DNS_BLOCK_ASSERTIONS=1 -DDEBUG_ENABLED -DVULKAN_ENABLED -std=gnu++17 -DNEED_LONG_INT -DLIBYUV_DISABLE_NEON -DIOS_ENABLED -DUNIX_ENABLED -DCOREAUDIO_ENABLED -fmodules -fcxx-modules -miphoneos-version-min=10.0 -fobjc-arc -fmessage-length=0 -fno-strict-aliasing -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -fpascal-strings -fblocks -fvisibility=hidden -MMD -MT dependencies -fno-exceptions -Wno-ambiguous-macro -Wall -Werror=return-type -arch arm64 -isysroot -stdlib=libc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk -DPTRCALL_ENABLED -I. -Igodot -Igodot/platform/ios plugins/photo_picker/photo_picker_module.cpp plugins/photo_picker/photo_picker_module.cpp:33:10:{33:10-33:26}: fatal error: 'core/version.h' file not found [1] #include "core/version.h" ^~~~~~~~~~~~~~~~ 1 error generated. scons: *** [plugins/photo_picker/photo_picker_module.o] Error 1 scons: building terminated because of errors.

Does anyone has a fix for it

godot-ios-plugins hasn’t been updated for 4.x yet, so it only works with Godot 3.x.

1 Like

Thanks but is it possible to create ios_plugins for Godot now for v4.2, or will that be fixed in upcoming releases?

Updating the plugins is nontrivial and we don’t have anyone available to do it, so it can take a while to happen.

Yes i completely understand. I tried looking into existing ios plugin, they are too difficult to understand because of C++ and objective-c. I have experience with swift. Is it possible for someone to at least update the docs for Godot v4.2 and create a simple Hello world plugin for iOS just like it is done for android. That’s the only thing i ask for. I really want to help the community for ios plugin and i have already started doing so for android. Incase you’re interested, check here

Resolved & finally made a video on it, watch this