diff options
author | Andreia Gaita <shana@spoiledcat.net> | 2023-10-02 18:07:20 +0200 |
---|---|---|
committer | Andreia Gaita <shana@spoiledcat.net> | 2023-10-09 18:22:56 +0200 |
commit | ee9a735c2649e10123bfbfded96bbc4cc68428f5 (patch) | |
tree | 395d5e77c9aa5d17ca9df6e29ac6fdffda28439b /platform/ios/export/export_plugin.cpp | |
parent | 9215b03429ade89d12f29d3f2c24158034ba7dc8 (diff) | |
download | redot-engine-ee9a735c2649e10123bfbfded96bbc4cc68428f5.tar.gz |
Add C# iOS support
This support is experimental and requires .NET 8
Known issues:
- Requires macOS due to use of lipo and xcodebuild
- arm64 simulator templates are not currently included
in the official packaging
Diffstat (limited to 'platform/ios/export/export_plugin.cpp')
-rw-r--r-- | platform/ios/export/export_plugin.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/platform/ios/export/export_plugin.cpp b/platform/ios/export/export_plugin.cpp index a8596c30a6..ed92cac593 100644 --- a/platform/ios/export/export_plugin.cpp +++ b/platform/ios/export/export_plugin.cpp @@ -1928,11 +1928,15 @@ Error EditorExportPlatformIOS::_export_project_helper(const Ref<EditorExportPres bool EditorExportPlatformIOS::has_valid_export_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates, bool p_debug) const { #ifdef MODULE_MONO_ENABLED - // Don't check for additional errors, as this particular error cannot be resolved. - r_error += TTR("Exporting to iOS is currently not supported in Godot 4 when using C#/.NET. Use Godot 3 to target iOS with C#/Mono instead.") + "\n"; - r_error += TTR("If this project does not use C#, use a non-C# editor build to export the project.") + "\n"; - return false; +#ifdef MACOS_ENABLED + // iOS export is still a work in progress, keep a message as a warning. + r_error += TTR("Exporting to iOS when using C#/.NET is experimental.") + "\n"; #else + // TODO: Remove this restriction when we don't rely on macOS tools to package up the native libraries anymore. + r_error += TTR("Exporting to iOS when using C#/.NET is experimental and requires macOS.") + "\n"; + return false; +#endif +#endif String err; bool valid = false; @@ -1963,7 +1967,6 @@ bool EditorExportPlatformIOS::has_valid_export_configuration(const Ref<EditorExp } return valid; -#endif // !MODULE_MONO_ENABLED } bool EditorExportPlatformIOS::has_valid_project_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error) const { |