godotengine / godot-ios-plugins

MIT License
126 stars 48 forks source link

'core/version.h' file not found #60

Open kyadalu1 opened 6 months ago

kyadalu1 commented 6 months ago

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

BraveEvidence commented 2 months ago

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