DISCONTINUED IN FAVOUR OF: GodotApplePlugins
A Godot Swift extension that adds Apple Sign In functionality for both iOS and macOS.
Download from Godot Asset Library.
The automated actions should also export binaries. Download latest.## Install
Copy the addons folder in order to install.
For iOS, set at Project -> Export -> iOS -> entitlements/additional:
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>For macOS, set the same entitlements as above (eg. when running codesign):
codesign --force --options=runtime --verbose --timestamp \
--entitlements entitlements.plist --sign "<SIGN_ENTITY>" \
"MyApp.app/Contents/MacOS/MyApp"where entitlements.plist contains again:
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>Now you can do in GDScript:
var apple_sign_in:= AppleSignIn.new()
func _ready() -> void:
apple_sign_in.apple_output_signal.connect(apple_output_signal)
apple_sign_in.sign_in()
func apple_output_signal(id, email, name, error):
if error:
print("Error: ", error)
else:
print("Success: ", id, email, name)Build locally after installing XCode:
./build.sh release- Based on https://github.com/BadalAc/godot-apple-ios-login-plugin with extra gh actions, macos client and high level API.
