I’m adding Sign in with Apple support to my Defold game (iOS target) using the extension-siwa dependency to game.project > Project > dependency https://github.com/defold/extension-siwa/archive/refs/tags/1.2.0.zip
I do fetch libraries and it shows in my project root folder.
But when I try to use it as
--siwa.script
local s = require("siwa")
function init(self)
if s.is_supported() then
print("✅ Sign in with Apple is supported")
-- Show your SIWA login button in the GUI here
else
print("❌ SIWA not supported")
-- Hide SIWA option, fallback to guest/other login
end
end
I get build error :
/main/siwa.script
the Lua module ‘siwa.lua’ can’t be found
at console
ERROR: main/siwa.script:0: 'com.dynamo.bob.CompileExceptionError: the Lua module '/siwa.lua' can't be found'
/main is my collection which has game object controller and attached to it a siwa.script, the content of which are aforementioned.